{"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\\modules\\ModelHistory.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\views\\IntelligentControl\\modules\\ModelHistory.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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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: 'point-dialog',\n data: function data() {\n return {\n dateTime: [],\n title: '',\n data: [],\n currentPage: 1,\n //当前页\n pageSize: 50,\n //每页多少条\n total: 0,\n //总条数\n filters: [{\n text: '布尔',\n value: 'B'\n }, {\n text: '浮点',\n value: 'F'\n }, {\n text: '整型',\n value: 'I'\n }],\n pointDialogVisible: false,\n currentSys: {},\n fanCode: '',\n //机组编号\n modelId: '',\n //模型ID\n modelResult: [] //执行结果\n // message: ''\n\n };\n },\n methods: {\n open: function open(model) {\n this.title = model.fanCode + '-' + model.modelName;\n this.modelId = model.modelId;\n this.fanCode = model.fanCode;\n this.pointDialogVisible = true;\n this.loadData();\n },\n renderHeader: function renderHeader(h, _ref) {\n var column = _ref.column;\n\n // console.log(column)\n if (column.label.length && column.label.length < 4) {\n column.minWidth = 50;\n } else {\n column.minWidth = column.label.length * 16;\n }\n\n return h('div', {\n class: 'table-header'\n }, [column.label]);\n },\n beforeClosePointDialog: function beforeClosePointDialog() {\n this.pointDialogVisible = false;\n this.dateTime = [];\n this.data = [];\n this.modelResult = [];\n this.currentPage = 1;\n this.pageSize = 50;\n this.total = 0;\n },\n loadData: function loadData() {\n var _this = this;\n\n var param = {\n pageBean: {\n page: this.currentPage,\n pageSize: this.pageSize,\n total: this.total\n },\n sorter: [{\n direction: 'DESC',\n property: 'create_time_'\n }]\n };\n var idQuerys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'fan_code_',\n relation: 'AND',\n value: this.fanCode\n }];\n var dateQuerys = [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'scheduler_time_',\n relation: 'AND',\n value: this.dateTime\n }];\n\n if (param.querys && param.querys.length) {\n var _param$querys;\n\n (_param$querys = param.querys).push.apply(_param$querys, idQuerys);\n } else {\n param.querys = idQuerys;\n }\n\n if (this.dateTime && this.dateTime.length) {\n var _param$querys2;\n\n (_param$querys2 = param.querys).push.apply(_param$querys2, dateQuerys);\n }\n\n this.$http.post('${cssc}/biz/model/modelInfo/v1/modelResult/sliceQueryModelResult?modelId=' + this.modelId, param).then(function (res) {\n // console.log(res)\n var resp = res.data;\n var rows = resp.rows;\n _this.data = rows;\n _this.currentPage = resp.page;\n _this.pageSize = resp.pageSize;\n _this.total = resp.total;\n }, function (error) {\n reject(error);\n });\n var param2 = {\n pageBean: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'modelId',\n relation: 'AND',\n value: this.modelId\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'paramType',\n relation: 'AND',\n value: 'result'\n }],\n sorter: [{\n direction: 'ASC',\n property: 'sn'\n }]\n };\n this.$http.post('${cssc}/biz/model/modelInfo/v1/modelParams/queryParamByModel', param2).then(function (res) {\n // console.log(res.data)\n _this.modelResult = res.data;\n }, function (err) {\n reject(err);\n });\n },\n handleSizeChange: function handleSizeChange(val) {\n this.pageSize = val;\n this.loadData();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.currentPage = val;\n this.loadData();\n }\n }\n};",null]}