{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\resourceApply\\resourceApply.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\resourceApply\\resourceApply.vue","mtime":1723832016853},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 applyForm from \"./components/applyForm.vue\";\nimport applyApproval from \"./components/applyApproval.vue\";\nimport applyRecord from \"./components/applyRecord.vue\";\nimport api from \"./js/api.js\";\nexport default {\n name: 'resourceApply',\n components: {\n applyForm: applyForm,\n applyApproval: applyApproval,\n applyRecord: applyRecord\n },\n data: function data() {\n return {\n searchForm: {},\n tabelData: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n };\n },\n methods: {\n handleSearch: function handleSearch() {\n this.pageResult.page = 1;\n this.loadData();\n },\n handleReset: function handleReset() {\n this.searchForm = {};\n this.pageResult.page = 1;\n this.loadData();\n },\n loadData: function loadData(params, cb) {\n var _this = this;\n var data = {\n pageBean: this.pageResult,\n querys: this.formatQuery()\n };\n this.$http.post('${form}/bizCloudApply/v1/query', data).then(function (res) {\n _this.tabelData = res.data.rows;\n _this.pageResult = {\n page: res.data.page,\n pageSize: res.data.pageSize,\n total: res.data.total\n };\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n formatQuery: function formatQuery() {\n var querys = [];\n for (var key in this.searchForm) {\n if (this.searchForm[key] !== null) {\n var operation = void 0,\n property = key;\n switch (key) {\n case 'applyAppName':\n operation = 'LIKE';\n break;\n case 'startTime':\n operation = 'GREAT_EQUAL';\n property = 'applyDate';\n break;\n case 'endTime':\n operation = 'LESS_EQUAL';\n property = 'applyDate';\n break;\n default:\n operation = 'EQUAL';\n break;\n }\n querys.push({\n group: 'main',\n operation: operation,\n parentGroup: '',\n property: property,\n relation: 'AND',\n value: this.searchForm[key]\n });\n }\n }\n return querys;\n },\n handleEdit: function handleEdit(row) {\n var _this2 = this;\n this.$nextTick(function () {\n _this2.$refs.applyForm.handleOpen('apply', 'edit', row);\n });\n },\n handleAdd: function handleAdd() {\n var _this3 = this;\n this.$nextTick(function () {\n _this3.$refs.applyForm.handleOpen('apply', 'add');\n });\n },\n handleReload: function handleReload() {\n this.loadData();\n },\n handleCommand: function handleCommand(params) {\n var _this4 = this;\n if (params.command == 'handleDetails') {\n this.handleEdit(params.row);\n } else if (params.command == 'handleDelete') {\n this.$confirm('确定删除吗?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this4.$http.remove('${form}/bizCloudApply/v1/?ids=' + params.row.id).then(function (res) {\n _this4.$refs.htTable.load();\n if (res.state) {\n _this4.$message({\n message: '删除成功',\n type: 'success'\n });\n } else {\n _this4.$message({\n message: res.message,\n type: 'warning'\n });\n }\n }).finally(function () {\n _this4.loadData();\n });\n });\n } else if (params.command == 'processRecord') {\n this.$refs.applyRecord.handleOpen(params.row);\n } else if (params.command == 'startFlow') {\n this.$nextTick(function () {\n _this4.$refs.applyApproval.handleOpen('start', params.row.id);\n });\n } else if (params.command == 'export') {\n api.downloadApply(params.row.id).then(function (res) {\n _this4.$message.success('导出成功');\n }).catch(function (err) {\n _this4.$message.warning(err);\n });\n }\n }\n }\n};",null]}