{"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\\SysTagManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\portal\\SysTagManager.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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 portal from \"@/api/portal\";\nimport styles from \"@/assets/css/element-variables.scss\";\nimport req from \"@/request.js\";\n\nvar HtSysTypeTree = function HtSysTypeTree() {\n return import(\"@/components/common/HtSysTypeTree.vue\");\n};\n\nexport default {\n name: \"sys-tag-manager\",\n components: {\n HtSysTypeTree: HtSysTypeTree\n },\n data: function data() {\n return {\n width: styles.aside_width,\n asideShow: true,\n title: \"添加标签分类\",\n dialogVisible: false,\n tagDialogVisible: false,\n sysType: {\n children: [],\n icon: \"{}\",\n isLeaf: \"N\",\n typeKey: \"\",\n name: \"\"\n },\n sysTag: {\n name: \"\",\n key: \"\",\n typeKey: \"\",\n typeId: \"\"\n },\n parentSysType: {},\n tagDatas: [],\n currentNode: {},\n saveTagUrl: window.context.portal + \"/portal/sysTag/v1/save\",\n uploadDialogVisible: false,\n fileList: [],\n uploadUrl: window.context.portal + \"/portal/sysTag/v1/import\",\n typeId: \"\"\n };\n },\n computed: {\n navbarCollapseStyle: function navbarCollapseStyle() {\n if (this.asideShow) {\n return {\n left: parseInt(this.width) + \"px\"\n };\n }\n\n return {\n left: \"0px\"\n };\n },\n saveUrl: function saveUrl() {\n return \"\".concat(window.context.portal, \"/sys/sysType/v1/save?parentId=\").concat(this.parentSysType.id, \"&isRoot=\").concat(this.parentSysType.parentId == 0 ? 1 : 0, \"&isPriNode=0\");\n }\n },\n methods: {\n handleNodeClick: function handleNodeClick(node) {\n this.loadTagDatas(node);\n this.currentNode = node;\n },\n handleCommand: function handleCommand(param) {\n switch (param.action) {\n case \"add\":\n this.add(param.data);\n break;\n\n case \"edit\":\n this.edit(param.data);\n break;\n\n case \"delete\":\n this.delete(param.data);\n break;\n\n case \"addTag\":\n this.addTag(param.data);\n break;\n\n case \"editTag\":\n this.editTag(param.data);\n break;\n\n case \"deleteTag\":\n this.deleteTag(param.data);\n break;\n\n case \"export\":\n this.exportFile(param.data);\n break;\n\n case \"import\":\n this.importFile(param.data);\n\n default:\n break;\n }\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.tagDialogVisible = false;\n this.sysTag = {\n name: \"\",\n key: \"\",\n typeKey: \"\",\n typeId: \"\"\n };\n },\n add: function add(data) {\n this.dialogVisible = true;\n this.title = \"编辑标签分类\";\n\n if (data) {\n this.sysType.id = \"\";\n this.sysType.name = \"\";\n this.sysType.typeKey = \"\";\n this.sysType.parentId = data.id;\n this.sysType.typeGroupKey = data.parentId == 0 ? data.typeKey : data.typeGroupKey;\n this.parentSysType = data;\n }\n },\n edit: function edit(data) {\n this.sysType = _objectSpread({}, data);\n this.title = \"编辑标签分类\";\n this.dialogVisible = true;\n },\n delete: function _delete(data) {\n var _this = this;\n\n if (data.id) {\n this.$confirm(\"\\u662F\\u5426\\u786E\\u5B9A\\u5220\\u9664 [\".concat(data.name, \"] \\u53CA\\u5176\\u5B50\\u5206\\u7C7B\\uFF08\\u5305\\u542B\\u5206\\u7C7B\\u4E0B\\u6807\\u7B7E\\u9879\\u6570\\u636E\\uFF09?\"), \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n portal.removeTagByTypeId(data.id).then(function (data) {\n if (data.state) {\n _this.$message({\n type: \"success\",\n message: data.message || \"删除成功\"\n });\n\n _this.$refs.htSysTypeTree.loadData();\n\n _this.tagDatas = [];\n _this.currentNode = null;\n }\n }).catch(function () {\n _this.dialogVisible = false;\n });\n });\n }\n },\n addTag: function addTag(data) {\n debugger;\n this.title = \"新增标签\";\n this.tagDialogVisible = true;\n\n if (data) {\n this.sysTag.id = \"\";\n this.sysTag.name = \"\";\n this.sysTag.key = \"\";\n this.sysTag.typeKey = data.key;\n this.sysTag.typeId = data.id;\n }\n },\n editTag: function editTag(data) {\n this.title = \"编辑标签\";\n this.sysTag = _objectSpread({}, data);\n this.tagDialogVisible = true;\n },\n deleteTag: function deleteTag(data) {\n var _this2 = this;\n\n if (data.id) {\n this.$confirm(\"\\u662F\\u5426\\u786E\\u5B9A\\u5220\\u9664 [\".concat(data.name, \"]?\"), \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n portal.removeTag(data.id).then(function (data) {\n if (data.state) {\n _this2.$message({\n type: \"success\",\n message: data.message || \"删除成功\"\n });\n\n _this2.loadTagDatas(_this2.currentNode);\n }\n });\n }).catch(function () {\n _this2.dialogVisible = false;\n });\n }\n },\n afterSaveData: function afterSaveData() {\n this.dialogVisible = false;\n this.$refs.htSysTypeTree.loadData();\n },\n afterSaveTagData: function afterSaveTagData() {\n this.tagDialogVisible = false;\n this.loadTagDatas(this.currentNode);\n },\n loadTagDatas: function loadTagDatas(node) {\n var _this3 = this;\n\n if (node.id === \"11\") return;\n portal.getTagsByTypeId(node.id).then(function (data) {\n _this3.tagDatas = [];\n var head = {\n id: node.id,\n name: node.name,\n children: data,\n key: node.typeKey,\n parentId: -1\n };\n\n _this3.tagDatas.push(head);\n });\n },\n exportFile: function exportFile(data) {\n var id = data.id;\n var url = window.context.portal + \"/portal/sysTag/v1/export?typeId=\" + id;\n req.download(url);\n },\n beforeClose: function beforeClose() {\n this.uploadDialogVisible = false;\n this.fileList = [];\n },\n handleImport: function handleImport(param) {\n var _this4 = this;\n\n var formData = new FormData();\n formData.append(\"file\", param.file);\n portal.importSysTags(formData, this.typeId).then(function (resp) {\n if (resp.state) {\n _this4.$message({\n type: \"success\",\n message: \"导入成功\"\n });\n\n _this4.uploadDialogVisible = false;\n _this4.fileList = [];\n\n _this4.loadTagDatas(_this4.currentNode);\n } else {\n _this4.beforeClose();\n }\n });\n },\n importFile: function importFile(data) {\n this.typeId = data.id;\n this.uploadDialogVisible = true;\n },\n uploadSubmit: function uploadSubmit() {\n if (this.$refs.elUpload.uploadFiles.length == 0) {\n this.$message({\n type: \"warning\",\n message: \"请上传文件\"\n });\n }\n\n this.$refs.elUpload.submit();\n },\n tagClick: function tagClick(data) {\n this.editTag(data);\n },\n showEditPermission: function showEditPermission(data) {\n if (!data) {\n return false;\n }\n\n if (data.parentId === '0') {\n return false;\n }\n\n if (data.typeKey && data.typeKey === 'yybq' || data.typeKey === 'bdbq') {\n return false;\n }\n\n return true;\n }\n }\n};",null]}