提交修改错误

This commit is contained in:
gyj
2024-02-22 14:59:39 +08:00
parent dc63c97059
commit 9916f048c4
3 changed files with 20 additions and 17 deletions
+2 -13
View File
@@ -159,9 +159,7 @@
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
uni.navigateBack({ this.$router.go(0)
delta: 1
})
//this.$emit("getList"); //this.$emit("getList");
}) })
}, },
@@ -178,16 +176,7 @@
batchNumber:"", batchNumber:"",
caseFlowId:this.defalutVal.caseFlowId caseFlowId:this.defalutVal.caseFlowId
} }
caseDelete(objValue).then(res =>{ this.$emit('pDeleteCase',objValue)
uni.showToast({
title: '删除成功',
icon: 'none',
duration: 1000
})
uni.navigateBack({
delta: 1
})
})
}, },
}, },
created() { created() {
@@ -325,9 +325,10 @@
icon: 'none', icon: 'none',
duration: 1000 duration: 1000
}) })
uni.navigateBack({ uni.navigateTo({
delta: 1 url:'../index'
}) })
// this.$router.go(-1)
}); });
}, },
//修改案件 //修改案件
+15 -2
View File
@@ -3,7 +3,7 @@
<view class="" v-if="sysType == 2"> <view class="" v-if="sysType == 2">
<button type="primary" @tap="newlyAddedCases">新增案件</button> <button type="primary" @tap="newlyAddedCases">新增案件</button>
</view> </view>
<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index" <List class="caseList" @pDeleteCase='deleteCase' v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
:sysType='sysType'> :sysType='sysType'>
</List> </List>
<view class="emptyBox" v-if="caseList.length == 0"> <view class="emptyBox" v-if="caseList.length == 0">
@@ -17,7 +17,8 @@
import { import {
respondentList, respondentList,
caseApplicationTj, caseApplicationTj,
queryCaseFlowInfo queryCaseFlowInfo,
caseDelete
} from '../../api/handlecase/index.js' } from '../../api/handlecase/index.js'
import LuanqingEmpty from "@/components/luanqing-empty.vue" import LuanqingEmpty from "@/components/luanqing-empty.vue"
export default { export default {
@@ -50,6 +51,7 @@
}) })
}, },
getList(parms) { getList(parms) {
console.log(111)
if (this.sysType == 1) { if (this.sysType == 1) {
respondentList(parms).then(res => { respondentList(parms).then(res => {
// this.caseList = res.rows; // 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() { newlyAddedCases() {
uni.navigateTo({ uni.navigateTo({