This commit is contained in:
花有清香月有阴
2021-12-16 10:49:43 +08:00
parent c25b84414d
commit 2916be6934
4 changed files with 479 additions and 37 deletions

View File

@@ -9,7 +9,6 @@
<template v-if="datas.length > 0">
<u-card v-for="(item, index) in datas" :key="index" :foot-border-top="false" :head-border-bottom="false" :show-head="false" @click="goDetail(item, 1)">
<view class="body" slot="body">
<!-- 审批名称 -->
<view class="u-body-item">
<div class="title">{{ item.processName }}</div>
</view>
@@ -20,10 +19,8 @@
<span class="business_status" v-if="item.approvalStatus == 0"> {{ $dict.getLabel('listApprovalStatusHb', item.approvalStatus) }}</span>
<!-- end -->
<span class="business_status_blue" v-if="item.approvalStatus == 1"> {{ $dict.getLabel('listApprovalStatusHb', item.approvalStatus) }}</span>
<!-- false -->
<span class="business_status_gray" v-if="item.approvalStatus == 2">
{{ $dict.getLabel('listApprovalStatusHb', item.approvalStatus) }}
</span>
@@ -71,9 +68,7 @@
<script>
export default {
name: 'WorkOnline',
appName: '网上办事',
// 组件
name: 'AppWorkonline',
components: {},
props: {},
data() {
@@ -84,28 +79,21 @@ export default {
{ name: '抄送我的', type: 3 },
{ name: '超时督办', type: 4 },
],
currentType: 0, // 0待我审批 1已审批 2抄送我的 3超时
currentType: 0,
keyword: '',
datas: {},
listType: 0,
current: 1,
}
},
// 计算
computed: {},
// 监听
watch: {},
// 实例创建后
created() {
// 字典
this.$dict.load('listApprovalStatusHb').then(() => {
this.dictList = this.$dict.getDict('listApprovalStatusHb')
this.getList()
})
},
// 实例渲染后
mounted() {},
// 方法
methods: {
getList() {
this.$http.post(`/app/approv-alapply-info/list?listType=${this.listType}&current=${this.current}&param=${this.keyword}`).then((res) => {
@@ -115,10 +103,8 @@ export default {
})
},
// 跳转页面的id
goDetail(item) {
console.log(1)
uni.navigateTo({ url: `./detail?id=${item.id}&listType=${this.listType}` })
uni.navigateTo({ url: `./Detail?id=${item.id}&listType=${this.listType}` })
},
change(index) {