Explorar el Código

提交修改错误

gyj hace 2 años
padre
commit
9916f048c4

+ 2
- 13
pages/handlecase/component/list.vue Ver fichero

@@ -159,9 +159,7 @@
159 159
 						icon: 'none',
160 160
 						duration: 1000
161 161
 					})
162
-					uni.navigateBack({
163
-						delta: 1
164
-					})
162
+					this.$router.go(0)
165 163
 					//this.$emit("getList");
166 164
 				})
167 165
 			},
@@ -178,16 +176,7 @@
178 176
 					batchNumber:"",
179 177
 					caseFlowId:this.defalutVal.caseFlowId
180 178
 				}
181
-				caseDelete(objValue).then(res =>{
182
-					uni.showToast({
183
-						title: '删除成功',
184
-						icon: 'none',
185
-						duration: 1000
186
-					})
187
-					uni.navigateBack({
188
-						delta: 1
189
-					})
190
-				})
179
+				this.$emit('pDeleteCase',objValue)
191 180
 			},
192 181
 		},
193 182
 		created() {

+ 3
- 2
pages/handlecase/component/newlyAddedCase.vue Ver fichero

@@ -325,9 +325,10 @@
325 325
 					  	icon: 'none',
326 326
 					  	duration: 1000
327 327
 					  })
328
-					  uni.navigateBack({
329
-					  	delta: 1
328
+					  uni.navigateTo({
329
+						  url:'../index'
330 330
 					  })
331
+					  // this.$router.go(-1)
331 332
 			      });
332 333
 			},
333 334
 			//修改案件

+ 15
- 2
pages/handlecase/index.vue Ver fichero

@@ -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({