修改监控流程详情

This commit is contained in:
zhoulingpo
2023-04-21 14:11:25 +08:00
parent 37d570641d
commit 6ed94496e7
8 changed files with 71 additions and 96 deletions
@@ -25,7 +25,7 @@
<el-button type="text" size="small">
查看
</el-button>
<el-button type="text" size="small">
<el-button type="text" size="small" @click="withdraw">
<span>强制撤回</span>
</el-button>
</template>
@@ -67,11 +67,31 @@ export default {
this.loadData()
},
methods: {
//撤回
withdraw(row){
this.$confirm('确认强制撤回该条数据?', '强制撤回', {
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonClass: 'common-button-primary',
type: 'warning'
}).then(() => {
this.$api.processCenter.getBack({prcId: row.prcId}).then(res => {
this.$message.success(res.data.message)
this.loadData()
}).catch(err => {
console.log(err)
this.tableData = [{name: 1}]
})
})
},
loadData() {
let userId=this.$store.getters.userInfo.usid
this.$api.processCenter.sentProcessPage({...this.q,...this.searchForm,userId:userId}).then(res=>{
this.tableData = res.data.list
this.tableData = res.data.list.length>0 ?res.data.list:[{name:1}]
this.total = res.data.count
}).catch(err=>{
console.log(err)
this.tableData = [{name:1}]
})
},
// 单页数据量