|
@@ -5,7 +5,7 @@
|
|
|
<div class="query-item">
|
|
|
<div class="lable">场站:</div>
|
|
|
<div class="search-input">
|
|
|
- <el-select v-model="value1" @change="ChangZhanChange(value1)" clearable placeholder="请选择"
|
|
|
+ <el-select v-model="value1" @change="ChangZhanChange(value1)" multiple placeholder="请选择"
|
|
|
popper-class="select">
|
|
|
<el-option v-for="item in ChangZhan" :key="item.id" :value="item.id" :label="item.name">
|
|
|
</el-option>
|
|
@@ -120,6 +120,7 @@
|
|
|
data() {
|
|
|
let that = this;
|
|
|
return {
|
|
|
+ oneData:[],
|
|
|
tableIdArr: [], //放checkbox的id数组
|
|
|
tableId: [],
|
|
|
checkLength: 0, //对标分析只能选择2个
|
|
@@ -587,9 +588,17 @@
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ var that = this;
|
|
|
this.ChangZhanVal();
|
|
|
this.value4 = this.getTime(1);
|
|
|
this.value5 = this.getTime(2);
|
|
|
+ that.API.requestData({
|
|
|
+ method: "GET",
|
|
|
+ subUrl: "benchmarking/wplist",
|
|
|
+ success(res) {
|
|
|
+ that.value1.push(res.data[0].id)
|
|
|
+ }
|
|
|
+ });
|
|
|
this.AjaxCommon();
|
|
|
},
|
|
|
methods: {
|
|
@@ -599,11 +608,13 @@
|
|
|
method: "GET",
|
|
|
subUrl: "benchmarking/wplist",
|
|
|
success(res) {
|
|
|
+ that.oneData = res.data[0].id
|
|
|
that.ChangZhan = res.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
ChangZhanChange(val) {
|
|
|
+ console.log(val)
|
|
|
this.value1 = val;
|
|
|
this.value2 = [];
|
|
|
this.value3 = [];
|
|
@@ -676,6 +687,7 @@
|
|
|
},
|
|
|
AjaxCommon() {
|
|
|
var that = this;
|
|
|
+ console.log(that.value1)
|
|
|
that.API.requestData({ //五项损失率
|
|
|
method: "GET",
|
|
|
subUrl: "benchmarking/xldb",
|