|
@@ -5,7 +5,7 @@
|
|
|
<div class="query-item" style="width: 200px;">
|
|
|
<div class="lable">场站:</div>
|
|
|
<div class="search-input">
|
|
|
- <el-select v-model="station" placeholder="请选择" popper-class="select">
|
|
|
+ <el-select v-model="station" placeholder="请选择" popper-class="select" @change="stationChange">
|
|
|
<el-option v-for="item in ChangZhan" :key="item.id" :value="item.id" :label="item.name"> </el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
@@ -208,6 +208,21 @@
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ stationChange(){
|
|
|
+ let fjxh = [];
|
|
|
+ this.fjxhArr.forEach(ele => {
|
|
|
+ if (ele.id == this.station) {
|
|
|
+ ele.value.forEach(ele2 => {
|
|
|
+ fjxh.push({
|
|
|
+ label: ele2,
|
|
|
+ value: ele2
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.model = ele.value;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.fjxh = fjxh;
|
|
|
+ },
|
|
|
checkAll() {
|
|
|
this.selectAll = !this.selectAll
|
|
|
if (this.selectAll) {
|
|
@@ -232,15 +247,6 @@
|
|
|
that.time = [new Date((new Date() - 3600 * 1000 * 24 * 360)).formatDate("yyyy-MM-dd hh:mm:ss"), new Date()
|
|
|
.formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
];
|
|
|
- await that.API.requestData({
|
|
|
- method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001/",
|
|
|
- subUrl: "benchmarking/wplist",
|
|
|
- success(res) {
|
|
|
- that.ChangZhan = res.data;
|
|
|
- that.station = res.data[1].name
|
|
|
- },
|
|
|
- });
|
|
|
|
|
|
await that.API.requestData({
|
|
|
method: "GET",
|
|
@@ -266,6 +272,8 @@
|
|
|
baseURL: "http://192.168.1.18:9002/",
|
|
|
subUrl: "basic/station/all",
|
|
|
success(res) {
|
|
|
+ that.ChangZhan = res.data;
|
|
|
+ that.station = res.data[1].name
|
|
|
let fjxhArr = [];
|
|
|
let model = [],
|
|
|
fjxh = [];
|
|
@@ -274,13 +282,11 @@
|
|
|
id: ele.id,
|
|
|
value: ele.model.split("/")
|
|
|
})
|
|
|
- if (ele.id == "MHS_FDC") {
|
|
|
- model = ele.model.split("/");
|
|
|
- model.forEach(ele => {
|
|
|
- fjxh.push({
|
|
|
- label: ele,
|
|
|
- value: ele
|
|
|
- })
|
|
|
+ if (ele.id == "NSS_FDC") {
|
|
|
+ model = ["UP82"];
|
|
|
+ fjxh.push({
|
|
|
+ label: "UP82",
|
|
|
+ value: "UP82"
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -373,10 +379,12 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
+ that.tableData.data = [];
|
|
|
+ that.tableData2.data = [];
|
|
|
that.API.requestData({
|
|
|
showLoading: true,
|
|
|
method: "GET",
|
|
|
- baseURL: "http://192.168.1.18:9002/",
|
|
|
+ baseURL: "http://192.168.10.4:9002/",
|
|
|
subUrl: "case/fault/list",
|
|
|
data: {
|
|
|
widget: widget ? widget : that.widget,
|
|
@@ -390,7 +398,6 @@
|
|
|
if (res.data.length) {
|
|
|
let data = res.data;
|
|
|
if(that.mx == 'list'){
|
|
|
- that.tableData.data = [];
|
|
|
let k = 0;
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
if(data[i].endtime != undefined){
|
|
@@ -454,21 +461,6 @@
|
|
|
this.startAjax();
|
|
|
},
|
|
|
watch: {
|
|
|
- station(res) {
|
|
|
- let fjxh = [];
|
|
|
- this.fjxhArr.forEach(ele => {
|
|
|
- if (ele.id == res) {
|
|
|
- ele.value.forEach(ele2 => {
|
|
|
- fjxh.push({
|
|
|
- label: ele2,
|
|
|
- value: ele2
|
|
|
- })
|
|
|
- })
|
|
|
- this.model = ele.value;
|
|
|
- }
|
|
|
- })
|
|
|
- this.fjxh = fjxh;
|
|
|
- },
|
|
|
mx(){
|
|
|
this.list();
|
|
|
}
|