【修改】zengjia删除

This commit is contained in:
zhoulingpo
2023-04-28 17:45:08 +08:00
parent a30a20524b
commit 4d1a4ed002
3 changed files with 31 additions and 2 deletions
@@ -32,6 +32,9 @@
<el-button @click.native.prevent="handle(row)" type="text" size="small">
办理
</el-button>
<el-button @click.native.prevent="classDel(row.id)" type="text" size="small" class="deleRed">
删除
</el-button>
</template>
</vxe-column>
</vxe-table>
@@ -77,6 +80,21 @@ export default {
this.loadData()
},
methods: {
classDel(row) {
this.$confirm('确认删除该条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
confirmButtonClass: 'common-button-primary',
}).then(() => {
this.$api.processCenter.delDraf({id:row}).then(()=>{
this.$message.success('删除成功')
this.q.current = 1
this.loadData()
})
})
},
loadData() {
let userId=this.$store.getters.userInfo.usid
this.$api.processCenter.draftProcessPage({...this.q,...this.form,userId:userId}).then(res=>{
@@ -126,4 +144,7 @@ export default {
padding-bottom: 10px;
}
}
.deleRed{
color: red !important;
}
</style>