【修改】监控流程

This commit is contained in:
zhoulingpo
2023-04-28 23:18:03 +08:00
parent bf2aed1df2
commit 03dc95ca36
2 changed files with 20 additions and 10 deletions
+11 -1
View File
@@ -19,7 +19,7 @@
</el-row>
</el-form>
<el-row>
<report-table v-model="tableData" @updateTable="(newValue)=>{tableData=newValue}" :disabled="showTableD"></report-table>
<report-table v-model="tableData" @updateTable="(newValue,jiaVlue)=>{tableData=newValue;delData=jiaVlue}" :disabled="showTableD"></report-table>
</el-row>
<el-row>
<el-form ref="applicationFormRef" :model="applicationForm" label-width="150px"
@@ -123,6 +123,7 @@ export default {
mixins: [processMixin],
data() {
return {
delData:[],
showTableD: false,
initShow: false, // 控制审批历史是否显示 只有在不是第一次的时候才是true
treeType: '',
@@ -295,6 +296,12 @@ export default {
}
},
methods: {
// 真删除接口
delDatas(){
this.$api.permissionProcess.deletReport({ids:this.delData}).then(()=>{})
},
handleCheck(name) {
if (this.formControl) {
return false
@@ -429,6 +436,9 @@ export default {
if (this.initShow) {
this.JuggleSub(this.taskId).then(res=>{
if(res){
if(this.delData){
this.delDatas()
}
let dataJson = JSON.stringify(this.tableData)
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
this.completeProcess({