Sfoglia il codice sorgente

提交修改错误

gyj 2 anni fa
parent
commit
9916f048c4

+ 2
- 13
pages/handlecase/component/list.vue Vedi File

159
 						icon: 'none',
159
 						icon: 'none',
160
 						duration: 1000
160
 						duration: 1000
161
 					})
161
 					})
162
-					uni.navigateBack({
163
-						delta: 1
164
-					})
162
+					this.$router.go(0)
165
 					//this.$emit("getList");
163
 					//this.$emit("getList");
166
 				})
164
 				})
167
 			},
165
 			},
178
 					batchNumber:"",
176
 					batchNumber:"",
179
 					caseFlowId:this.defalutVal.caseFlowId
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
 		created() {
182
 		created() {

+ 3
- 2
pages/handlecase/component/newlyAddedCase.vue Vedi File

325
 					  	icon: 'none',
325
 					  	icon: 'none',
326
 					  	duration: 1000
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 Vedi File

3
 		<view class="" v-if="sysType == 2">
3
 		<view class="" v-if="sysType == 2">
4
 			<button type="primary" @tap="newlyAddedCases">新增案件</button>
4
 			<button type="primary" @tap="newlyAddedCases">新增案件</button>
5
 		</view>
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
 			:sysType='sysType'>
7
 			:sysType='sysType'>
8
 		</List>
8
 		</List>
9
 		<view class="emptyBox" v-if="caseList.length == 0">
9
 		<view class="emptyBox" v-if="caseList.length == 0">
17
 	import {
17
 	import {
18
 		respondentList,
18
 		respondentList,
19
 		caseApplicationTj,
19
 		caseApplicationTj,
20
-		queryCaseFlowInfo
20
+		queryCaseFlowInfo,
21
+		caseDelete
21
 	} from '../../api/handlecase/index.js'
22
 	} from '../../api/handlecase/index.js'
22
 	import LuanqingEmpty from "@/components/luanqing-empty.vue"
23
 	import LuanqingEmpty from "@/components/luanqing-empty.vue"
23
 	export default {
24
 	export default {
50
 				})
51
 				})
51
 			},
52
 			},
52
 			getList(parms) {
53
 			getList(parms) {
54
+				console.log(111)
53
 				if (this.sysType == 1) {
55
 				if (this.sysType == 1) {
54
 					respondentList(parms).then(res => {
56
 					respondentList(parms).then(res => {
55
 						// this.caseList = res.rows;
57
 						// this.caseList = res.rows;
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
 			newlyAddedCases() {
145
 			newlyAddedCases() {
133
 				uni.navigateTo({
146
 				uni.navigateTo({