{"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\\system\\generator\\sysModuleList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\system\\generator\\sysModuleList.vue","mtime":1675071993225},{"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/es6.string.ends-with\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.search\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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.js\";\nimport req from \"@/request.js\";\n\nvar htAsideTree = function htAsideTree() {\n  return import(\"@/components/common/HtAsideTree.vue\");\n};\n\nvar sysModuleAddMenus = function sysModuleAddMenus() {\n  return import(\"@/views/system/generator/sysModuleAddMenus.vue\");\n};\n\nimport sysModuleCreate from \"@/views/system/generator/sysModuleCreate.vue\";\nimport sysModulePreview from \"@/views/system/generator/sysModulePreview.vue\";\nimport { mapState } from \"vuex\";\nimport moment from \"moment\"; //日期格式化插件\n\nexport default {\n  name: \"sysModuleList\",\n  components: {\n    htAsideTree: htAsideTree,\n    sysModuleCreate: sysModuleCreate,\n    sysModulePreview: sysModulePreview,\n    sysModuleAddMenus: sysModuleAddMenus\n  },\n  data: function data() {\n    return {\n      id: \"\",\n      previewId: \"\",\n      importDialogVisible: false,\n      fullscreenLoading: false,\n      moduleData: {},\n      dialogVisible: false,\n      moduleEditorDialogVisible: false,\n      dataChekedList: [],\n      typeIdQuery: null,\n      pagination: {\n        page: 1,\n        pageSize: 9,\n        total: 0\n      },\n      moduleName: '',\n      data: []\n    };\n  },\n  computed: mapState({\n    uploadHeaders: function uploadHeaders(mapState) {\n      return {\n        Authorization: \"Bearer \" + mapState.login.currentUser.token\n      };\n    },\n    imporCheckUrl: function imporCheckUrl() {\n      return window.context.portal + \"/sys/sysModule/v1/importModule\";\n    }\n  }),\n  methods: {\n    handleCloseModuleEditor: function handleCloseModuleEditor() {\n      this.id = \"\";\n      this.moduleEditorDialogVisible = false;\n      this.search();\n    },\n    handleClose: function handleClose() {\n      this.previewId = \"\";\n      this.dialogVisible = false;\n    },\n    search: function search() {\n      var _this = this;\n\n      var querys = [];\n\n      if (this.typeIdQuery != null) {\n        querys.push(this.typeIdQuery);\n      }\n\n      var pageBean = {\n        pageBean: this.pagination,\n        querys: querys\n      };\n      portal.getSysModuleJson(pageBean).then(function (response) {\n        _this.data = response.rows;\n        _this.pagination = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      });\n    },\n    newModule: function newModule(id) {\n      this.id = id;\n      this.moduleEditorDialogVisible = true;\n    },\n    itemClick: function itemClick(item, $event) {\n      $event.preventDefault();\n      var id = item.id;\n\n      if (this.dataChekedList.indexOf(id) == -1) {\n        this.dataChekedList.push(id);\n        this.$set(item, \"checked\", true);\n      } else {\n        this.dataChekedList.remove(id);\n        this.$set(item, \"checked\", false);\n      }\n    },\n    handleCurrentChange: function handleCurrentChange(currentPage) {\n      this.pagination.page = currentPage;\n      this.search();\n    },\n    deleteItem: function deleteItem(id) {\n      var _this2 = this;\n\n      this.$confirm(\"确定删除吗?\", \"提示\", {\n        confirmButtonText: \"确定\",\n        cancelButtonText: \"取消\",\n        type: \"warning\"\n      }).then(function () {\n        req.remove(window.context.portal + \"/sys/sysModule/v1/remove?ids=\" + id).then(function (resp) {\n          _this2.$message.success(resp.data.message || \"操作成功\");\n\n          _this2.dataChekedList = [];\n\n          _this2.search();\n        });\n      });\n    },\n    modulePreview: function modulePreview(id) {\n      var _this3 = this;\n\n      var url = window.context.portal + \"/sys/sysModule/v1/getJson?id=\" + id;\n      req.get(url).then(function (response) {\n        _this3.moduleData = response.data;\n        _this3.dialogVisible = true;\n      });\n    },\n    handleNodeClick: function handleNodeClick(node) {\n      if (node.typeKey == \"SYSMODULE\") {\n        this.typeIdQuery = null;\n      } else {\n        this.typeIdQuery = {\n          property: \"classifyId\",\n          value: node.id,\n          operation: \"EQUAL\",\n          relation: \"AND\"\n        };\n      }\n\n      this.search();\n    },\n    modulePush: function modulePush(item) {\n      this.moduleName = item.name;\n      this.$refs.sysModuleAddMenus.showDialog(item.id);\n    },\n    //导入\n    handExport: function handExport() {\n      this.importDialogVisible = true;\n    },\n    //导出\n    handImport: function handImport() {\n      if (this.dataChekedList.length == 0) {\n        this.$message.warning(\"请选择至少一项记录\");\n        return;\n      }\n\n      req.download(\"${portal}/sys/sysModule/v1/exportModule?ids=\" + this.dataChekedList);\n    },\n    hadleUploadResult: function hadleUploadResult(response) {\n      if (response.state) {\n        this.$message.success(response.message);\n      } else {\n        this.$message.error(response.message);\n      }\n\n      this.importDialogVisible = false;\n      this.fullscreenLoading = false;\n      this.search();\n    },\n    beforeUpload: function beforeUpload(file) {\n      if (!file.name.endsWith(\".zip\")) {\n        this.$message.warning(\"只能导入zip文件!\");\n        return false;\n      }\n\n      this.imporActionUrl = this.imporCheckUrl;\n      this.fullscreenLoading = true;\n    },\n    onExceed: function onExceed(file) {\n      this.$message.warning(\"只能选择一个zip文件!\");\n    },\n    submitImport: function submitImport() {\n      if (!this.$refs.upload.uploadFiles || this.$refs.upload.uploadFiles.length == 0) {\n        this.$message.warning(\"请选择要导入的模块!\");\n        return false;\n      }\n\n      this.$refs.upload.submit();\n    }\n  },\n  created: function created() {\n    this.search();\n  }\n};",null]}