1 line
5.1 KiB
JSON
1 line
5.1 KiB
JSON
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\history\\taskTreeRecord\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\history\\taskTreeRecord\\index.vue","mtime":1732871026609},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"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\r\nimport Search from '@/views/lucene/time'\r\nimport crudTask from '@/api/acs/task/task'\r\nimport crudInstruction from '@/api/acs/instruction/instruction'\r\nimport CRUD, { presenter, header, form, crud } from '@crud/crud'\r\nimport crudOperation from '@crud/CRUD.operation'\r\nimport pagination from '@crud/Pagination'\r\nimport deviceCrud from '@/api/acs/device/device'\r\nimport routeCurd from '@/api/acs/route/routePlan'\r\nimport { getDicts } from '@/views/system/dict/dict'\r\nimport { download } from '@/api/data'\r\nimport { downloadFile } from '@/utils'\r\n\r\nconst defaultForm = {\r\n task_id: null,\r\n vehicle_code: null,\r\n vehicle_type: null,\r\n task_type: null,\r\n task_status: null,\r\n priority: 0,\r\n start_point_code: null,\r\n start_device_code: null,\r\n next_point_code: null,\r\n remark: null }\r\nexport default {\r\n name: 'Task',\r\n components: { pagination, crudOperation, Search },\r\n dicts: ['task_status', 'task_type'],\r\n mixins: [presenter(), header(), form(defaultForm), crud()],\r\n cruds() {\r\n return [\r\n CRUD({ title: '任务', url: 'api/task/getAll', idField: 'task_id', sort: 'task_id,desc', crudMethod: { ...crudTask }, optShow: {\r\n // ...\r\n }})/* ,\r\n CRUD({ title: '设备协议', url: 'api/device/protocol', idField: 'id', sort: 'id,desc', optShow: { download: false }}) */\r\n ]\r\n },\r\n data() {\r\n return {\r\n downLoadTaskTreeLogging: false,\r\n deviceList: [],\r\n materialList: [],\r\n statusList: [],\r\n routeList: [],\r\n fromYList: [],\r\n fromZList: [],\r\n toYList: [],\r\n toZList: [],\r\n start_flag: false,\r\n end_flag: false,\r\n permission: {\r\n add: ['admin', 'task:add'],\r\n edit: ['admin', 'task:edit'],\r\n del: ['admin', 'task:del']\r\n },\r\n rules: {\r\n }\r\n }\r\n },\r\n created() {\r\n deviceCrud.selectDeviceList().then(data => {\r\n this.deviceList = data\r\n })\r\n routeCurd.selectList().then(data => {\r\n this.routeList = data\r\n })\r\n getDicts().then(data => {\r\n this.dicts = data\r\n })\r\n this.query.a = 111\r\n },\r\n methods: {\r\n // 钩子:在获取表格数据之前执行,false 则代表不获取数据\r\n [CRUD.HOOK.beforeRefresh]() {\r\n return true\r\n },\r\n beforeHandleCommand(index, row, command) {\r\n return {\r\n 'index': index,\r\n 'row': row,\r\n 'command': command\r\n }\r\n },\r\n load(tree, treeNode, resolve) {\r\n setTimeout(() => {\r\n crudInstruction.queryByTaskId(tree.task_id).then(res => {\r\n console.log(res.content)\r\n resolve(res.content)\r\n })\r\n }, 100)\r\n },\r\n doExportTaskTreeLogging() {\r\n this.downLoadTaskTreeLogging = true\r\n const params = {\r\n task_code: this.query.task_code,\r\n vehicle_code: this.query.vehicle_code,\r\n material_type: this.query.material_type,\r\n status: this.query.is_over,\r\n point_code: this.crud.pointCode,\r\n createTime: this.crud.createTime,\r\n end_time: this.crud.endTime // 假设 this.crud.endTime 是你的结束时间\r\n }\r\n const url = 'api/task/downloadTaskTreeLogging'\r\n download(url, params).then(result => {\r\n downloadFile(result, this.crud.title + '数据', 'csv')\r\n this.downLoadTaskTreeLogging = false\r\n }).catch(() => {\r\n this.downLoadTaskTreeLogging = false\r\n })\r\n }\r\n }\r\n}\r\n",null]} |