From 9916f048c41ee9de07f5ec4b626279edf1df78a8 Mon Sep 17 00:00:00 2001 From: gyj Date: Thu, 22 Feb 2024 14:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/handlecase/component/list.vue | 15 ++------------- pages/handlecase/component/newlyAddedCase.vue | 5 +++-- pages/handlecase/index.vue | 17 +++++++++++++++-- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/pages/handlecase/component/list.vue b/pages/handlecase/component/list.vue index c446a38..294b26e 100644 --- a/pages/handlecase/component/list.vue +++ b/pages/handlecase/component/list.vue @@ -159,9 +159,7 @@ icon: 'none', duration: 1000 }) - uni.navigateBack({ - delta: 1 - }) + this.$router.go(0) //this.$emit("getList"); }) }, @@ -178,16 +176,7 @@ batchNumber:"", caseFlowId:this.defalutVal.caseFlowId } - caseDelete(objValue).then(res =>{ - uni.showToast({ - title: '删除成功', - icon: 'none', - duration: 1000 - }) - uni.navigateBack({ - delta: 1 - }) - }) + this.$emit('pDeleteCase',objValue) }, }, created() { diff --git a/pages/handlecase/component/newlyAddedCase.vue b/pages/handlecase/component/newlyAddedCase.vue index 3bc8515..e99f75c 100644 --- a/pages/handlecase/component/newlyAddedCase.vue +++ b/pages/handlecase/component/newlyAddedCase.vue @@ -325,9 +325,10 @@ icon: 'none', duration: 1000 }) - uni.navigateBack({ - delta: 1 + uni.navigateTo({ + url:'../index' }) + // this.$router.go(-1) }); }, //修改案件 diff --git a/pages/handlecase/index.vue b/pages/handlecase/index.vue index 2c92b20..a033ec2 100644 --- a/pages/handlecase/index.vue +++ b/pages/handlecase/index.vue @@ -3,7 +3,7 @@ - @@ -17,7 +17,8 @@ import { respondentList, caseApplicationTj, - queryCaseFlowInfo + queryCaseFlowInfo, + caseDelete } from '../../api/handlecase/index.js' import LuanqingEmpty from "@/components/luanqing-empty.vue" export default { @@ -50,6 +51,7 @@ }) }, getList(parms) { + console.log(111) if (this.sysType == 1) { respondentList(parms).then(res => { // this.caseList = res.rows; @@ -128,6 +130,17 @@ } }, + deleteCase(objValue){ + caseDelete(objValue).then(res =>{ + uni.showToast({ + title: '删除成功', + icon: 'none', + duration: 1000 + }) + + }) + this.$router.go(0) + }, // 新增案件 newlyAddedCases() { uni.navigateTo({