|
|
@@ -3,7 +3,7 @@
|
|
3
|
3
|
<view class="" v-if="sysType == 2">
|
|
4
|
4
|
<button type="primary" @tap="newlyAddedCases">新增案件</button>
|
|
5
|
5
|
</view>
|
|
6
|
|
- <List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
|
|
|
6
|
+ <List class="caseList" @pDeleteCase='deleteCase' v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
|
|
7
|
7
|
:sysType='sysType'>
|
|
8
|
8
|
</List>
|
|
9
|
9
|
<view class="emptyBox" v-if="caseList.length == 0">
|
|
|
@@ -17,7 +17,8 @@
|
|
17
|
17
|
import {
|
|
18
|
18
|
respondentList,
|
|
19
|
19
|
caseApplicationTj,
|
|
20
|
|
- queryCaseFlowInfo
|
|
|
20
|
+ queryCaseFlowInfo,
|
|
|
21
|
+ caseDelete
|
|
21
|
22
|
} from '../../api/handlecase/index.js'
|
|
22
|
23
|
import LuanqingEmpty from "@/components/luanqing-empty.vue"
|
|
23
|
24
|
export default {
|
|
|
@@ -50,6 +51,7 @@
|
|
50
|
51
|
})
|
|
51
|
52
|
},
|
|
52
|
53
|
getList(parms) {
|
|
|
54
|
+ console.log(111)
|
|
53
|
55
|
if (this.sysType == 1) {
|
|
54
|
56
|
respondentList(parms).then(res => {
|
|
55
|
57
|
// this.caseList = res.rows;
|
|
|
@@ -128,6 +130,17 @@
|
|
128
|
130
|
}
|
|
129
|
131
|
|
|
130
|
132
|
},
|
|
|
133
|
+ deleteCase(objValue){
|
|
|
134
|
+ caseDelete(objValue).then(res =>{
|
|
|
135
|
+ uni.showToast({
|
|
|
136
|
+ title: '删除成功',
|
|
|
137
|
+ icon: 'none',
|
|
|
138
|
+ duration: 1000
|
|
|
139
|
+ })
|
|
|
140
|
+
|
|
|
141
|
+ })
|
|
|
142
|
+ this.$router.go(0)
|
|
|
143
|
+ },
|
|
131
|
144
|
// 新增案件
|
|
132
|
145
|
newlyAddedCases() {
|
|
133
|
146
|
uni.navigateTo({
|