pull/140/head
parent
986a261270
commit
de7602f17c
|
@ -306,16 +306,14 @@ export default {
|
||||||
that.getActive1();
|
that.getActive1();
|
||||||
}, 0);
|
}, 0);
|
||||||
},
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -565,6 +563,12 @@ export default {
|
||||||
this.changeBtn(21400, dataNum);
|
this.changeBtn(21400, dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -319,14 +319,14 @@ export default {
|
||||||
loading:null,
|
loading:null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -489,6 +489,12 @@ export default {
|
||||||
this.changeBtn(code, dataNum);
|
this.changeBtn(code, dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -154,16 +154,14 @@ export default {
|
||||||
that.getActive1();
|
that.getActive1();
|
||||||
}, 0);
|
}, 0);
|
||||||
},
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -280,6 +278,12 @@ export default {
|
||||||
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -92,17 +92,15 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.getActive1();
|
that.getActive1();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -219,6 +217,12 @@ export default {
|
||||||
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -186,26 +186,19 @@ export default {
|
||||||
$route(newVal, oldVal) {
|
$route(newVal, oldVal) {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -296,6 +289,12 @@ export default {
|
||||||
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -38,13 +38,14 @@
|
||||||
loading:null,
|
loading:null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
@ -73,6 +74,12 @@
|
||||||
return list
|
return list
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -172,17 +172,15 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.getActive1();
|
that.getActive1();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -299,6 +297,12 @@ export default {
|
||||||
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -119,18 +119,16 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.getActive1();
|
that.getActive1();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
//input获取焦点后全选
|
//input获取焦点后全选
|
||||||
|
@ -246,6 +244,12 @@ export default {
|
||||||
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -566,14 +566,15 @@ export default {
|
||||||
inputDataNew:[],
|
inputDataNew:[],
|
||||||
loading:null,
|
loading:null,
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
//input获取焦点后全选
|
//input获取焦点后全选
|
||||||
let inputList = document.querySelectorAll('input');
|
let inputList = document.querySelectorAll('input');
|
||||||
|
@ -655,6 +656,12 @@ modelConfirm(){
|
||||||
return name
|
return name
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -142,17 +142,15 @@ export default {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.getActive1();
|
that.getActive1();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -269,6 +267,12 @@ export default {
|
||||||
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
this.changeBtn(this.startList[this.indexs - 1], dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -686,13 +686,14 @@ export default {
|
||||||
loading:null,
|
loading:null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
//input获取焦点后全选
|
//input获取焦点后全选
|
||||||
let inputList = document.querySelectorAll('input');
|
let inputList = document.querySelectorAll('input');
|
||||||
|
@ -739,6 +740,12 @@ export default {
|
||||||
return name
|
return name
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -214,16 +214,14 @@ export default {
|
||||||
that.getActive1();
|
that.getActive1();
|
||||||
}, 0);
|
}, 0);
|
||||||
},
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -341,6 +339,12 @@ export default {
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,13 +53,13 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -81,6 +81,12 @@ export default {
|
||||||
return list
|
return list
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -97,14 +97,15 @@ export default {
|
||||||
inputData: [],
|
inputData: [],
|
||||||
loading:null,
|
loading:null,
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
//input获取焦点后全选
|
//input获取焦点后全选
|
||||||
let inputList = document.querySelectorAll('input');
|
let inputList = document.querySelectorAll('input');
|
||||||
|
@ -132,6 +133,12 @@ export default {
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
|
@ -193,13 +193,13 @@ export default {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
|
},
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
this.dataInit()
|
this.dataInit()
|
||||||
//input获取焦点后全选
|
//input获取焦点后全选
|
||||||
let inputList = document.querySelectorAll('input');
|
let inputList = document.querySelectorAll('input');
|
||||||
|
@ -279,6 +279,12 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
this.actList1New = []
|
this.actList1New = []
|
||||||
this.list1.forEach((el, index) => {
|
this.list1.forEach((el, index) => {
|
||||||
this.actList1New.push('0')
|
this.actList1New.push('0')
|
||||||
|
|
|
@ -394,17 +394,15 @@ export default {
|
||||||
$route(newVal, oldVal) {
|
$route(newVal, oldVal) {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
|
},
|
||||||
|
'$store.state.equipmentIndex'(newVal, oldVal) {
|
||||||
|
this.dataInit();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const that = this;
|
const that = this;
|
||||||
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
|
||||||
this.loading = this.$loading({
|
|
||||||
lock: true,
|
|
||||||
text: '加载中',
|
|
||||||
spinner: 'el-icon-loading',
|
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
|
||||||
});
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
that.dataInit();
|
that.dataInit();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -635,6 +633,12 @@ export default {
|
||||||
this.changeBtn(code, dataNum);
|
this.changeBtn(code, dataNum);
|
||||||
},
|
},
|
||||||
dataInit() {
|
dataInit() {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '加载中',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
var data = {
|
var data = {
|
||||||
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
|
||||||
|
|
Loading…
Reference in New Issue