浏览代码

流程修改

shenqilong 1 年之前
父节点
当前提交
b6662c81f9
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      src/business/platform/bpmn/form/index.vue

+ 19 - 0
src/business/platform/bpmn/form/index.vue

@@ -471,6 +471,13 @@ export default {
                 this.version = data.version
                 // 流程实例当前审批节点
                 this.endProcessTaskId = data.endProcessTaskId
+                // 备份对比
+                this.$nextTick(() => {
+                    setTimeout(() => {
+                        this.formDataBF = this.getFormData()
+                    }, 500)
+                    this.opinionListBF = JSON.parse(JSON.stringify(this.formParams.formOpinionData.opinionList))
+                })
                 //  ============内嵌表单[按钮这边提供] ================
             } else if (formModel.type === 'URL_LOAD') {
                 const urlForm = formModel.formValue
@@ -601,6 +608,18 @@ export default {
              * 构建操作按钮
              */
         buildButtons (toolbars, params) {
+            if (this.timeModificationbtn) {
+                toolbars.push({
+                    'alias': 'timeModification',
+                    'name': this.timeModification_ ? '保存修改' : '修改数据'
+                })
+            }
+            // if (this.timeModificationbtn) {
+            //     toolbars.push({
+            //         'alias': 'timeModificationNo',
+            //         'name': '取消'
+            //     })
+            // }
             if (this.$utils.isEmpty(toolbars)) {
                 toolbars = []
             }