Jelajahi Sumber

通用接口调整,优化代码结构

cfort 2 tahun lalu
induk
melakukan
0d16256fe1

+ 1 - 0
package.json

@@ -40,6 +40,7 @@
     "clipboard": "^2.0.6",
     "clipboard-polyfill": "^3.0.1",
     "core-js": "^3.6.5",
+    "crypto-js": "^4.1.1",
     "dayjs": "^1.8.35",
     "default-passive-events": "^2.0.0",
     "detect-indent": "^6.0.0",

+ 7 - 7
src/business/platform/data/templaterender/templates/list.vue

@@ -154,7 +154,7 @@ import Scan from '@/views/system/jbdScan/scan.vue'
 import IbpsExport from '@/plugins/export'
 import IbpsImport from '@/plugins/import'
 import Vue from 'vue'
-import pintText from '../../../form/utils/custom/pintText.js' //打印规则
+import preview from '@/business/platform/form/utils/custom/preview'
 Vue.component('ibps-data-template-render-dialog', () => import('@/business/platform/data/templaterender/preview/dialog.vue'))
 import xlsxFile from '@/business/platform/data/templaterender/templates/compenent/xlsxFile.vue'
 
@@ -789,8 +789,8 @@ export default {
                             return
                         }
                         this.defId = button.deflow
-                        this.npmDialogFormVisible =true
-                    break
+                        this.npmDialogFormVisible = true
+                        break
                     case 'consult': // 查阅
                         console.log(button)
                         if (!button.reportPath) {
@@ -798,16 +798,16 @@ export default {
                             return
                         }
                         src = `${this.$reportPash.replace('show', 'pdf')}${this.previewPath}&id_=${selection}`
-                        pintText(this, src)
-                    break
+                        preview(this, src)
+                        break
                     case 'download': // 下载记录
                         if (!button.reportPath) {
                             this.$message.warning('请先配置对应报表路径!')
                             return
                         }
                         src = `${this.$reportPash}${this.downloadPath}&id_=${selection}`
-                        pintText(this, src)
-                    break
+                        preview(this, src)
+                        break
                     case 'print': // 打印
                         ActionUtils.selectedRecord(selection)
                             .then((id) => {

+ 72 - 82
src/business/platform/data/templaterender/utils/JComposeTemplate.js

@@ -1,108 +1,98 @@
 
 /**
  * 数据模版--封装自定义代码扩展接口
- *
- * <pre>
- * 作者:hugh zhuang
- * 邮箱:3378340995@qq.com
- * 日期:2017-10-01-下午3:29:34
- * 版权:广州流辰信息技术有限公司
- * </pre>
  */
 import _ from 'lodash'
 import Vue from 'vue'
 import request from '@/utils/request'
 import dialog from '@/utils/dialog'
+import common from '@/utils/common'
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
-import getserial from '../../../form/utils/custom/serialNumber' //编码规则
-import pintText from '../../../form/utils/custom/pintText.js' //打印规则
-import repostCurd from '../../../form/utils/custom/joinCURD.js' //增删改查规则
-import getDate from '../../../form/utils/custom/getDateRule.js' //获取年月日
+import store from '@/store'
+import router from '@/router'
 
 // 定义全局
 var JComposeTemplate
 if (!window.JComposeTemplate) {
-  JComposeTemplate = window.JComposeTemplate = {}
+    JComposeTemplate = window.JComposeTemplate = {}
 } else {
-  JComposeTemplate = window.JComposeTemplate
+    JComposeTemplate = window.JComposeTemplate
 }
 /**
    * 封装自定义代码扩展接口
    */
 _.extend(JComposeTemplate, {
-  // 已经初始化
-  _isInitialization: false,
-  _isLoadJavaScriptFile: false,
-  // 初始化表单
-  _init: function(template) {
-    if (this._isInitialization) return
-    this.$template = template
-    this.$vue = Vue
-    this.$request = request
-    this.$dialog = dialog
-    this.$import = _import
-    this._ = _
-    this.$getDate = getDate //获取封装好的年月日
-    this.$getNumBer = getserial //封装获取流水号
-    this.$getPint =  pintText //封装打开报表
-    this.$curdPost = repostCurd //封装通用增删改查
+    // 已经初始化
+    _isInitialization: false,
+    _isLoadJavaScriptFile: false,
+    // 初始化表单
+    _init: function (template) {
+        if (this._isInitialization) return
+        this.$template = template
+        this.$vue = Vue
+        this.$request = request
+        this.$dialog = dialog
+        this.$common = common
+        this.$router = router
+        this.$store = store
+        this.$import = _import
+        this._ = _
+        this._isInitialization = true
+    },
 
-    this._isInitialization = true
-  },
+    // 页面加载
+    _onLoad: function (template) {
+        this._init(template)
+        if (_.isFunction(this.onLoad)) {
+            this.onLoad(template)
+        }
+    },
 
-  // 页面加载
-  _onLoad: function(template) {
-    this._init(template)
-    if (_.isFunction(this.onLoad)) {
-      this.onLoad(template)
-    }
-  },
+    // 加载按钮
+    _onLoadActions: function (template) {
+        if (_.isFunction(this.onLoadActions)) {
+            this.onLoadActions(template)
+        }
+    },
+    // 按钮提交前事件
+    _beforeSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.beforeSubmit)) {
+            return this.beforeSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
 
-  // 加载按钮
-  _onLoadActions: function(template) {
-    if (_.isFunction(this.onLoadActions)) {
-      this.onLoadActions(template)
-    }
-  },
-  // 按钮提交前事件
-  _beforeSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.beforeSubmit)) {
-      return this.beforeSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
-
-  // 按钮提交后事件
-  _afterSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.afterSubmit)) {
-      return this.afterSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
-  // 单元格自定义格式
-  _customFormatter: function(template, name, value, rowData, column) {
-    if (_.isFunction(this.customFormatter)) {
-      return this.customFormatter(template, name, value, rowData, column)
+    // 按钮提交后事件
+    _afterSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.afterSubmit)) {
+            return this.afterSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
+    // 单元格自定义格式
+    _customFormatter: function (template, name, value, rowData, column) {
+        if (_.isFunction(this.customFormatter)) {
+            return this.customFormatter(template, name, value, rowData, column)
+        }
+    },
+    // 清理所有自定义事件
+    cleanEvents: function () {
+        this.onLoad = null
+        this.onLoadActions = null
+        this.onValidate = null
+        this.afterSubButton = null
+        this.beforeSubButton = null
+        this.summaryMethod = null
+        this.afterSubmit = null
+        this.beforeSubmit = null
+        this._isInitialization = false
     }
-  },
-  // 清理所有自定义事件
-  cleanEvents: function() {
-    this.onLoad = null
-    this.onLoadActions = null
-    this.onValidate = null
-    this.afterSubButton = null
-    this.beforeSubButton = null
-    this.summaryMethod = null
-    this.afterSubmit = null
-    this.beforeSubmit = null
-    this._isInitialization = false
-  }
 })
 
 export default JComposeTemplate

+ 72 - 82
src/business/platform/data/templaterender/utils/JDialogTemplate.js

@@ -1,107 +1,97 @@
-
 /**
  * 数据模版--封装自定义代码扩展接口
- *
- * <pre>
- * 作者:hugh zhuang
- * 邮箱:3378340995@qq.com
- * 日期:2017-10-01-下午3:29:34
- * 版权:广州流辰信息技术有限公司
- * </pre>
  */
 import _ from 'lodash'
 import Vue from 'vue'
 import request from '@/utils/request'
 import dialog from '@/utils/dialog'
+import common from '@/utils/common'
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
-import getserial from '../../../form/utils/custom/serialNumber' //编码规则
-import pintText from '../../../form/utils/custom/pintText.js' //打印规则
-import repostCurd from '../../../form/utils/custom/joinCURD.js' //增删改查规则
-import getDate from '../../../form/utils/custom/getDateRule.js' //获取年月日
+import store from '@/store'
+import router from '@/router'
 
 // 定义全局
 var JDialog
 if (!window.JDialog) {
-  JDialog = window.JDialog = {}
+    JDialog = window.JDialog = {}
 } else {
-  JDialog = window.JDialog
+    JDialog = window.JDialog
 }
 /**
    * 封装自定义代码扩展接口
    */
 _.extend(JDialog, {
-  // 已经初始化
-  _isInitialization: false,
-  _isLoadJavaScriptFile: false,
-  // 初始化表单
-  _init: function(template) {
-    if (this._isInitialization) return
-    this.$template = template
-    this.$vue = Vue
-    this.$request = request
-    this.$dialog = dialog
-    this.$import = _import
-    this.$getDate = getDate //获取封装好的年月日
-    this.$getNumBer = getserial //封装获取流水号
-    this.$getPint =  pintText //封装打开报表
-    this.$curdPost = repostCurd //封装通用增删改查
-    this._ = _
-    this._isInitialization = true
-  },
+    // 已经初始化
+    _isInitialization: false,
+    _isLoadJavaScriptFile: false,
+    // 初始化表单
+    _init: function (template) {
+        if (this._isInitialization) return
+        this.$template = template
+        this.$vue = Vue
+        this.$request = request
+        this.$dialog = dialog
+        this.$common = common
+        this.$router = router
+        this.$store = store
+        this.$import = _import
+        this._ = _
+        this._isInitialization = true
+    },
 
-  // 页面加载
-  _onLoad: function(template) {
-    this._init(template)
-    if (_.isFunction(this.onLoad)) {
-      this.onLoad(template)
-    }
-  },
+    // 页面加载
+    _onLoad: function (template) {
+        this._init(template)
+        if (_.isFunction(this.onLoad)) {
+            this.onLoad(template)
+        }
+    },
 
-  // 加载按钮
-  _onLoadActions: function(template) {
-    if (_.isFunction(this.onLoadActions)) {
-      this.onLoadActions(template)
-    }
-  },
-  // 按钮提交前事件
-  _beforeSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.beforeSubmit)) {
-      return this.beforeSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
+    // 加载按钮
+    _onLoadActions: function (template) {
+        if (_.isFunction(this.onLoadActions)) {
+            this.onLoadActions(template)
+        }
+    },
+    // 按钮提交前事件
+    _beforeSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.beforeSubmit)) {
+            return this.beforeSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
 
-  // 按钮提交后事件
-  _afterSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.afterSubmit)) {
-      return this.afterSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
-  // 单元格自定义格式
-  _customFormatter: function(template, name, value, rowData, column) {
-    if (_.isFunction(this.customFormatter)) {
-      return this.customFormatter(template, name, value, rowData, column)
+    // 按钮提交后事件
+    _afterSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.afterSubmit)) {
+            return this.afterSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
+    // 单元格自定义格式
+    _customFormatter: function (template, name, value, rowData, column) {
+        if (_.isFunction(this.customFormatter)) {
+            return this.customFormatter(template, name, value, rowData, column)
+        }
+    },
+    // 清理所有自定义事件
+    cleanEvents: function () {
+        this.onLoad = null
+        this.onLoadActions = null
+        this.onValidate = null
+        this.afterSubButton = null
+        this.beforeSubButton = null
+        this.summaryMethod = null
+        this.afterSubmit = null
+        this.beforeSubmit = null
+        this._isInitialization = false
     }
-  },
-  // 清理所有自定义事件
-  cleanEvents: function() {
-    this.onLoad = null
-    this.onLoadActions = null
-    this.onValidate = null
-    this.afterSubButton = null
-    this.beforeSubButton = null
-    this.summaryMethod = null
-    this.afterSubmit = null
-    this.beforeSubmit = null
-    this._isInitialization = false
-  }
 })
 
 export default JDialog

+ 74 - 84
src/business/platform/data/templaterender/utils/JTemplate.js

@@ -1,107 +1,97 @@
-
 /**
  * 数据模版--封装自定义代码扩展接口
- *
- * <pre>
- * 作者:hugh zhuang
- * 邮箱:3378340995@qq.com
- * 日期:2017-10-01-下午3:29:34
- * 版权:广州流辰信息技术有限公司
- * </pre>
  */
 import _ from 'lodash'
 import Vue from 'vue'
 import request from '@/utils/request'
 import dialog from '@/utils/dialog'
+import common from '@/utils/common'
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
-import getserial from '../../../form/utils/custom/serialNumber' //编码规则
-import pintText from '../../../form/utils/custom/pintText.js' //打印规则
-import repostCurd from '../../../form/utils/custom/joinCURD.js' //增删改查规则
-import getDate from '../../../form/utils/custom/getDateRule.js' //获取年月日
+import store from '@/store'
+import router from '@/router'
 
 // 定义全局
 var JTemplate
 if (!window.JTemplate) {
-  JTemplate = window.JTemplate = {}
+    JTemplate = window.JTemplate = {}
 } else {
-  JTemplate = window.JTemplate
+    JTemplate = window.JTemplate
 }
 /**
-   * 封装自定义代码扩展接口
-   */
+ * 封装自定义代码扩展接口
+ */
 _.extend(JTemplate, {
-  // 已经初始化
-  _isInitialization: false,
-  _isLoadJavaScriptFile: false,
-  // 初始化表单
-  _init: function(template) {
-    if (this._isInitialization) return
-    this.$template = template
-    this.$vue = Vue
-    this.$request = request
-    this.$dialog = dialog
-    this.$import = _import
-    this.$getDate = getDate //获取封装好的年月日
-    this.$getNumBer = getserial //封装获取流水号
-    this.$getPint =  pintText //封装打开报表
-    this.$curdPost = repostCurd //封装通用增删改查
-    this._ = _
-    this._isInitialization = true
-  },
+    // 已经初始化
+    _isInitialization: false,
+    _isLoadJavaScriptFile: false,
+    // 初始化表单
+    _init: function (template) {
+        if (this._isInitialization) return
+        this.$template = template
+        this.$vue = Vue
+        this.$request = request
+        this.$dialog = dialog
+        this.$common = common
+        this.$router = router
+        this.$store = store
+        this.$import = _import
+        this._ = _
+        this._isInitialization = true
+    },
 
-  // 页面加载
-  _onLoad: function(template) {
-    this._init(template)
-    if (_.isFunction(this.onLoad)) {
-      this.onLoad(template)
-    }
-  },
+    // 页面加载
+    _onLoad: function (template) {
+        this._init(template)
+        if (_.isFunction(this.onLoad)) {
+            this.onLoad(template)
+        }
+    },
 
-  // 加载按钮
-  _onLoadActions: function(template, action, button, type, row) {
-    if (_.isFunction(this.onLoadActions)) {
-      return this.onLoadActions(template, action, button, type, row)
-    }
-  },
-  // 按钮提交前事件
-  _beforeSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.beforeSubmit)) {
-      return this.beforeSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
+    // 加载按钮
+    _onLoadActions: function (template, action, button, type, row) {
+        if (_.isFunction(this.onLoadActions)) {
+            return this.onLoadActions(template, action, button, type, row)
+        }
+    },
+    // 按钮提交前事件
+    _beforeSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.beforeSubmit)) {
+            return this.beforeSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
 
-  // 按钮提交后事件
-  _afterSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.afterSubmit)) {
-      return this.afterSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
-  // 单元格自定义格式
-  _customFormatter: function(template, name, value, rowData, column) {
-    if (_.isFunction(this.customFormatter)) {
-      return this.customFormatter(template, name, value, rowData, column)
+    // 按钮提交后事件
+    _afterSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.afterSubmit)) {
+            return this.afterSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
+    // 单元格自定义格式
+    _customFormatter: function (template, name, value, rowData, column) {
+        if (_.isFunction(this.customFormatter)) {
+            return this.customFormatter(template, name, value, rowData, column)
+        }
+    },
+    // 清理所有自定义事件
+    cleanEvents: function () {
+        this.onLoad = null
+        this.onLoadActions = null
+        this.onValidate = null
+        this.afterSubButton = null
+        this.beforeSubButton = null
+        this.summaryMethod = null
+        this.afterSubmit = null
+        this.beforeSubmit = null
+        this._isInitialization = false
     }
-  },
-  // 清理所有自定义事件
-  cleanEvents: function() {
-    this.onLoad = null
-    this.onLoadActions = null
-    this.onValidate = null
-    this.afterSubButton = null
-    this.beforeSubButton = null
-    this.summaryMethod = null
-    this.afterSubmit = null
-    this.beforeSubmit = null
-    this._isInitialization = false
-  }
 })
 
 export default JTemplate

+ 72 - 82
src/business/platform/data/templaterender/utils/JTreeTemplate.js

@@ -1,107 +1,97 @@
-
 /**
  * 数据模版--封装自定义代码扩展接口
- *
- * <pre>
- * 作者:hugh zhuang
- * 邮箱:3378340995@qq.com
- * 日期:2017-10-01-下午3:29:34
- * 版权:广州流辰信息技术有限公司
- * </pre>
  */
 import _ from 'lodash'
 import Vue from 'vue'
 import request from '@/utils/request'
 import dialog from '@/utils/dialog'
+import common from '@/utils/common'
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
-import getserial from '../../../form/utils/custom/serialNumber' //编码规则
-import pintText from '../../../form/utils/custom/pintText.js' //打印规则
-import repostCurd from '../../../form/utils/custom/joinCURD.js' //增删改查规则
-import getDate from '../../../form/utils/custom/getDateRule.js' //获取年月日
+import store from '@/store'
+import router from '@/router'
 
 // 定义全局
 var JTreeTemplate
 if (!window.JTreeTemplate) {
-  JTreeTemplate = window.JTreeTemplate = {}
+    JTreeTemplate = window.JTreeTemplate = {}
 } else {
-  JTreeTemplate = window.JTreeTemplate
+    JTreeTemplate = window.JTreeTemplate
 }
 /**
    * 封装自定义代码扩展接口
   */
 _.extend(JTreeTemplate, {
-  // 已经初始化
-  _isInitialization: false,
-  _isLoadJavaScriptFile: false,
-  // 初始化表单
-  _init: function(template) {
-    if (this._isInitialization) return
-    this.$template = template
-    this.$vue = Vue
-    this.$request = request
-    this.$dialog = dialog
-    this.$import = _import
-    this.$getDate = getDate //获取封装好的年月日
-    this.$getNumBer = getserial //封装获取流水号
-    this.$getPint =  pintText //封装打开报表
-    this.$curdPost = repostCurd //封装通用增删改查
-    this._ = _
-    this._isInitialization = true
-  },
+    // 已经初始化
+    _isInitialization: false,
+    _isLoadJavaScriptFile: false,
+    // 初始化表单
+    _init: function (template) {
+        if (this._isInitialization) return
+        this.$template = template
+        this.$vue = Vue
+        this.$request = request
+        this.$dialog = dialog
+        this.$common = common
+        this.$router = router
+        this.$store = store
+        this.$import = _import
+        this._ = _
+        this._isInitialization = true
+    },
 
-  // 页面加载
-  _onLoad: function(template) {
-    this._init(template)
-    if (_.isFunction(this.onLoad)) {
-      this.onLoad(template)
-    }
-  },
+    // 页面加载
+    _onLoad: function (template) {
+        this._init(template)
+        if (_.isFunction(this.onLoad)) {
+            this.onLoad(template)
+        }
+    },
 
-  // 加载按钮
-  _onLoadActions: function(template) {
-    if (_.isFunction(this.onLoadActions)) {
-      this.onLoadActions(template)
-    }
-  },
-  // 按钮提交前事件
-  _beforeSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.beforeSubmit)) {
-      return this.beforeSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
+    // 加载按钮
+    _onLoadActions: function (template) {
+        if (_.isFunction(this.onLoadActions)) {
+            this.onLoadActions(template)
+        }
+    },
+    // 按钮提交前事件
+    _beforeSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.beforeSubmit)) {
+            return this.beforeSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
 
-  // 按钮提交后事件
-  _afterSubmit: function(template, action, position, selection, data, callback) {
-    if (_.isFunction(this.afterSubmit)) {
-      return this.afterSubmit(template, action, position, selection, data, callback)
-    }
-    if (_.isFunction(callback)) {
-      const flag = true
-      callback(flag)
-    }
-  },
-  // 单元格自定义格式
-  _customFormatter: function(template, name, value, rowData, column) {
-    if (_.isFunction(this.customFormatter)) {
-      return this.customFormatter(template, name, value, rowData, column)
+    // 按钮提交后事件
+    _afterSubmit: function (template, action, position, selection, data, callback) {
+        if (_.isFunction(this.afterSubmit)) {
+            return this.afterSubmit(template, action, position, selection, data, callback)
+        }
+        if (_.isFunction(callback)) {
+            const flag = true
+            callback(flag)
+        }
+    },
+    // 单元格自定义格式
+    _customFormatter: function (template, name, value, rowData, column) {
+        if (_.isFunction(this.customFormatter)) {
+            return this.customFormatter(template, name, value, rowData, column)
+        }
+    },
+    // 清理所有自定义事件
+    cleanEvents: function () {
+        this.onLoad = null
+        this.onLoadActions = null
+        this.onValidate = null
+        this.afterSubButton = null
+        this.beforeSubButton = null
+        this.summaryMethod = null
+        this.afterSubmit = null
+        this.beforeSubmit = null
+        this._isInitialization = false
     }
-  },
-  // 清理所有自定义事件
-  cleanEvents: function() {
-    this.onLoad = null
-    this.onLoadActions = null
-    this.onValidate = null
-    this.afterSubButton = null
-    this.beforeSubButton = null
-    this.summaryMethod = null
-    this.afterSubmit = null
-    this.beforeSubmit = null
-    this._isInitialization = false
-  }
 })
 
 export default JTreeTemplate

+ 4 - 40
src/business/platform/form/utils/JForm.js

@@ -1,37 +1,14 @@
 /**
  * 表单--封装自定义代码扩展接口
- *
- * <pre>
- * 作者:hugh zhuang
- * 邮箱:3378340995@qq.com
- * 日期:2017-10-01-下午3:29:34
- * 版权:广州流辰信息技术有限公司
- * </pre>
  */
 import _ from 'lodash'
 import Vue from 'vue'
 import request from '@/utils/request'
 import dialog from '@/utils/dialog'
-import getserial from './custom/serialNumber' //编码规则
-import pintText from './custom/pintText.js' //打印规则
-import repostCurd from './custom/joinCURD.js' //增删改查规则
-import getDate from './custom/getDateRule.js' //获取年月日
-import {
-    snapshoot,
-    generateUUID,
-    getFileByte,
-    uploadFile
-} from '@/api/platform/file/attachment' //印章,快照
+import common from '@/utils/common'
 const _import = require('@/utils/util.import.' + process.env.NODE_ENV)
-import pinyin4js from 'pinyin4js';
 import store from '@/store'
 import router from '@/router'
-import { save } from '@/api/platform/message/innerMessage'
-
-import {
-    goSeal, wordToPdf, sealByKeywords, docxToPdfAndSign
-} from '@/api/platform/form/seal' // ca电子签章接口
-
 
 // 定义全局
 var JForm
@@ -54,24 +31,11 @@ _.extend(JForm, {
         this.$vue = Vue
         this.$request = request
         this.$dialog = dialog
+        this.$common = common
+        this.$router = router
+        this.$store = store
         this.$import = _import
-        this.$pyjs = pinyin4js
-        this.$getDate = getDate //获取封装好的年月日
-        this.$getNumBer = getserial //封装获取流水号
-        this.$getPint = pintText //封装打开报表
-        this.$curdPost = repostCurd //封装通用增删改查
-        this.$snapshoot = snapshoot //报表快照(经过润乾)
-        this.$generateUUID = generateUUID // 自定义规则自动生成uuid
-        this.$router = router //添加router对象
-        this.$save = save   // 文件发放通知
-        this.$goSeal = goSeal  // ca电子签章接口
-        this.$wordToPdf = wordToPdf  // word转pdf
-        this.$sealByKeywords = sealByKeywords // 关键字盖章
-        this.$getFileByte = getFileByte // 获取文件流
-        this.$uploadFile = uploadFile   // 文件上传接口
-        this.$sign = docxToPdfAndSign
         this._ = _
-        this.$store = store
         this._isInitialization = true
     },
 

+ 0 - 20
src/business/platform/form/utils/custom/getDbCol.js

@@ -1,20 +0,0 @@
-import curdPost from '@/business/platform/form/utils/custom/joinCURD.js' //增删改查规则
-
-const getDbCol =async (tid,cols) => {
-    let sql = "select attr_code_,field_name_ from ibps_bo_attr_column where table_id_ = '"+tid+"'"
-    let rtsql = "";
-    await curdPost('sql',sql).then(response => {
-      let colArray = response.variables.data
-      let rtArray = []
-      colArray.forEach(function(a){
-        cols.forEach(function(e){
-          if(a.attr_code_==e.prop){
-            rtArray.push(a.field_name_+" as "+e.prop)
-          }
-        })
-      })
-      rtsql = rtArray.join(",").toString()
-    })
-    return rtsql
-  }
-export default getDbCol

+ 25 - 70
src/business/platform/form/utils/custom/joinCURD.js

@@ -1,80 +1,35 @@
 import request from '@/utils/request'
-import md5 from 'js-md5';
-import { processCreate, processEdit } from './process'
-import { requestType, requestPath } from './requestType'
-
+import { normal } from './requestType'
+import { encryptByAes } from '@/utils/encrypt'
 // 请求方式默认POST
-const post = (method, data, type = 'post', loading = false) => {
-    let path = requestType[method]
-    let requestData = ''
-    let requestParams = null
-    // 部分接口保留参数,用于后续接口传参
-    let retainData = null
-
-    const processType = {
-        createProcess: processCreate,
-        setProcess: processEdit
-    }
-    let isProcess = Object.keys(processType).includes(method)
-
-    // 原有逻辑,根据 data 值判断
-    // if (data && data.slice(2, 1) == "l") {
-    //     // 往主管表提交数据
-    //     data = '{"str":"' + data + '"}'
-    //     requestData = dealData(data)
-    // } else if (data && data.slice(0, 1) == "s") {
-    //     // 判断是{}的参数,还是纯sql字符串的参数 , 纯sql补全。
-    //     data = '{"sql":"' + data + '"}'
-    //     requestData = dealData(data)
-    // } else { //对象转字符串
-    //     requestData = dealData(data)
-    // }
-
-    // 改为根据 method 判断是否对数据做特殊处理
-    if (type === 'get') {
-        requestParams = data
-    } else if (isProcess) {
-        // 创建流程及编辑流程时数据特殊处理
-        requestData = processType[method](data)
-        retainData = requestData.customParams
-        // console.log(requestData)
-    } else { //对象转字符串
-        requestData = dealData(method, data)
-    }
-
-    let isSpecial = Object.keys(requestPath).includes(method)
-    let requestUrl = isSpecial ? requestPath[method] : `business/v3/sys/universal/${ path }`
+const post = (type, data, method = 'post', loading = false) => {
+    console.log(type, data)
+    console.log(normal)
+    const requestUrl = `business/v3/sys/universal/${normal[type]}`
+    console.log(normal[type], requestUrl)
     return request({
         url: requestUrl,
-        method: type,
-        data: requestData,
-        params: requestParams,
-        // 开启表单提交加载,查询接口除外(sql,select)
-        isLoading: ['sql', 'select'].includes(method) ? loading : true,
-        retainData
+        method,
+        data: dealData(data, type),
+        // 开启表单提交加载,查询接口除外
+        isLoading: ['sql'].includes(type) ? loading : true
     })
 }
 
-/* 直接传入sql的签名算法   MD5加密*/
-const sig = sql => {
-    let rul = (sql.length + 9) * 12 * 3 + 168
-    let salt = 'JinYuanXinTong'
-    return md5(rul + '' + salt)
-}
-
-const dealData = (method, data) => {
-    // 序列化
-    if (typeof data == 'object') {
-        data = JSON.stringify(data)
+// 处理数据
+const dealData = (args, type) => {
+    // sql方法特殊处理
+    if (type === 'sql') {
+        args = {
+            sql: args
+        }
+    }
+    const data = typeof args === 'object' ? JSON.stringify(args) : args
+    const res = {
+        ciphertext: encryptByAes(data),
+        plaintext: args
     }
-    // 对需要拼接key值的方法做处理
-    let strType = ['sql']
-    let isStr = strType.includes(method)
-    data = isStr ? `{"${method}":"${data}"}` : data
-    //加密,获取md5密文
-    let md5 = sig(data)
-    // 结果拼接
-    return `${data.slice(0, 1)}"sig":"${md5}",${data.slice(1)}`
+    return JSON.stringify(res)
 }
 
-export default post
+export default post

+ 31 - 34
src/business/platform/form/utils/custom/pintText.js → src/business/platform/form/utils/custom/preview.js

@@ -1,19 +1,19 @@
 import dialog from '@/utils/dialog'
-import Pdfh5 from "pdfh5";
-import "pdfh5/css/pdfh5.css";
-import { snapshoot } from '@/api/platform/file/attachment' //印章,快照
+import Pdfh5 from 'pdfh5'
+import 'pdfh5/css/pdfh5.css'
+import { snapshoot } from '@/api/platform/file/attachment' // 印章,快照
 import { download } from '@/api/platform/file/attachment'
 import ActionUtils from '@/utils/action'
 
-const getPint = (tableForm, srcUrl) => {
-    var flag = true;
+const previewPdf = (tableForm, srcUrl) => {
+    var flag = true
     if (/Mobi|Android|iPhone|iPad/i.test(navigator.userAgent)) {
         flag = false
     }
     if (flag) {
         dialog(
             {
-                data() {
+                data () {
                     return {
                         readonly: false,
                         data: ''
@@ -42,10 +42,9 @@ const getPint = (tableForm, srcUrl) => {
             tableForm.dialogTemplate = null
         })
     } else {
-
         dialog(
             {
-                data() {
+                data () {
                     return {
                         readonly: false,
                         data: '',
@@ -54,57 +53,56 @@ const getPint = (tableForm, srcUrl) => {
                         url: ``
                     }
                 },
-                mounted() {
+                mounted () {
                     this.getYab()
                 },
                 methods: {
-                    getYab() {
-                        let srcUrl1 = srcUrl.split('rpx=')[1]
-                        let srcUrlList = srcUrl1.split('.rpx&id_=')
-                        let name = srcUrlList[0].split('/')
+                    getYab () {
+                        const srcUrl1 = srcUrl.split('rpx=')[1]
+                        const srcUrlList = srcUrl1.split('.rpx&id_=')
+                        const name = srcUrlList[0].split('/')
 
-                        let url = tableForm.$getReportFile(srcUrlList[0], `id_=${srcUrlList[1]}`)
+                        const url = tableForm.$getReportFile(srcUrlList[0], `id_=${srcUrlList[1]}`)
                         this.name = name[name.length - 1] + '.pdf'
-                        let params = {
+                        const params = {
                             url: url,
                             name: name[name.length - 1] || '暂无',
                             type: 'pdf'
                         }
                         snapshoot(params).then(res => {
-                            if (res.state == 200) {
+                            if (res.state === 200) {
                                 const data = res.data
                                 this.getDownload(data.id)
                             }
                         })
                     },
-                    getDownload(id) {
+                    getDownload (id) {
                         download({
                             attachmentId: id
                         }).then(res => {
                             this.getMet(res.data)
                             this.url = res.data
-                        }).catch(() => {
                         })
                     },
-                    getMet(url) {
-                        let that = this
+                    getMet (url) {
+                        const that = this
                         // //实例化1
                         that.$nextTick(() => {
-                            that.pdfh5 = new Pdfh5("#demo", {
+                            that.pdfh5 = new Pdfh5('#demo', {
                                 // pdfurl: window.location.origin + '/' + url,
-                                data: url,
+                                data: url
                                 // lazy: true
                             })
-                            that.pdfh5.on("complete", function (status, msg, time) {
+                            that.pdfh5.on('complete', function (status, msg, time) {
                                 // console.log(status, msg, time)
                             })
-                        });
+                        })
                     },
-                    finish() {
+                    finish () {
                         this.visible = false
                         tableForm.dialogTemplate = null
                     },
-                    xiazan() {
+                    xiazan () {
                         ActionUtils.exportFile(
                             this.url,
                             this.name
@@ -113,12 +111,12 @@ const getPint = (tableForm, srcUrl) => {
                 },
                 template:
                     `<div style="height:100%">
-                    <div id="demo"></div>
-                    <div style="position:absolute;right: 17px;top: 15px;" >
-                        <i class="el-icon-download" style="font-size: 24px;margin-right:15px" @click="xiazan"></i>
-                        <i class="el-icon-close" style="font-size: 24px;" @click="finish"></i>
-                    </div>
-                </div>`
+                        <div id="demo"></div>
+                        <div style="position:absolute;right: 17px;top: 15px;" >
+                            <i class="el-icon-download" style="font-size: 24px;margin-right:15px" @click="xiazan"></i>
+                            <i class="el-icon-close" style="font-size: 24px;" @click="finish"></i>
+                        </div>
+                    </div>`
             },
             {
                 dialog: {
@@ -137,6 +135,5 @@ const getPint = (tableForm, srcUrl) => {
             tableForm.dialogTemplate = null
         })
     }
-
 }
-export default getPint
+export default previewPdf

+ 0 - 230
src/business/platform/form/utils/custom/process.js

@@ -1,230 +0,0 @@
-import { startNode, endNode, normalNode, btn, btnType, processData } from './processData'
-import { processPermission } from './processPermission'
-
-// 创建流程所需所有key类型
-const typeList = {
-    box: 'Definitions',
-    process: 'Process',
-    start: 'StartEvent',
-    activity: 'Activity',
-    flow: 'Flow',
-    over: 'Event',
-    desc: 'Association',
-    text: 'TextAnnotation',
-    bpmnd: 'BPMNDiagram',
-    bpmnp: 'BPMNPlane'
-}
-
-// 默认参数
-const defaultData = {
-    // 流程名称
-    name: '',
-    // 开始节点描述
-    desc: '',
-    activity: [
-        {
-            name: '数据输入',
-            desc: '检测员'
-        },
-        {
-            name: '数据校验',
-            desc: '复核员'
-        }
-    ]
-}
-
-// 流程绑定的表单信息,渲染有变动时更改此处对应数据
-const formData = {
-    // 数据表名
-    boName: '检测汇总表',
-    // 数据表key
-    boKey: 'lhjczb',
-    // 流程节点绑定的表单key
-    formKey: ['xjzjjcydzjjzpyfsjsr', 'xjzjjcydzjjzpyfsjxy'],
-    // 表单审批意见组件key
-    formOpinions: ['approval_opinion_1frszdl', 'approval_opinion_1s3sgtf'],
-    // 开始节点按钮
-    startBtn: ['start', 'startSave', 'flow'],
-    // 中间节点流程按钮
-    btnList: [
-        ['agree', 'save', 'flow'],
-        ['end', 'reject', 'flow']
-    ],
-    // 流程执行人数据
-    executor: [
-        {
-            desc1: '【用户】人员变量【jchzb.jianCeYuan】(或) ; ',
-            desc2: '人员变量[lhjczb.jianCeYuan]',
-            name: 'lhjczb.jianCeYuan'
-        },
-        {
-            desc1: '【用户】人员变量【jchzb.fuHeYuan】(或) ; ',
-            desc2: '人员变量[lhjczb.fuHeYuan]',
-            name: 'lhjczb.fuHeYuan'
-        }
-    ]
-}
-
-// 获取随机key
-const getRandomKey = (type) => {
-    let randomNum = parseInt(Math.random() * 12) + 1
-    let key = `${typeList[type]}_${(parseInt(Math.random().toFixed(randomNum).split('.')[1]) + Date.now()).toString(36).split('.')[0]}`
-    return key
-}
-
-// 组装xml数据文件
-const getXml = (data, keyList) => {
-    let part1 = `<?xml version="1.0" encoding="UTF-8"?>
-    <definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="${keyList.box}" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">`
-    let part2 = ''
-    let part3 = ''
-    let part8 = ``
-    const actX = 270
-    data.activity.forEach((item, index) => {
-        let start = index === 0 ? `<process id="${keyList.process}" name="${data.name}" isExecutable="false"><startEvent id="${keyList.start}" name="开始"><outgoing>${keyList.flow[index]}</outgoing></startEvent><userTask id="${keyList.activity[index]}" name="${item.name}"><incoming>${keyList.flow[index]}</incoming><outgoing>${keyList.flow[index + 1]}</outgoing></userTask><sequenceFlow id="${keyList.flow[index]}" sourceRef="${keyList.start}" targetRef="${keyList.activity[index]}" />` : ''
-        let processItem = index !== 0 ? `<userTask id="${keyList.activity[index]}" name="${item.name}"><incoming>${keyList.flow[index]}</incoming><outgoing>${keyList.flow[index + 1]}</outgoing></userTask><sequenceFlow id="${keyList.flow[index]}" sourceRef="${keyList.activity[index - 1]}" targetRef="${keyList.activity[index]}" />` : ''
-        let end = index === data.activity.length - 1 ? `<endEvent id="${keyList.over}" name="结束"><incoming>${keyList.flow[index + 1]}</incoming></endEvent><sequenceFlow id="${keyList.flow[index + 1]}" sourceRef="${keyList.activity[index]}" targetRef="${keyList.over}" /><textAnnotation id="${keyList.text[0]}"><text>${data.desc}</text></textAnnotation><association id="${keyList.desc[0]}" sourceRef="${keyList.start}" targetRef="${keyList.text[0]}" />` : ''
-        part2 = start + part2 + processItem + end
-        let textItem = `<textAnnotation id="${keyList.text[index + 1]}"><text>${item.desc}</text></textAnnotation><association id="${keyList.desc[index + 1]}" sourceRef="${keyList.activity[index]}" targetRef="${keyList.text[index + 1]}" />`
-        part3 += textItem
-        let act = `<bpmndi:BPMNShape id="${keyList.activity[index]}_di" bpmnElement="${keyList.activity[index]}"><dc:Bounds x="${actX + 160 * index}" y="218" width="100" height="80" /></bpmndi:BPMNShape>`
-        part8 += act
-    })
-    
-    let part4 = `</process><bpmndi:BPMNDiagram id="${keyList.bpmnd}"><bpmndi:BPMNPlane id="${keyList.bpmnp}" bpmnElement="${keyList.process}">`
-    let part5 = ''
-    let part6 = ''
-    let part10 = ''
-    const textX = 110
-    const flowX = 210
-    const assX = 160
-    keyList.flow.forEach((item, index) => {
-        let text = `<bpmndi:BPMNShape id="${keyList.text[index]}_di" bpmnElement="${keyList.text[index]}"><dc:Bounds x="${index ? textX + 160 * index : 148}" y="${index ? 130 : 120}" width="100" height="${index ? 30 : 50}" /></bpmndi:BPMNShape>`
-        let flow = `<bpmndi:BPMNEdge id="${keyList.flow[index]}_di" bpmnElement="${keyList.flow[index]}"><di:waypoint x="${flowX + 160 * index}" y="258" /><di:waypoint x="${flowX + 160 * index + 60}" y="258" /></bpmndi:BPMNEdge>`
-        let ass = `<bpmndi:BPMNEdge id="${keyList.desc[index]}_di" bpmnElement="${keyList.desc[index]}"><di:waypoint x="${index ? assX + 160 * index : 198}" y="${index ? 218 : 240}" /><di:waypoint x="${index ? assX + 160 * index : 198}" y="${index ? 160 : 170}" /></bpmndi:BPMNEdge>`
-        part5 += text
-        part6 += flow
-        part10 += ass
-    })
-
-    let part7 = `<bpmndi:BPMNShape id="_BPMNShape_${keyList.start}" bpmnElement="${keyList.start}"><dc:Bounds x="180" y="240" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="187" y="283" width="22" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>`
-    // 三流程节点时,结束节点流程线的x值分别为750,759,俩流程节点时,结束节点流程线的x值分别为592,601
-    let part9 = `<bpmndi:BPMNShape id="${keyList.over}_di" bpmnElement="${keyList.over}"><dc:Bounds x="592" y="240" width="36" height="36" /><bpmndi:BPMNLabel><dc:Bounds x="601" y="283" width="22" height="14" /></bpmndi:BPMNLabel></bpmndi:BPMNShape>`
-    return part1 + part2 + part3 + part4 + part5 + part6 + part7 + part8 + part9 + part10 + `</bpmndi:BPMNPlane></bpmndi:BPMNDiagram></definitions>`
-}
-
-export const processCreate = projectName => {
-    defaultData.name = projectName
-    defaultData.desc = projectName
-
-    const typeCount = {
-        activity: defaultData.activity.length,
-        flow: defaultData.activity.length + 1,
-        desc: defaultData.activity.length + 1,
-        text: defaultData.activity.length + 1
-    }
-
-    // 获取key
-    let keys = {}
-    Object.keys(typeList).forEach(key => {
-        if (typeCount[key]) {
-            keys[key] = []
-            for (let i = 0; i <typeCount[key]; i++) {
-                keys[key].push(getRandomKey(key))
-            }
-        } else {
-            keys[key] = getRandomKey(key)
-        }
-    })
-    let customParams = {
-        keys,
-        projectData: defaultData
-    }
-
-    return {
-        deploy: true,
-        newDeploy: false,
-        typeId: '',
-        defId: '',
-        defXml: getXml(defaultData, keys),
-        customParams
-    }
-}
-
-export const processEdit = params => {
-    const { keys, projectData, id } = params
-    // 初始化节点数组
-    processData.nodes = []
-    // 填充全局配置数据
-    processData.global.id = keys.process
-    processData.global.bo.code = formData.boKey
-    processData.global.bo.name = formData.boName
-
-    processData.global.form.formValue = formData.formKey[0]
-    processData.global.instForm.formValue = formData.formKey[0]
-
-    let formOpinions = {}
-    formData.formOpinions.forEach((item, index) => {
-        formOpinions[item] = {
-            nodeId: [keys.activity[index]],
-            bpmOpinionHide: true
-        }
-    })
-
-    processData.global.formOpinions = formOpinions
-    
-    // 填充开始和结束节点数据
-    endNode.id = keys.over
-    startNode.id = keys.start
-    startNode.attributes.nodeId = keys.start
-    
-    let startBtnList = []
-    formData.startBtn.forEach(item => {
-        let obj = JSON.parse(JSON.stringify(btn))
-        obj.aliasName = btnType[item].aliasName
-        obj.name = btnType[item].name
-        obj.alias = btnType[item].alias
-        startBtnList.push(obj)
-    })
-    startNode.buttons = startBtnList
-
-    // 填充中间节点数据
-    let nodeList = []
-    projectData.activity.forEach((item, index) => {
-        let node = JSON.parse(JSON.stringify(normalNode))
-        let nodeBtnList = []
-        node.node_name = item.name
-        node.id = keys.activity[index]
-        // 填充节点执行人信息
-        node.users[0].description = formData.executor[index].desc1
-        node.users[0].calcs[0].description = formData.executor[index].desc2
-        node.users[0].calcs[0].executorVar.name = formData.executor[index].name
-        node.form.formValue = formData.formKey[index]
-        // 填充权限信息 -> 改为由表单统一限制
-        // processPermission[index].formKey = formData.formKey[index]
-        // processPermission[index].flowKey = keys.process
-        // processPermission[index].nodeId = keys.activity[index]
-        // node.form.editFormRights = processPermission[index]
-
-        node.attributes.nodeId = keys.activity[index]
-        // 填充节点操作按钮
-        formData.btnList[index].forEach(i => {
-            let b = JSON.parse(JSON.stringify(btn))
-            b.aliasName = btnType[i].aliasName
-            b.name = btnType[i].name
-            b.alias = btnType[i].alias
-            nodeBtnList.push(b)
-        })
-        node.buttons = nodeBtnList
-
-        nodeList.push(node)
-    })
-
-    processData.nodes.push(startNode, ...nodeList, endNode)
-    // console.log(processData)
-
-    return {
-        defId: id,
-        data: JSON.stringify(processData)
-    }
-}

+ 0 - 230
src/business/platform/form/utils/custom/processData.js

@@ -1,230 +0,0 @@
-export const startNode = {
-    "node_name": "开始",
-    "node_type": "start",
-    "id": "",
-    "parentId": null,
-    "scripts": {
-        "start": ""
-    },
-    "buttons": [],
-    "attributes": {
-        "allowPromoterStop": false,
-        "hideOpinion": false,
-        "jumpType": "common",
-        "rejectSection": "",
-        "hidePath": true,
-        "prevHandler": "",
-        "allowExecutorEmpty": false,
-        "notifyType": "",
-        "parentDefKey": "local_",
-        "skipExecutorEmpty": false,
-        "rejectType": "all",
-        "postHandler": "",
-        "buttonInitialized": true,
-        "nodeId": ""
-    }
-}
-
-export const endNode = {
-    "node_name": "结束",
-    "node_type": "end",
-    "id": "",
-    "parentId": null,
-    "scripts": {
-        "end": ""
-    }
-}
-
-export const normalNode = {
-    "node_name": "",
-    "node_type": "userTask",
-    "id": "",
-    "parentId": null,
-    "users": [
-        {
-            "parentFlowKey": "local_",
-            "condition": "",
-            "conditionMode": "",
-            "name": "",
-            "description": "",
-            "groupNo": 1,
-            "calcs": [
-                {
-                    "nodeName": "",
-                    "extract": "extract",
-                    "pluginName": "",
-                    "fullName": "",
-                    "logicCal": "or",
-                    "source": "var",
-                    "executorVar": {
-                        "executorType": "user",
-                        "valType": "userId",
-                        "name": "",
-                        "source": "boVar",
-                        "value": "",
-                        "party": false
-                    },
-                    "nodeId": "",
-                    "account": "",
-                    "pluginType": "cusers",
-                    "description": ""
-                }
-            ]
-        }
-    ],
-    "form": {
-        "type": "inner",
-        "version": null,
-        "mobileVersion": 0,
-        "formValue": "",
-        "mobileValue": "",
-        "name": "",
-        "mobileName": "",
-        "editUrl": "",
-        "editFormRights": null,
-        "mobileUrl": "",
-        "templateId": "",
-        "templateName": ""
-    },
-    "scripts": {
-        "complete": "",
-        "create": ""
-    },
-    "buttons": [],
-    "jumpRules": [],
-    "reminders": [],
-    "trigerFlows": [],
-    "procNotify": [],
-    "withOutGateway": false,
-    "attributes": {
-        "allowPromoterStop": false,
-        "hideOpinion": false,
-        "jumpType": "common",
-        "rejectSection": "",
-        "hidePath": true,
-        "prevHandler": "",
-        "allowExecutorEmpty": false,
-        "notifyType": "inner",
-        "parentDefKey": "local_",
-        "skipExecutorEmpty": false,
-        "rejectType": "all",
-        "postHandler": "",
-        "buttonInitialized": true,
-        "nodeId": ""
-    }
-}
-
-export const btn = {
-    "aliasName": "",
-    "supportScript": false,
-    "afterScript": "",
-    "code": "",
-    "name": "",
-    "alias": "",
-    "beforeScript": ""
-}
-
-export const btnType = {
-    start: {
-        aliasName: '启动',
-        name: '提交',
-        alias: 'startFlow'
-    },
-    end: {
-        aliasName: '同意',
-        name: '同意并结束',
-        alias: 'agree'
-    },
-    startSave: {
-        aliasName: '保存草稿',
-        name: '暂存',
-        alias: 'saveDraft'
-    },
-    agree: {
-        aliasName: '同意',
-        name: '提交',
-        alias: 'agree'
-    },
-    save: {
-        aliasName: '保存',
-        name: '暂存',
-        alias: 'save'
-    },
-    reject: {
-        aliasName: '驳回发起人',
-        name: '退回',
-        alias: 'rejectToStart'
-    },
-    flow: {
-        aliasName: '流程图',
-        name: '流程图',
-        alias: 'flowImage'
-    }
-}
-
-export const processData = {
-    "global": {
-        "id": "",
-        "bo": {
-            "saveMode": "table",
-            "code": "",
-            "name": "",
-            "version": 1
-        },
-        "form": {
-            "type": "inner",
-            "version": 0,
-            "mobileVersion": null,
-            "formValue": "",
-            "mobileValue": "",
-            "name": "",
-            "mobileName": "",
-            "editUrl": "",
-            "editFormRights": null,
-            "mobileUrl": "",
-            "templateId": "",
-            "templateName": "",
-            "prevHandler": null,
-            "postHandler": null
-        },
-        "instForm": {
-            "type": "inner",
-            "version": null,
-            "mobileVersion": null,
-            "formValue": "",
-            "mobileValue": "",
-            "name": "",
-            "mobileName": "",
-            "editUrl": "",
-            "editFormRights": null,
-            "mobileUrl": "",
-            "templateId": "",
-            "templateName": ""
-        },
-        "formOpinions": {},
-        "attributes": {
-            "subjectRule": "{流程标题:title}",
-            "archiveNotifyType": "inner",
-            "allowTransTo": false,
-            "prevHandler": "",
-            "allowExecutorEmpty": false,
-            "description": "",
-            "firstNodeUserAssign": false,
-            "startNotifyType": "inner",
-            "notifyType": "inner",
-            "skipExecutorEmpty": false,
-            "testNotifyType": "inner",
-            "allowCopyTo": false,
-            "testStatus": "test",
-            "skipSameUser": false,
-            "allowRefCounts": 5,
-            "postHandler": "",
-            "skipFirstNode": false,
-            "allowReference": false,
-            "status": "deploy"
-        },
-        "variables": [],
-        "procNotify": []
-    },
-    "nodes": []
-}

+ 0 - 1301
src/business/platform/form/utils/custom/processPermission.js

@@ -1,1301 +0,0 @@
-// 流程权限数据
-
-// 流程第二三步子表key
-let subTableCode = ['lhjcsbb', 'lhsjhcb', 'lhjcjgb', 'lhczbzzb', 'lhczbzs', 'lhczbs']
-// 获取只读权限json
-const getReadData = (original, type = 'none') => {
-    let newData = []
-    original.forEach(item => {
-        let obj = item
-        obj.edit = [{ "type": type }]
-        newData.push(obj)
-    })
-    return newData
-}
-// 获取子表json
-const getSubTable = type => {
-    let res = []
-    subTableCode.forEach(item => {
-        let obj = {
-            "code": item,
-            "name": item,
-            "read": [{ "type": "all" }],
-            "edit": [{ "type": type }],
-            "required": [{ "type": "none" }],
-            "hide": [{ "type": "none" }]
-        }
-        res.push(obj)
-    })
-    return res
-}
-// 获取子表按钮json
-const getSubTableButtons = type => {
-    let res = []
-    subTableCode.forEach(item => {
-        let add = {
-            "type": "add",
-            "name": "add",
-            "label": "添加",
-            "show": [{ "type": type }],
-            "code": item
-        }
-        let remove = {
-            "type": "remove",
-            "name": "remove",
-            "label": "删除",
-            "show": [{ "type": type }],
-            "code": item
-        }
-        res.push(add, remove)
-    })
-    return res
-}
-// 获取子表数据json
-const getSubTableData = type => {
-    let res = []
-    subTableCode.forEach((item, index) => {
-        let fieldsData = {
-            all0: subfield21,
-            all1: subfield22,
-            all2: subfield23,
-            all3: subfield24,
-            all4: subfield25,
-            all5: subfield26,
-            none0: subfield31,
-            none1: subfield32,
-            none2: subfield33,
-            none3: subfield34,
-            none4: subfield35,
-            none5: subfield36
-        }
-        let obj = {
-            "label": "",
-            "name": item,
-            "isMain": "N",
-            "read": [{ "type": "all" }],
-            "edit": [{ "type": type }],
-            "required": [{ "type": "none" }],
-            "hide": [{ "type": "none" }],
-            "buttons": type === 'none' ? [] : [
-                {
-                    "type": "add",
-                    "name": "add",
-                    "label": "添加",
-                    "show": [{ "type": type }]
-                },
-                {
-                    "type": "remove",
-                    "name": "remove",
-                    "label": "删除",
-                    "show": [{ "type": type }]
-                }
-            ],
-            "fields": fieldsData[type+index]
-        }
-        res.push(obj)
-    })
-    return res
-}
-
-let hideList = [
-    {
-        "name": "id",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "主键",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "zhanShiBiaoId",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "展示表id",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "weiTuoId",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "委托id",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "heTongId",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "合同id",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "jianCeLeiXing",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "检测类型",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "zhuangTai",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "状态",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    }
-]
-
-let readList1 = [
-    {
-        "name": "jianCeFangFa",
-        "code": "lhjczb",
-        "field_type": "attachment",
-        "label": "检测方法  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "sop",
-        "code": "lhjczb",
-        "field_type": "attachment",
-        "label": "sop    ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "jiLuBianHao",
-        "code": "lhjczb",
-        "field_type": "autoNumber",
-        "label": "记录编号  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "shiFouFenBao",
-        "code": "lhjczb",
-        "field_type": "radio",
-        "label": "是否分包 ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "wanChengShiJian",
-        "code": "lhjczb",
-        "field_type": "datePicker",
-        "label": "送检日期 ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "jianCeRiQi",
-        "code": "lhjczb",
-        "field_type": "datePicker",
-        "label": "检测开始日期",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "jianCeYuan",
-        "code": "lhjczb",
-        "field_type": "selector",
-        "label": "检测员  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "fuHeYuan",
-        "code": "lhjczb",
-        "field_type": "selector",
-        "label": "复核员  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "jianCeXiangMu",
-        "code": "lhjczb",
-        "field_type": "customDialog",
-        "label": "检测项目  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "baoGaoBianZhiYuan",
-        "code": "lhjczb",
-        "field_type": "selector",
-        "label": "报告编制员",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "baoGaoFuHeYuan",
-        "code": "lhjczb",
-        "field_type": "selector",
-        "label": "报告复核员",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yangPinBianHao",
-        "code": "lhjczb",
-        "field_type": "text",
-        "label": "样品编号  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yangPinMingCheng",
-        "code": "lhjczb",
-        "field_type": "text",
-        "label": "样品名称 ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "weiTuoLeiXing",
-        "code": "lhjczb",
-        "field_type": "text",
-        "label": "委托类型 ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-let readList2 = [
-    {
-        "name": "yangPinLeiXing",
-        "code": "lhjczb",
-        "field_type": "text",
-        "label": "样品类型  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "alert_1kgac6b",
-        "code": "lhjczb",
-        "field_type": "alert",
-        "label": "实验设备使用记录",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "alert_0l5chof",
-        "code": "lhjczb",
-        "field_type": "alert",
-        "label": " 实验试剂耗材使用记录",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "alert_1vv6u9x",
-        "code": "lhjczb",
-        "field_type": "alert",
-        "label": "检测结果表",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "desc_0zl21kg",
-        "code": "lhjczb",
-        "field_type": "desc",
-        "label": "检测过程异常情况处理",
-        "show": [{ "type": "all" }]
-    }
-]
-let readList3 = [
-    {
-        "name": "caoZuoBuZhou",
-        "code": "lhjczb",
-        "field_type": "textarea",
-        "label": "操作步骤",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "jianCeGuoCheng",
-        "code": "lhjczb",
-        "field_type": "textarea",
-        "label": "",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "jieGuoMiaoShu",
-        "code": "lhjczb",
-        "field_type": "textarea",
-        "label": "检测结果描述",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "fuJian",
-        "code": "lhjczb",
-        "field_type": "image",
-        "label": "图片    ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "wenDangFuJian",
-        "code": "lhjczb",
-        "field_type": "attachment",
-        "label": "文档附件  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "shiFouHeGe",
-        "code": "lhjczb",
-        "field_type": "radio",
-        "label": "检测结果  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "qiTa",
-        "code": "lhjczb",
-        "field_type": "text",
-        "label": "其他",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-
-const fieldList1 = [
-    ...hideList,
-    {
-        "name": "shiFouXiuGai",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "是否修改",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "xiuGaiId",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "修改id",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "caoZuoBuZhou",
-        "code": "lhjczb",
-        "field_type": "textarea",
-        "label": "操作步骤",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "wenDangFuJian",
-        "code": "lhjczb",
-        "field_type": "attachment",
-        "label": "文档附件  ",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "grid_1ho9697",
-        "code": "lhjczb",
-        "field_type": "grid",
-        "label": "栅格布局",
-        "show": [{ "type": "all" }]
-    },
-    ...readList1,
-    {
-        "name": "yangPinLeiXing",
-        "code": "lhjczb",
-        "field_type": "text",
-        "label": "样品类型  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yangPinXinXiQueRe",
-        "code": "lhjczb",
-        "field_type": "radio",
-        "label": "样品信息确认",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-const fieldList2 = [
-    ...hideList,
-    {
-        "name": "baoGaoYangPinLeiX",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "报告样品类型",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "baoGaoYangPin",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "报告样品规格",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "fuTuId",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "附图ID",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "grid_07v63al",
-        "code": "lhjczb",
-        "field_type": "grid",
-        "label": "栅格布局",
-        "show": [{ "type": "all" }]
-    },
-    {
-        "name": "grid_0hw0nhc",
-        "code": "lhjczb",
-        "field_type": "grid",
-        "label": "栅格布局",
-        "show": [{ "type": "all" }]
-    },
-    ...readList1,
-    ...readList2,
-    ...getReadData(readList3, 'all')
-]
-const fieldList3 = [
-    ...hideList,
-    {
-        "name": "baoGaoYangPinLeiX",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "报告样品类型",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "baoGaoYangPin",
-        "code": "lhjczb",
-        "field_type": "hidden",
-        "label": "报告样品规格",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "grid_07v63al",
-        "code": "lhjczb",
-        "field_type": "grid",
-        "label": "栅格布局",
-        "show": [{ "type": "all" }]
-    },
-    {
-        "name": "grid_0sm0iv6",
-        "code": "lhjczb",
-        "field_type": "grid",
-        "label": "栅格布局",
-        "show": [{ "type": "all" }]
-    },
-    ...readList1,
-    ...readList2,
-    ...readList3,
-    {
-        "name": "hyperlink_0cxfl2d",
-        "code": "lhjczb",
-        "field_type": "hyperlink",
-        "label": "链接    ",
-        "show": [{ "type": "all" }]
-    },
-    {
-        "name": "kuaiZhaoKaiGuan",
-        "code": "lhjczb",
-        "field_type": "switch",
-        "label": "快照开关  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "kuaiZhaoFuJian",
-        "code": "lhjczb",
-        "field_type": "attachment",
-        "label": "快照文件  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "fuHeRiQi",
-        "code": "lhjczb",
-        "field_type": "datePicker",
-        "label": "复核结束日期",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "shiFouFuJian",
-        "code": "lhjczb",
-        "field_type": "radio",
-        "label": "复检情况  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-
-const opinion1 = [
-    {
-        "name": "approval_opinion_0f353vc",
-        "label": "环境监控",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "approval_opinion_1frszdl",
-        "label": "数据输入",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "approval_opinion_1s3sgtf",
-        "label": "数据校验",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    }
-]
-const opinion2 = [
-    {
-        "name": "approval_opinion_0f353vc",
-        "label": "环境监控",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "approval_opinion_1frszdl",
-        "label": "数据输入",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "approval_opinion_1s3sgtf",
-        "label": "数据校验",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    }
-]
-const opinion3 = [
-    {
-        "name": "approval_opinion_0f353vc",
-        "label": "环境监控",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "approval_opinion_1frszdl",
-        "label": "数据输入",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "approval_opinion_1s3sgtf",
-        "label": "数据校验",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-
-const subfield1 = [
-    {
-        "name": "jianCeXiangMu",
-        "code": "lhjc",
-        "field_type": "hidden",
-        "label": "检测项目",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "huanJingYaoQiu",
-        "code": "lhjc",
-        "field_type": "text",
-        "label": "环境要求  ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "grid_1ozg0l7",
-        "code": "lhjc",
-        "field_type": "grid",
-        "label": "栅格布局",
-        "show": [{ "type": "all" }]
-    },
-    {
-        "name": "fuJian",
-        "code": "lhjc",
-        "field_type": "hidden",
-        "label": "附件",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "bianZhiRen",
-        "code": "lhjc",
-        "field_type": "selector",
-        "label": "编制人",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "bianZhiBuMen",
-        "code": "lhjc",
-        "field_type": "hidden",
-        "label": "编制部门",
-        "read": [{ "type": "none" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "all" }]
-    },
-    {
-        "name": "kaiShiRiQi",
-        "code": "lhjc",
-        "field_type": "datePicker",
-        "label": "开始日期    ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "jieShuRiQi",
-        "code": "lhjc",
-        "field_type": "datePicker",
-        "label": "结束日期   ",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "xiangDuiShiDu",
-        "code": "lhjc",
-        "field_type": "text",
-        "label": "相对湿度(%RH)",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "huanJingWenDu",
-        "code": "lhjc",
-        "field_type": "text",
-        "label": "环境温度(℃)",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-
-const subfield21 = [
-    {
-        "name": "sheBeiId",
-        "code": "lhjcsbb",
-        "field_type": "customDialog",
-        "label": "仪器编号",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yiQiBianHao",
-        "code": "lhjcsbb",
-        "field_type": "hidden",
-        "label": "仪器编号",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "sheBeiMingCheng",
-        "code": "lhjcsbb",
-        "field_type": "text",
-        "label": "设备名称",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "xiaoZhunYouXiaoQi",
-        "code": "lhjcsbb",
-        "field_type": "datePicker",
-        "label": "校准有效期",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "shiYongQingKuang",
-        "code": "lhjcsbb",
-        "field_type": "text",
-        "label": "使用情况",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "beiZhu",
-        "code": "lhjcsbb",
-        "field_type": "text",
-        "label": "备注",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-const subfield22 = [
-    {
-        "name": "ZhuanHuan",
-        "code": "lhsjhcb",
-        "field_type": "customDialog",
-        "label": "编号",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "bianHao",
-        "code": "lhsjhcb",
-        "field_type": "hidden",
-        "label": "编号",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "mingCheng",
-        "code": "lhsjhcb",
-        "field_type": "text",
-        "label": "名称",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "pinPai",
-        "code": "lhsjhcb",
-        "field_type": "text",
-        "label": "生厂商",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "huoHaoPiHao",
-        "code": "lhsjhcb",
-        "field_type": "text",
-        "label": "货号",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "piHao",
-        "code": "lhsjhcb",
-        "field_type": "text",
-        "label": "批号",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "youXiaoQiZhi",
-        "code": "lhsjhcb",
-        "field_type": "datePicker",
-        "label": "有效期至",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "none" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-const subfield23 = [
-    {
-        "name": "shiJiZuFenMingChe",
-        "code": "lhjcjgb",
-        "field_type": "text",
-        "label": "试剂/组分名称",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yongLiang",
-        "code": "lhjcjgb",
-        "field_type": "text",
-        "label": "用量",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "beiZhu",
-        "code": "lhjcjgb",
-        "field_type": "text",
-        "label": "备注",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-const subfield24 = [
-    {
-        "name": "guanHao",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "试管/组别编号",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yi",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "一",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "er",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "二",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "san",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "三",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "si",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "四",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "wu",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "五",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "liu",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "六",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "qi",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "七",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "ba",
-        "code": "lhczbzzb",
-        "field_type": "text",
-        "label": "八",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-const subfield25 = [
-    {
-        "name": "guanChaShiJianDia",
-        "code": "lhczbzs",
-        "field_type": "datePicker",
-        "label": "观察时间点",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "caoZuoShiJian",
-        "code": "lhczbzs",
-        "field_type": "datePicker",
-        "label": "操作时间",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "beiZhu",
-        "code": "lhczbzs",
-        "field_type": "text",
-        "label": "备注",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-const subfield26 = [
-    {
-        "name": "shiJiMingCheng",
-        "code": "lhczbs",
-        "field_type": "text",
-        "label": "试剂名称",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "aZu",
-        "code": "lhczbs",
-        "field_type": "text",
-        "label": "A组",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "bZu",
-        "code": "lhczbs",
-        "field_type": "text",
-        "label": "B组",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "cZu",
-        "code": "lhczbs",
-        "field_type": "text",
-        "label": "C组",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yangXingDuiZhaoYo",
-        "code": "lhczbs",
-        "field_type": "text",
-        "label": "阳性对照用量",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "yinXingDuiZhaoYon",
-        "code": "lhczbs",
-        "field_type": "text",
-        "label": "阴性对照用量",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    },
-    {
-        "name": "beiZhu",
-        "code": "lhczbs",
-        "field_type": "text",
-        "label": "备注",
-        "read": [{ "type": "all" }],
-        "edit": [{ "type": "all" }],
-        "required": [{ "type": "none" }],
-        "hide": [{ "type": "none" }]
-    }
-]
-
-const subfield31 = getReadData(subfield21)
-const subfield32 = getReadData(subfield22)
-const subfield33 = getReadData(subfield23)
-const subfield34 = getReadData(subfield24)
-const subfield35 = getReadData(subfield25)
-const subfield36 = getReadData(subfield26)
-
-export const processPermission = [
-    {
-        "formKey": "",
-        "flowKey": "",
-        "nodeId": "",
-        "parentflowKey": null,
-        "isInst": false,
-        "rightsScope": "node",
-        "permission": {
-            "field": fieldList1,
-            "subfield": subfield1,
-            "table": [
-                {
-                    "code": "lhjc",
-                    "name": "lhjc",
-                    "read": [{ "type": "all" }],
-                    "edit": [{ "type": "all" }],
-                    "required": [{ "type": "none" }],
-                    "hide": [{ "type": "none" }]
-                }
-            ],
-            "button": [],
-            "opinion": opinion1
-        },
-        "permissionLabel": {
-            "table": [
-                {
-                    "label": "罗湖细胞存活率检测 细胞计数法(台盼蓝染色法)环境监控-4",
-                    "name": "lhjczb",
-                    "isMain": "Y",
-                    "fields": fieldList1
-                },
-                {
-                    "label": "",
-                    "name": "lhjc",
-                    "isMain": "N",
-                    "read": [{ "type": "all" }],
-                    "edit": [{ "type": "all" }],
-                    "required": [{ "type": "none" }],
-                    "hide": [{ "type": "none" }],
-                    "buttons": [],
-                    "fields": subfield1
-                }
-            ],
-            "opinion": opinion1
-        }
-    },
-    {
-        "formKey": "",
-        "flowKey": "",
-        "nodeId": "",
-        "parentflowKey": null,
-        "isInst": false,
-        "rightsScope": "node",
-        "permission": {
-            "field": fieldList2,
-            "subfield": [
-                ...subfield21,
-                ...subfield22,
-                ...subfield23,
-                ...subfield24,
-                ...subfield25,
-                ...subfield26
-            ],
-            "table": getSubTable('all'),
-            "button": getSubTableButtons('all'),
-            "opinion": opinion2
-        },
-        "permissionLabel": {
-            "table": [
-                {
-                    "label": "罗湖细胞存活率检测 细胞计数法(台盼蓝染色法)数据输入-4",
-                    "name": "lhjczb",
-                    "isMain": "Y",
-                    "fields": fieldList2
-                },
-                ...getSubTableData('all')
-            ],
-            "opinion": opinion2
-        }
-    },
-    {
-        "formKey": "",
-        "flowKey": "",
-        "nodeId": "",
-        "parentflowKey": null,
-        "isInst": false,
-        "rightsScope": "node",
-        "permission": {
-            "field": fieldList3,
-            "subfield": [
-                ...subfield31,
-                ...subfield32,
-                ...subfield33,
-                ...subfield34,
-                ...subfield35,
-                ...subfield36
-            ],
-            "table": getSubTable('none'),
-            // "button": getSubTableButtons('none'),
-            "button": [],
-            "opinion": opinion3
-        },
-        "permissionLabel": {
-            "table": [
-                {
-                    "label": "罗湖细胞存活率检测 细胞计数法(台盼蓝染色法)数据校验-4",
-                    "name": "lhjczb",
-                    "isMain": "Y",
-                    "fields": fieldList3
-                },
-                ...getSubTableData('none')
-            ],
-            "opinion": opinion3
-        }
-    }
-]

+ 5 - 37
src/business/platform/form/utils/custom/requestType.js

@@ -1,39 +1,7 @@
-export const requestType = {
-    // 直接传入sql
-    sql: 'inputSqlSelectData',
-    select: 'selectDataContextTable',
-    selects: 'selectDatasContextTable',
-    delete: 'deleteDataContextTable',
+// 通用请求,增删改查
+export const normal = {
+    sql: 'encipher',
+    delete: 'batchDelete',
     add: 'addDataContextTable',
-    update: 'updateDataContextTable',
-    // 批量修改
-    updates: 'updateDatasContextTable',
-    // 批量修改 修改多条数据各自对应的值
-    updatesByWhere: 'updatesBatchContextTable',
-    batchDelete: 'batchDelete',
-    // 主管提醒(第一滴血)
-    str: 'crudZhuGuan',
-    // 主管提醒(二连击破)
-    send: 'sendmessage',
-    // 主管提醒(三联决胜)
-    sendCms: 'sendCms',
-    // 主管提醒(四连超凡 😥)
-    sendmessages: 'sendmessages'
-}
-
-export const requestPath = {
-    // 公告短信
-    notice: 'business/v3/hwsys/universal/sendNoticeMsg',
-    // 财务短信
-    financial: 'business/v3/hwsys/universal/sendFinancialMsg',
-    // 创建流程
-    createProcess: 'business/v3/bpm/modeler/save',
-    // 设置流程
-    setProcess: 'business/v3/bpm/definition/saveSetting/vo',
-    // 获取流水号
-    getId: 'platform/v3/identity/getNextIdByAlias',
-    // 发送内部消息
-    sendNotice: 'platform/v3/msg/innerMessage/save',
-    // 保存表单数据
-    saveFormData: 'business/v3/bpm/task/save/task'
+    update: 'updatesBatchContextTable'
 }

+ 0 - 16
src/business/platform/form/utils/custom/serialNumber.js

@@ -1,16 +0,0 @@
-import request from '@/utils/request'
-
-//编号字体 ,   编号生成规则 如001则输入3 ,   版本号 唯一标识。
-const getSeroal =  (font,rule,ver,length) => {
-  let dataCont = {'matchingFont':font,'rule':rule,'version':ver}
-  if(length){
-    dataCont['length'] = length
-  }
-   return request({
-              url: 'business/v3/sys/universal/getDataNumber',
-              method: 'post',
-              data: dataCont
-              })
-}
-
-export default getSeroal

+ 49 - 0
src/utils/common.js

@@ -0,0 +1,49 @@
+// 通用工具类,定义通用函数及常用接口
+import { encryptByAes } from '@/utils/encrypt'
+import previewPdf from '@/business/platform/form/utils/custom/preview'
+import request from '@/business/platform/form/utils/custom/joinCURD'
+import pinyin4js from 'pinyin4js'
+import { snapshoot } from '@/api/platform/file/attachment'
+import { getNextIdByAlias } from '@/api/platform/system/identity'
+import { save as sendMsg } from '@/api/platform/message/innerMessage'
+import { bpmTaskSave } from '@/api/platform/bpmn/bpmTask'
+
+// base64解码
+const decode = str => decodeURIComponent(window.atob(str).split('').map(c => `%${`00${c.charCodeAt(0).toString(16)}`.slice(-2)}`).join(''))
+
+// 下载
+export const download = (o, name) => {
+    if (!(o instanceof Blob)) {
+        return
+    }
+
+    if (window.navigator.msSaveBlob) {
+        window.navigator.msSaveBlob(o, name)
+    } else {
+        const URL = window.URL || window.webkitURL || window
+        const e = document.createElementNS('http://www.w3.org/1999/xhtml', 'a')
+        e.href = URL.createObjectURL(o)
+        e.download = name
+
+        if (document.all) {
+            e.click()
+        } else {
+            const ev = document.createEvent('MouseEvents')
+            ev.initMouseEvent('click', true, false, window, 0, 0, 0, 0, false, false, false, false, 0, null)
+            e.dispatchEvent(ev)
+        }
+    }
+}
+
+export default {
+    previewPdf,
+    request,
+    pinyin4js,
+    snapshoot,
+    getNextIdByAlias,
+    decode,
+    encryptByAes,
+    download,
+    sendMsg,
+    bpmTaskSave
+}

+ 26 - 0
src/utils/encrypt.js

@@ -0,0 +1,26 @@
+import CryptoJS from 'crypto-js'
+const key = CryptoJS.enc.Utf8.parse('dmngJmmO+9GMw+tu')
+const iv = CryptoJS.enc.Utf8.parse('sanXyqhk8+U7LPP4')
+// AES加密
+export const encryptByAes = pwd => {
+    let encrypted = ''
+    if (typeof pwd === 'string') {
+        const srcs = CryptoJS.enc.Utf8.parse(pwd)
+        const options = {
+            iv: iv,
+            mode: CryptoJS.mode.CBC, // 使用CBC模式
+            padding: CryptoJS.pad.Pkcs7 // 使用PKCS7填充
+        }
+        encrypted = CryptoJS.AES.encrypt(srcs, key, options)
+    } else if (typeof pwd === 'object') {
+        const data = JSON.stringify(pwd)
+        const srcs = CryptoJS.enc.Utf8.parse(data)
+        const options = {
+            iv: iv,
+            mode: CryptoJS.mode.CBC, // 使用CBC模式
+            padding: CryptoJS.pad.Pkcs7 // 使用PKCS7填充
+        }
+        encrypted = CryptoJS.AES.encrypt(srcs, key, options)
+    }
+    return encrypted.ciphertext.toString(CryptoJS.enc.Base64)
+}

+ 3 - 3
src/views/platform/bo/boDef/edit/detail/object-attr/index.vue

@@ -118,11 +118,11 @@ export default {
                 searchForm: {},
                 // 表格字段配置
                 columns: [
-                    { prop: 'name', label: '名称', minWidth: 150 },
+                    { prop: 'name', label: '名称', width: 250 },
                     { prop: 'code', label: '编码', width: 140 },
                     { prop: 'fieldName', label: '字段', width: 140 },
-                    { prop: 'desc', label: '字段描述', width: 200 },
-                    { prop: 'dataType', label: '属性类型', tags: typeOptions, width: 120 }
+                    { prop: 'dataType', label: '属性类型', tags: typeOptions, width: 120 },
+                    { prop: 'desc', label: '字段描述', minWidth: 200 }
                 ]
             }
         }

+ 0 - 1
src/views/system/dashboard/page.vue

@@ -247,7 +247,6 @@
             this.initData()
         },
         created () {
-            this.getTestingData()
             this.getUsersList()
             StatisticsData().then(data => {
                 // 将参数替换成对应参数