{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cssc-fvue\\src\\views\\IntelligentControl\\IntelligentDecision.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\views\\IntelligentControl\\IntelligentDecision.vue","mtime":1667804639665},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: 'intelligent-control',\n data: function data() {\n return {\n form: {\n searchDate: [],\n demandSysName: '',\n fanCode: '',\n orderName: '',\n status: ''\n },\n tableData: [],\n fanCodeList: [],\n //获取机编号\n orderNameList: [],\n //获取命令\n currentPage: 1,\n total: 0,\n pageSize: 50,\n fanCode: '',\n orderName: '',\n multipleSelection: []\n };\n },\n created: function created() {\n this.loadData();\n this.loadFanCode();\n this.loadOrder();\n },\n methods: {\n // 测试操作\n handleClick: function handleClick(row) {\n var _this = this;\n\n var query = {\n url: '${cssc}/biz/model/order/v1/executeOrderById',\n method: 'POST',\n headers: {\n 'Content-type': 'application/x-www-form-urlencoded'\n },\n data: this.qs.stringify({\n id: row.id\n })\n };\n this.$http.request(query).then(function (res) {\n if (res.success) {\n _this.$message.success('已下发');\n } else {\n _this.$message.warning(res.message);\n }\n });\n },\n //初始查询命令\n loadOrder: function loadOrder() {\n var _this2 = this;\n\n this.$http.post('${cssc}/biz/model/orderInfo/v1/list').then(function (res) {\n var row = res.data;\n\n for (var i = 0; i < row.length; i++) {\n var obj = {};\n obj.label = row[i].orderName;\n obj.value = row[i].orderCode;\n\n _this2.orderNameList.push(obj);\n }\n });\n },\n //初始查询机组编号\n loadFanCode: function loadFanCode() {\n var _this3 = this;\n\n var query = {\n sorter: [{\n direction: 'ASC',\n property: 'sn'\n }]\n };\n this.$http.post('${cssc}/biz/base/fanInfo/v1/list', query).then(function (res) {\n var row = res.data;\n\n for (var i = 0; i < row.length; i++) {\n var obj = {};\n obj.label = row[i].fanName;\n obj.value = row[i].fanCode;\n\n _this3.fanCodeList.push(obj);\n }\n }, function (error) {\n reject(error);\n });\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n handleDelete: function handleDelete() {\n var _this4 = this;\n\n if (!this.multipleSelection.length) {\n this.$message.warning('请选择要删除的数据!');\n return;\n }\n\n var queryStr = '';\n var ids = this.multipleSelection.map(function (item) {\n queryStr += '&ids=' + item.id;\n return ids;\n });\n queryStr = queryStr.slice(1);\n var query = {\n url: '${cssc}/biz/model/order/v1/?' + queryStr,\n method: 'delete'\n };\n this.$http.request(query).then(function (res) {\n if (res.data && res.data.state) {\n _this4.$message.success('删除成功');\n\n _this4.loadData();\n } else {\n _this4.$message.warning(res.data.state);\n }\n });\n },\n handleRefresh: function handleRefresh() {\n this.form = {\n searchDate: [],\n demandSysName: '',\n fanCode: '',\n orderName: '',\n status: ''\n };\n this.fanCode = '';\n this.orderName = ''; // 请求列表数据\n\n this.loadData();\n },\n loadData: function loadData(val) {\n var _this5 = this;\n\n var param = {\n pageBean: {\n page: this.currentPage,\n pageSize: this.pageSize,\n total: 0\n },\n querys: [],\n sorter: [{\n \"direction\": \"DESC\",\n \"property\": \"demandTime\"\n }]\n };\n var searchQuerys = [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'demandTime',\n relation: 'AND',\n value: this.form.searchDate ? this.form.searchDate : []\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'demandSysName',\n relation: 'AND',\n value: this.form.demandSysName\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'fanCode',\n relation: 'AND',\n value: this.fanCode\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'orderCode',\n relation: 'AND',\n value: this.orderName\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'decisionState',\n relation: 'AND',\n value: this.form.status\n }];\n var newQuerys = [];\n searchQuerys.forEach(function (val, index) {\n if (val['value'] != '') {\n newQuerys.push(searchQuerys[index]);\n } else if (val['value'] === 0 || val['value'] === 1) {\n newQuerys.push(searchQuerys[index]);\n }\n });\n param.querys = newQuerys;\n this.$http.post('${cssc}/biz/model/order/v1/query', param).then(function (res) {\n var resp = res.data; // console.log(resp)\n\n _this5.tableData = resp.rows;\n _this5.currentPage = resp.page;\n _this5.pageSize = resp.pageSize;\n _this5.total = resp.total;\n });\n },\n //每页显示多少条数目\n handleSizeChange: function handleSizeChange(val) {\n this.pageSize = val;\n this.loadData();\n },\n //点击跳到几页\n handleCurrentChange: function handleCurrentChange(val) {\n this.currentPage = val;\n this.loadData();\n }\n }\n};",null]}