Просмотр исходного кода

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

This reverts commit 6b450d68d4205437388a85ae9463f3300c27f361.
cfort 1 год назад
Родитель
Сommit
340ec4e3c3

+ 1 - 3
public/config.js

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

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

@@ -168,7 +168,6 @@ import AddSignTaskDialog from '@/business/platform/bpmn/form-ext/add-sign-task'
 import FormPrintTemplate from '@/business/platform/form/form-print/template'
 
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
-import { SHOW_TIMT_MODIFICATION } from '@/constant'
 
 export default {
     components: {
@@ -299,10 +298,10 @@ export default {
         },
         timeModification_: {
             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) || []
                 // }
             }
@@ -603,7 +602,7 @@ export default {
              * 构建操作按钮
              */
         buildButtons (toolbars, params) {
-            if (this.timeModificationbtn && SHOW_TIMT_MODIFICATION) {
+            if (this.timeModificationbtn) {
                 toolbars.push({
                     'alias': 'timeModification',
                     'name': this.timeModification_ ? '保存修改' : '修改数据'

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

@@ -448,9 +448,9 @@ export default {
                 // 字段
                 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) {
                 // 只读权限
                 // 修复空权限默认值的bug

+ 0 - 2
src/constant.js

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

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

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