{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\chart\\EipChartSetting.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\chart\\EipChartSetting.vue","mtime":1675071992038},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.array.sort\";\nimport _toConsumableArray from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.number.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 form from \"@/api/form.js\";\nimport utils from \"@/hotent-ui-util.js\";\nexport default {\n props: {\n param: Object,\n yAxis: Array,\n xAxis: Array,\n sort: Array,\n condition: Array,\n chartStyle: Number\n },\n data: function data() {\n return {\n dialogVisible: false,\n table: [],\n selections: [],\n xAxisField: [],\n yAxisField: [],\n conditionField: [],\n sortField: [],\n loading: false,\n activeName: \"yAxis\",\n numberOptionList: [{\n key: 'EQ',\n value: '等于'\n }, {\n key: \"GE\",\n value: '大于等于'\n }, {\n key: \"LE\",\n value: '小于等于'\n }],\n stringOptionList: [{\n key: \"LK\",\n value: \"like\"\n }, {\n key: \"EQ\",\n value: \"等于\"\n }, {\n key: \"IN\",\n value: \"in\"\n }],\n dateOptionList: [{\n key: 'EQ',\n value: '等于'\n }, {\n key: \"BETWEEN\",\n value: 'between'\n }, {\n key: \"GE\",\n value: '大于等于'\n }, {\n key: \"LE\",\n value: '小于等于'\n }],\n valueSourceList: [{\n key: \"2\",\n value: '固定值'\n }, {\n key: \"1\",\n value: '动态传入'\n }],\n sortOptionList: [{\n key: \"asc\",\n value: \"升序\"\n }, {\n key: \"desc\",\n value: \"降序\"\n }]\n };\n },\n methods: {\n initData: function () {\n var _initData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var result;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return form.getTable(this.param);\n\n case 2:\n result = _context.sent;\n this.yAxisField = _toConsumableArray(this.yAxis);\n this.xAxisField = _toConsumableArray(this.xAxis);\n this.conditionField = _toConsumableArray(this.condition);\n this.sortField = _toConsumableArray(this.sort);\n this.table = result.table.columnList;\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function initData() {\n return _initData.apply(this, arguments);\n }\n\n return initData;\n }(),\n handleSelectionChange: function handleSelectionChange(val) {\n this.selections = val;\n },\n addToField: function addToField() {\n if (this.activeName === \"yAxis\") {\n this.addToYAxisField();\n } else if (this.activeName === \"xAxis\") {\n this.addToXAxisField();\n } else if (this.activeName === \"condition\") {\n this.addToConditionField();\n } else if (this.activeName === \"sort\") {\n this.addToSortField();\n }\n },\n addToYAxisField: function addToYAxisField() {\n for (var i = 0; i < this.selections.length; i++) {\n var item = {\n comment: this.selections[i].comment,\n dbType: this.selections[i].columnType,\n field: this.selections[i].fieldName,\n nameKey: \"0\"\n };\n\n if (this.chartStyle === 1) {\n item.type = \"line\";\n item.yAxis = 1;\n }\n\n this.yAxisField.push(item);\n }\n\n this.yAxisField = this.yAxisField.unique(\"field\");\n },\n addToXAxisField: function addToXAxisField() {\n var item = [{\n comment: this.selections[0].comment,\n dbType: this.selections[0].columnType,\n field: this.selections[0].fieldName,\n nameKey: \"0\"\n }];\n this.xAxisField = [].concat(item);\n },\n addToConditionField: function addToConditionField() {\n for (var i = 0; i < this.selections.length; i++) {\n var item = {\n comment: this.selections[i].comment,\n dbType: this.selections[i].columnType,\n field: this.selections[i].fieldName,\n condition: \"LK\",\n defaultType: \"1\",\n defaultValue: \"\"\n };\n this.conditionField.push(item);\n }\n\n this.conditionField = this.conditionField.unique(\"field\");\n },\n addToSortField: function addToSortField() {\n for (var i = 0; i < this.selections.length; i++) {\n var item = {\n field: this.selections[i].fieldName,\n sortType: \"asc\"\n };\n this.sortField.push(item);\n }\n\n this.sortField = this.sortField.unique(\"field\");\n },\n deleteRow: function deleteRow(index, rows) {\n rows.splice(index, 1);\n },\n save: function save() {\n this.$emit(\"save\", {\n yAxisField: this.yAxisField,\n xAxisField: this.xAxisField,\n conditionField: this.conditionField,\n sortField: this.sortField\n });\n this.dialogVisible = false;\n },\n beforeClose: function beforeClose() {\n this.dialogVisible = false;\n },\n handleOpen: function handleOpen() {\n var _this = this;\n\n this.dialogVisible = true;\n this.loading = true;\n this.$nextTick(function () {\n _this.initData();\n });\n this.loading = false;\n }\n }\n};",null]}