feat(work): 添加业务审批列表项点击跳转功能
This commit is contained in:
parent
38eb6c221d
commit
d84e20e561
@ -5,6 +5,7 @@
|
|||||||
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
:class="index % 2 === 0 ? 'card-even' : 'card-odd'"
|
||||||
:extra="item.contractcode"
|
:extra="item.contractcode"
|
||||||
:title="item.usernames"
|
:title="item.usernames"
|
||||||
|
@click="handleDetail(item)"
|
||||||
>
|
>
|
||||||
<view class="context">
|
<view class="context">
|
||||||
<view class="label">
|
<view class="label">
|
||||||
@ -29,7 +30,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {defineOptions, defineProps} from 'vue'
|
import {defineOptions, defineProps, getCurrentInstance} from 'vue'
|
||||||
import UniCard from "../../../uni_modules/uni-card/components/uni-card/uni-card.vue";
|
import UniCard from "../../../uni_modules/uni-card/components/uni-card/uni-card.vue";
|
||||||
import {formatDate} from "../../../uni_modules/uni-dateformat/components/uni-dateformat/date-format";
|
import {formatDate} from "../../../uni_modules/uni-dateformat/components/uni-dateformat/date-format";
|
||||||
|
|
||||||
@ -37,7 +38,13 @@ defineOptions({
|
|||||||
name: 'ListItem'
|
name: 'ListItem'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const {proxy} = getCurrentInstance()
|
||||||
|
|
||||||
const props = defineProps(['items'])
|
const props = defineProps(['items'])
|
||||||
|
|
||||||
|
const handleDetail = (raw) => {
|
||||||
|
proxy.$tab.navigateTo('/pages/work/BusinessApproval/OrderDetail')
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user