{"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\\resourceAudit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\resourceApply\\resourceAudit.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\nimport applyForm from \"./components/applyForm.vue\";\nimport applyRecord from \"./components/applyRecord.vue\";\nimport api from \"./js/api.js\";\nexport default {\n name: 'resourceApply',\n components: {\n applyForm: applyForm,\n applyRecord: applyRecord\n },\n data: function data() {\n return {\n searchForm: {\n status: 10\n },\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 status: 10\n };\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 api.queryApplyApproval(data).then(function (res) {\n _this.tabelData = res.rows;\n _this.pageResult = {\n page: res.page,\n pageSize: res.pageSize,\n total: res.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('audit', 'edit', row);\n });\n },\n handleAdd: function handleAdd() {\n var _this3 = this;\n this.$nextTick(function () {\n _this3.$refs.applyForm.handleOpen('audit', 'add');\n });\n },\n handleReload: function handleReload() {\n this.loadData();\n },\n handleCommand: function handleCommand(params) {\n if (params.command == 'handleAudit') {\n this.handleEdit(params.row);\n } else if (params.command == 'processRecord') {\n this.$refs.applyRecord.handleOpen(params.row);\n }\n }\n }\n};",null]}