| | |
| | | realtime: false, |
| | | left: '0', |
| | | right: '8px', |
| | | fillerColor: 'rgba(167,183,204,0.1)', |
| | | dataBackground: { |
| | | lineStyle: { |
| | | color: '#15E3F3' |
| | |
| | | if(isSetOption(config.title, pattern, match_type)) { |
| | | self.$set(self.options, config.id, { |
| | | num: value, |
| | | type: config.type, |
| | | title: config.title, |
| | | unit: config.unit, |
| | | height: "100%", |
| | |
| | | smooth: true, |
| | | symbolSize: 0, |
| | | sampling: 'average', |
| | | step: config.type == 1?'':'end', |
| | | data: [] |
| | | }] |
| | | } |
| | |
| | | smooth: true, |
| | | symbolSize: 0, |
| | | sampling: 'average', |
| | | step: option.type==1?'':'end', |
| | | data: [] |
| | | }]; |
| | | } |
| | |
| | | let tmp= { |
| | | id: 'chart'+index, |
| | | title: values[0], |
| | | type: values[1] == undefined?values[1]:0, |
| | | type: values[1] != undefined?values[1]:1, |
| | | unit: values[2]?values[2]:'', |
| | | }; |
| | | result.push(tmp); |
| | |
| | | }, |
| | | changeOptions: function() { |
| | | let self = this; |
| | | let configs = this.$store.state.batt.configs; |
| | | let pattern = this.$store.state.batt.pattern; |
| | | let match_type = this.$store.state.batt.match_type; |
| | | let batt = this.$store.state.batt; |
| | | let configs = batt.configs; |
| | | let pattern = batt.pattern; |
| | | let match_type = batt.match_type; |
| | | // 清空配置项 |
| | | this.clearOptions(); |
| | | this.$nextTick(function() { |
| | |
| | | if(isSetOption(config.title, pattern, match_type)) { |
| | | self.$set(self.options, config.id, { |
| | | num: value, |
| | | type: config.type, |
| | | title: config.title, |
| | | unit: config.unit, |
| | | height: '100%', |
| | |
| | | type: 'line', |
| | | smooth: true, |
| | | symbolSize: 0, |
| | | step: config.type==1?'':'end', |
| | | sampling: 'average', |
| | | data: [] |
| | | }] |
| | |
| | | smooth: true, |
| | | symbolSize: 0, |
| | | sampling: 'average', |
| | | step: option.type==1?'': 'end', |
| | | data: [] |
| | | }]; |
| | | } |
| | |
| | | <div class="pages-file"> |
| | | <flex-layout> |
| | | <div class="btn_grp" slot="header"> |
| | | <el-button type="primary" size="small" |
| | | icon="el-icon-plus" @click="downloadMult">下载</el-button> |
| | | <!-- <el-button type="primary" size="small" |
| | | icon="el-icon-plus" @click="downloadMult">下载</el-button> --> |
| | | </div> |
| | | <el-table |
| | | class="el-green" |
| | |
| | | border |
| | | @selection-change="selectChange" |
| | | size="mini"> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | align="center" |
| | | type="selection" |
| | | width="55"> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | type="index" |
| | | label="编号" |