This commit is contained in:
hanchaobo
2024-02-23 11:21:55 +08:00
parent 11bfc07a1e
commit c1e80f293e
7 changed files with 83 additions and 79 deletions
+7 -6
View File
@@ -3,8 +3,8 @@
<view class="" v-if="sysType == 2">
<button type="primary" @tap="newlyAddedCases">新增案件</button>
</view>
<List class="caseList" @pDeleteCase='deleteCase' v-for="(item,index) in caseList" :defalutVal='item' :buttonList='buttonList' :key="index"
:sysType='sysType'>
<List class="caseList" @pDeleteCase='deleteCase' v-for="(item,index) in caseList" :defalutVal='item'
:buttonList='buttonList' :key="index" :sysType='sysType'>
</List>
<view class="emptyBox" v-if="caseList.length == 0">
<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
@@ -52,6 +52,7 @@
},
getList(parms) {
console.log(111)
this.caseList = [];
if (this.sysType == 1) {
respondentList(parms).then(res => {
// this.caseList = res.rows;
@@ -130,15 +131,15 @@
}
},
deleteCase(objValue){
caseDelete(objValue).then(res =>{
deleteCase(objValue) {
caseDelete(objValue).then(res => {
uni.showToast({
title: '删除成功',
icon: 'none',
duration: 1000
})
})
})
this.$router.go(0)
},
// 新增案件