sasp-flow-render 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -98,6 +98,7 @@ let objResult = {
|
|
|
98
98
|
queryFormData:"/plFlowInstController/queryFormData",
|
|
99
99
|
findFlowInstPage:"/plFlowInstController/findFlowInstPage",
|
|
100
100
|
add:"/plFlowInstController/add",
|
|
101
|
+
delete:"/plFlowInstController/delete",
|
|
101
102
|
deleteFlowInst:"/plFlowInstController/deleteFlowInst",
|
|
102
103
|
getNextUsers:"/plFlowInstController/getNextUsers", //获取流程下一步
|
|
103
104
|
executeNextStep:"/plFlowInstController/executeNextStep", //执行下一步
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
流转记录
|
|
135
135
|
</el-button>
|
|
136
136
|
</template>
|
|
137
|
-
<el-button size="small" v-if="scope.row.linkProcId &&
|
|
137
|
+
<el-button size="small" v-if="scope.row.linkProcId && scope.row.nodeKey == startNodeKeyObj[scope.row.version]"
|
|
138
138
|
@click="deleteRowFlow(scope.row)"
|
|
139
139
|
icon="el-icon-delete" type="danger">
|
|
140
140
|
删除
|
|
@@ -876,6 +876,25 @@
|
|
|
876
876
|
}
|
|
877
877
|
this.doSearch();
|
|
878
878
|
},
|
|
879
|
+
deleteRowFlow(row){
|
|
880
|
+
this.$confirm('确定要删除这条流程吗?', '提示', {
|
|
881
|
+
confirmButtonText: '确定',
|
|
882
|
+
cancelButtonText: '取消',
|
|
883
|
+
type: 'warning'
|
|
884
|
+
}).then(() => {
|
|
885
|
+
this.axios.post(this.api.plFlowInst.delete, {
|
|
886
|
+
ids: row.id
|
|
887
|
+
}).then(res => {
|
|
888
|
+
if (res && res.data && res.data.operateSuccess) {
|
|
889
|
+
this.$message({type: "success", message: "删除成功!"});
|
|
890
|
+
this.crud.search();
|
|
891
|
+
this.$emit("initTabNum");
|
|
892
|
+
} else {
|
|
893
|
+
this.$message({type: "error", message: "删除失败!"});
|
|
894
|
+
}
|
|
895
|
+
})
|
|
896
|
+
})
|
|
897
|
+
}
|
|
879
898
|
}
|
|
880
899
|
}
|
|
881
900
|
</script>
|