{"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\\portal\\PortalDataSensitiveManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\portal\\PortalDataSensitiveManager.vue","mtime":1675071993053},{"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/web.dom.iterable\";\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//\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//\nvar eipAuthDialog = function eipAuthDialog() {\n return import('@/components/dialog/EipAuthDialog.vue');\n};\n\nimport deepmerge from 'deepmerge';\nexport default {\n components: {\n eipAuthDialog: eipAuthDialog\n },\n data: function data() {\n return {\n dialogVisible: false,\n data: [],\n isSubmit: true,\n currentIndex: 0,\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n portalDataSensitive: {\n dataSourceAlias: 'local',\n calType: '1',\n desensitizationRulesArr: []\n },\n saveData: {}\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 addField: function addField() {\n var _this = this;\n\n var obj = {\n fieldName: '',\n rules: {\n pad: '*'\n },\n groovyScript: '',\n rights: []\n };\n this.$nextTick(function () {\n _this.portalDataSensitive.desensitizationRulesArr.push(obj);\n });\n },\n beforeSaveData: function () {\n var _beforeSaveData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this2 = this;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.isSubmit = true;\n this.saveData = deepmerge({}, this.portalDataSensitive, {\n clone: true\n });\n this.saveData.desensitizationRulesArr.forEach(function (item) {\n if (item.calType == 2 && !item.groovyScript) {\n _this2.$message.warning('掩码方式为自定义时,脚本必填');\n\n _this2.isSubmit = false;\n }\n\n if (item.calType == 1 && !item.rules.pad) {\n _this2.$message.warning('掩码方式为掩码规则时,填充符必填');\n\n _this2.isSubmit = false;\n }\n\n item.rights = JSON.stringify(item.rights);\n item.rules = JSON.stringify(item.rules);\n });\n this.saveData.desensitizationRules = JSON.stringify(this.saveData.desensitizationRulesArr);\n\n case 4:\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 showAuthDialog: function showAuthDialog(rightsArr, currentIndex) {\n this.currentIndex = currentIndex;\n var conf = {\n right: [],\n permissionList: [{\n type: 'everyone',\n title: '所有人'\n }, {\n type: 'user',\n title: '用户'\n }, {\n type: 'org',\n title: '组织'\n }, {\n type: 'pos',\n title: '岗位'\n }, {\n type: 'role',\n title: '角色'\n }]\n };\n conf.right = rightsArr || [];\n this.$refs.eipAuthDialog.showDialog(conf);\n },\n dialogOnConfirm: function dialogOnConfirm(data, name) {\n if (name == 'eipAuthDialog') {\n this.portalDataSensitive.desensitizationRulesArr[this.currentIndex].rights = data;\n }\n },\n showDialog: function showDialog(id) {\n var _this3 = this;\n\n if (id) {\n this.$http.get('${portal}/portal/portalDataSensitive/v1/getJson?id=' + \"\".concat(id)).then(function (resp) {\n _this3.portalDataSensitive = resp.data;\n _this3.portalDataSensitive.desensitizationRulesArr = JSON.parse(_this3.portalDataSensitive.desensitizationRules);\n\n _this3.portalDataSensitive.desensitizationRulesArr.forEach(function (element) {\n element.rules = JSON.parse(element.rules);\n element.rights = JSON.parse(element.rights);\n });\n\n _this3.dialogVisible = true;\n }, function (error) {\n reject(error);\n });\n } else {\n this.dialogVisible = true;\n }\n },\n beforeCloseDialog: function beforeCloseDialog() {\n this.portalDataSensitive = {\n dataSourceAlias: 'local',\n calType: '1',\n desensitizationRulesArr: []\n };\n this.dialogVisible = false;\n },\n loadData: function loadData(param, cb) {\n var _this4 = this;\n\n this.$http.post('${portal}/portal/portalDataSensitive/v1/listJson', param).then(function (resp) {\n var response = resp.data;\n _this4.data = response.rows;\n _this4.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n return cb();\n });\n },\n afterSaveData: function afterSaveData() {\n var _this5 = this;\n\n setTimeout(function () {\n _this5.beforeCloseDialog();\n\n _this5.$refs.htTable.load();\n }, 500);\n },\n save: function save() {\n var _this6 = this;\n\n this.beforeSaveData();\n\n if (this.saveData.id) {\n this.$http.post(\"\".concat(window.context.portal, \"/portal/portalDataSensitive/v1/save\"), this.saveData).then(function (resp) {\n _this6.afterSaveData();\n });\n } else {\n this.$http.get(\"\".concat(window.context.portal, \"/portal/portalDataSensitive/v1/getByTableName/\").concat(this.saveData.tableName)).then(function (resp) {\n if (resp.data) {\n _this6.$confirm('已存在表为【' + _this6.saveData.tableName + '】的配置,是否覆盖?').then(function () {\n _this6.saveData.id = resp.data.id;\n\n _this6.$http.post(\"\".concat(window.context.portal, \"/portal/portalDataSensitive/v1/save\"), _this6.saveData).then(function (resp) {\n _this6.afterSaveData();\n });\n }).catch(function () {\n _this6.beforeCloseDialog();\n });\n } else {\n _this6.$http.post(\"\".concat(window.context.portal, \"/portal/portalDataSensitive/v1/save\"), _this6.saveData).then(function (resp) {\n _this6.afterSaveData();\n });\n }\n });\n }\n }\n }\n};",null]}