{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\Tenant\\TenantParamsManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\Tenant\\TenantParamsManager.vue","mtime":1675071993381},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport org from '@/api/org.js';\nimport utils from '@/hotent-ui-util.js';\nexport default {\n components: {},\n computed: {\n demDeleteUrl: function demDeleteUrl() {\n return window.context.uc + '/api/params/v1/param/deleteParamsByIds';\n },\n saveRoleUrl: function saveRoleUrl() {\n var preUrl = window.context.uc + '/api/params/v1/param';\n\n if (this.ProParam.id) {\n preUrl += '/updateParams';\n } else {\n preUrl += '/addParams';\n }\n\n return preUrl;\n },\n requestMethod: function requestMethod() {\n return this.ProParam.id ? 'PUT' : 'POST';\n }\n },\n data: function data() {\n return {\n multiple: true,\n dialogVisible: false,\n dialogVisibleMenuPerm: false,\n isCusOprionsShow: false,\n //自定义选项是否展示\n ProParam: {\n tenantTypeId: '',\n id: '',\n name: '',\n code: '',\n ctlType: '',\n ctrType: '',\n json: [],\n type: '1'\n },\n isSubmit: true,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n loadDataUrl: '',\n menuPerm: {},\n allowRoles: [],\n readOnly: false,\n ctlTypeOptions: [{\n key: 'input',\n value: '手动输入'\n }, {\n key: 'select',\n value: '下拉框'\n }, {\n key: 'checkbox',\n value: '复选框'\n }, {\n key: 'radio',\n value: '单选按钮'\n }, {\n key: 'date',\n value: '日期'\n }, {\n key: 'number',\n value: '数字'\n }],\n showInfo: false,\n tenantTypeList: []\n };\n },\n mounted: function mounted() {\n this.$validator = this.$root.$validator;\n },\n methods: {\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n setDemDefault: function setDemDefault(row) {\n var _this = this;\n\n org.setDemDefault(row.code).then(function () {\n _this.$refs.htTable.load();\n });\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.showInfo = false;\n this.isCusOprionsShow = false;\n this.loadDataUrl = '';\n },\n handleCloseMenuPerm: function handleCloseMenuPerm() {\n this.dialogVisibleMenuPerm = false;\n },\n showDialog: function showDialog(row) {\n this.loadDataUrl = '';\n this.dialogVisible = true;\n this.multiple = true;\n this.readOnly = false;\n\n if (row) {\n this.multiple = false;\n this.loadDataUrl = \"/api/params/v1/param/getParams?code=\".concat(row.code, \"&tenantTypeId=\").concat(row.tenantTypeId);\n } else {\n this.ProParam = {\n tenantTypeId: '',\n id: '',\n name: '',\n code: '',\n ctlType: '',\n json: [],\n type: '3'\n };\n }\n\n this.getTenantTypeList();\n },\n getTenantTypeList: function getTenantTypeList() {\n var that = this;\n this.$http.get('${uc}/uc/tenantType/v1/getAll?status=enable').then(function (resp) {\n that.tenantTypeList = resp.data;\n }, function (error) {\n reject(error);\n });\n },\n dialogCancle: function dialogCancle(dialogVisible) {\n this[dialogVisible] = false;\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n\n org.getParamsPage(param).then(function (response) {\n _this2.data = response.rows;\n _this2.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n handleCommand: function handleCommand(params) {\n var _this3 = this;\n\n this.readOnly = false;\n\n switch (params.command) {\n case 'showInfo':\n //展示详细信息\n this.showInfo = true;\n org.getParams(params.row.code).then(function (resp) {\n resp.json = JSON.parse(resp.json);\n _this3.ProParam = resp;\n\n _this3.ctlTypeChecked();\n });\n break;\n\n case 'assignMenu':\n this.readOnly = true;\n this.showDialog(params.row);\n break;\n\n case 'setDemDefault':\n this.setDemDefault(params.row);\n break;\n\n default:\n break;\n }\n },\n beforeSaveData: function () {\n var _beforeSaveData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!['select', 'checkbox', 'radio'].includes(this.ProParam.ctlType)) {\n _context.next = 5;\n break;\n }\n\n if (!(this.ProParam.json.length === 0)) {\n _context.next = 5;\n break;\n }\n\n this.isSubmit = false;\n this.$message({\n type: 'warning',\n message: '请添加自定义选项'\n });\n return _context.abrupt(\"return\");\n\n case 5:\n this.isSubmit = true;\n this.ProParam.ctrType = this.ProParam.ctlType;\n\n case 7:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function beforeSaveData() {\n return _beforeSaveData.apply(this, arguments);\n }\n\n return beforeSaveData;\n }(),\n afterSaveData: function afterSaveData() {\n this.dialogVisible = false;\n this.isCusOprionsShow = false;\n this.$refs.htTable.load();\n },\n afterDelete: function afterDelete() {\n this.$refs.htTable.load();\n },\n afterLoadData: function afterLoadData(data) {\n var _this4 = this;\n\n // 编辑角色\n if (this.dialogVisible) {\n if (data.json != '') {\n data.json = JSON.parse(data.json);\n this.ProParam = data;\n this.ctlTypeChecked();\n setTimeout(function () {\n return _this4.$validator.validateAll('editDemForm');\n });\n }\n }\n },\n move: function move(ary, item, direct) {\n this.ProParam.json = utils.arrayMove(ary, item, direct);\n },\n ctlTypeChecked: function ctlTypeChecked() {\n var thisctlType = this.ProParam.ctlType;\n\n if (thisctlType === 'input' || thisctlType === 'date' || thisctlType === 'number') {\n this.isCusOprionsShow = false;\n } else {\n this.isCusOprionsShow = true;\n }\n }\n }\n};",null]}