{"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\\components\\form\\dataTemplate\\ImportCheckJarManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\dataTemplate\\ImportCheckJarManager.vue","mtime":1675071992163},{"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 _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nvar _methods;\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState, mapActions } from \"vuex\";\nexport default {\n data: function data() {\n return {\n dialogVisible: false,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n importCheckJar: {},\n outerVisible: false,\n files: [],\n curSelect: \"\"\n };\n },\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n actionUrl: function actionUrl() {\n return window.context.portal + \"/file/v1/upload\";\n }\n }),\n mounted: function mounted() {\n this.$validator = this.$root.$validator;\n },\n methods: (_methods = {\n beforeUpload: function beforeUpload(file) {\n var _this = this;\n\n if (this.files && this.files.length > 0) {\n if (this.files.length == 1) {\n return new Promise(function (resolve, reject) {\n _this.$confirm(\"已有Jar包, 是否确认覆盖?\", \"提示\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(function () {\n resolve();\n }).catch(function () {\n reject();\n });\n });\n } else {\n this.$message.waring(\"最多只能上传一个模板\");\n return false;\n }\n } else {\n return true;\n }\n },\n handleRemove: function handleRemove(file, fileList) {\n if (fileList && fileList.length == 1) {\n return;\n }\n\n var this_ = this;\n setTimeout(function () {\n this_.importCheckJar.filePath = \"\";\n }, 50);\n },\n success: function success(response, file, fileList) {\n this.files = [];\n\n for (var i = 0; i < fileList.length; i++) {\n if (fileList[i].response) {\n var value = fileList[i].response;\n var arrarFile = {};\n arrarFile.id = value.fileId;\n arrarFile.name = value.fileName;\n arrarFile.size = value.size;\n this.files.push(arrarFile);\n }\n }\n\n this.importCheckJar.filePath = JSON.stringify(this.files);\n },\n show: function show() {\n this.outerVisible = true;\n this.curSelect = {};\n },\n showDialog: function showDialog(id, e) {\n var _this2 = this;\n\n if (id) {\n if (e && e.preventDefault) {\n e.preventDefault(); //非IE浏览器\n } else {\n window.event.returnValue = false;\n } //IE浏览器\n\n\n this.$http.get(\"${form}/form/formImportCheckJar/v1/getJson?id=\" + \"\".concat(id)).then(function (resp) {\n _this2.importCheckJar = resp.data;\n\n if (_this2.importCheckJar.filePath) {\n _this2.files = JSON.parse(_this2.importCheckJar.filePath);\n }\n\n _this2.dialogVisible = true;\n }, function (error) {});\n } else {\n this.files = [];\n this.dialogVisible = true;\n }\n },\n beforeCloseDialog: function beforeCloseDialog() {\n this.importCheckJar = {};\n this.dialogVisible = false;\n },\n loadData: function loadData(param, cb) {\n var _this3 = this;\n\n this.curSelect = \"\";\n this.$http.post(\"${form}/form/formImportCheckJar/v1/listJson\", param).then(function (resp) {\n var response = resp.data;\n _this3.data = response.rows;\n _this3.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {}).finally(function () {\n return cb();\n });\n },\n afterSaveData: function afterSaveData() {\n var _this4 = this;\n\n setTimeout(function () {\n _this4.beforeCloseDialog();\n\n _this4.$refs.htTable.load();\n }, 500);\n },\n saveData: function saveData() {\n var _this5 = this;\n\n if (!this.importCheckJar.desc) {\n this.$message.warning(\"请填写描述\");\n return false;\n }\n\n if (!this.importCheckJar.classPath) {\n this.$message.warning(\"请填写校验类路径\");\n return false;\n }\n\n if (!this.importCheckJar.filePath) {\n this.$message.warning(\"请上传Jar包\");\n return false;\n }\n\n this.$http.post(\"${form}/form/formImportCheckJar/v1/save\", this.importCheckJar).then(function (resp) {\n var data = resp.data;\n\n if (data.state) {\n _this5.$message.success(\"保存成功\");\n\n _this5.$refs.htTable.load();\n\n _this5.dialogVisible = false;\n }\n }, function (error) {});\n }\n }, _defineProperty(_methods, \"afterSaveData\", function afterSaveData() {\n var _this6 = this;\n\n setTimeout(function () {\n _this6.beforeCloseDialog();\n\n _this6.$refs.htTable.load();\n }, 500);\n }), _defineProperty(_methods, \"removeJar\", function removeJar(id) {\n var this_ = this;\n this.$confirm(\"确定删除Jar包配置吗?\").then(function () {\n this_.$http.remove(\"${form}/form/formImportCheckJar/v1/remove?ids=\" + id).then(function (resp) {\n if (resp.data && resp.data.state) {\n this_.$message.success(\"删除成功\");\n this_.$refs.htTable.load();\n }\n }, function (error) {});\n }).catch(function () {});\n }), _defineProperty(_methods, \"rowClick\", function rowClick(row, column, event) {\n this.curSelect = row;\n }), _defineProperty(_methods, \"confirm\", function confirm() {\n if (!this.curSelect) {\n this.$message.warning(\"请选择Jar包\");\n return;\n }\n\n this.$emit(\"on-confirm\", this.curSelect);\n this.outerVisible = false;\n }), _methods)\n};",null]}