Selaa lähdekoodia

修改记录盒数据保存后页面未刷新问题,放开表单修改功能

shenqilong 1 vuosi sitten
vanhempi
sitoutus
4b044a0403

+ 3 - 1
public/config.js

@@ -74,7 +74,9 @@
         // 是否显示开启明文SQL
         // 是否显示开启明文SQL
         SHOW_PLAINTEXT: false,
         SHOW_PLAINTEXT: false,
         // 是否加密 GET 请求参数
         // 是否加密 GET 请求参数
-        ENCRYPT_GET_PARAMS: false
+        ENCRYPT_GET_PARAMS: false,
+        // 是否可以在体系运行记录盒里修改已完成记录
+        SHOW_TIMT_MODIFICATION: true
     }
     }
 
 
 })(window)
 })(window)

+ 5 - 4
src/business/platform/bpmn/form/index.vue

@@ -168,6 +168,7 @@ import AddSignTaskDialog from '@/business/platform/bpmn/form-ext/add-sign-task'
 import FormPrintTemplate from '@/business/platform/form/form-print/template'
 import FormPrintTemplate from '@/business/platform/form/form-print/template'
 
 
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
+import { SHOW_TIMT_MODIFICATION } from '@/constant'
 
 
 export default {
 export default {
     components: {
     components: {
@@ -298,10 +299,10 @@ export default {
         },
         },
         timeModification_: {
         timeModification_: {
             handler: function (val, oldVal) {
             handler: function (val, oldVal) {
-                // if (val) {
-                // this.readonly = false
-                // console.log(this.readonly)
-
+                if (val) {
+                    this.readonly = false
+                    // console.log(this.readonly)
+                }
                 this.buttons = this.buildButtons(this.responseData.buttons.slice(1, 4), this.attributes) || []
                 this.buttons = this.buildButtons(this.responseData.buttons.slice(1, 4), this.attributes) || []
                 // }
                 // }
             }
             }

+ 3 - 3
src/business/platform/form/formrender/dynamic-form/dynamic-form.vue

@@ -449,9 +449,9 @@ export default {
                 // 字段
                 // 字段
                 rightsValue = permissions.fields[name] ? permissions.fields[name] : null
                 rightsValue = permissions.fields[name] ? permissions.fields[name] : null
             }
             }
-            // if (this.$route.path === '/xxgl/jssllb') {
-            //     return rightsValue
-            // }
+            if (this.$route.path === '/xxgl/jssllb') {
+                return rightsValue
+            }
             if (this.readonly && !isNonInputField && !isSpecial) {
             if (this.readonly && !isNonInputField && !isSpecial) {
                 // 只读权限
                 // 只读权限
                 // 修复空权限默认值的bug
                 // 修复空权限默认值的bug

+ 2 - 0
src/constant.js

@@ -64,3 +64,5 @@ export const REPORT_PATH = __IBPS_CONFIG__.REPORT_PATH || '金通医学实验室
 export const SHOW_PLAINTEXT = __IBPS_CONFIG__.SHOW_PLAINTEXT || env.NODE_ENV === 'development'
 export const SHOW_PLAINTEXT = __IBPS_CONFIG__.SHOW_PLAINTEXT || env.NODE_ENV === 'development'
 // 是否加密 GET 请求参数
 // 是否加密 GET 请求参数
 export const ENCRYPT_GET_PARAMS = __IBPS_CONFIG__.ENCRYPT_GET_PARAMS || false
 export const ENCRYPT_GET_PARAMS = __IBPS_CONFIG__.ENCRYPT_GET_PARAMS || false
+// 是否可以在体系运行记录盒里修改已完成记录
+export const SHOW_TIMT_MODIFICATION = __IBPS_CONFIG__.SHOW_TIMT_MODIFICATION || false

+ 13 - 0
src/views/platform/bpmn/bpmInstHis/list.vue

@@ -292,6 +292,19 @@ export default {
             }
             }
         }
         }
     },
     },
+    watch: {
+        dialogFormVisible: {
+            handler: function (val, oldVal) {
+                if (val === false) {
+                    // console.log(val)
+
+                    ActionUtils.setFirstPagination(this.pagination)
+                    this.search()
+                }
+            }
+
+        }
+    },
     created () {
     created () {
         this.loadData()
         this.loadData()
         this.getConfig()
         this.getConfig()