pc-master #138

Merged
xiaomeng merged 2 commits from pc-master into portal 2024-03-26 09:25:18 +00:00
30 changed files with 296 additions and 14 deletions

View File

@ -43,6 +43,7 @@ export default {
routerNow: "skylight",
routerIndex: 1,
purview: [], //
loading:null,
};
},
watch: {
@ -53,12 +54,19 @@ export default {
var store = this.$store.state;
var item = store.equipmentList[store.equipmentIndex - 1]
if(item.deviceName == 10 || item.deviceName == 30){
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit();
}
},
},
mounted() {
this.gerRouter();
this.dataInit();
},
methods: {
@ -81,6 +89,7 @@ export default {
var store = this.$store.state;
var data = store.equipmentList[store.equipmentIndex - 1].deviceId;
this.api.getcontrol_cpermission(data).then((res) => {
this.routerList = [];
this.purview = res.data.data;
this.purview.forEach((el, index) => {
@ -251,12 +260,19 @@ export default {
this.routerNow != "/rollByRoll" &&
this.routerNow != "/snowRemoval"
) {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
//
var store = this.$store.state;
var data = {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.readControl_fiveControl(data).then((res) => {
this.loading.close()
store.ControlData = res.data.data
//waterPump
store.ControlData['21521'] = this.countData(store.ControlData['21521'])

View File

@ -295,6 +295,7 @@ export default {
actList2: [],
actList3: [],
startList:[21408,21413,21418,21423],
loading:null,
}
},
watch: {
@ -309,6 +310,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -563,6 +570,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.readfilllight(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.getActive1()

View File

@ -133,10 +133,18 @@ export default {
},
data() {
return {
inputData: []
inputData: [],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -153,6 +161,7 @@ export default {
regNum: 16,
};
this.api.postReg(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
} else {

View File

@ -316,10 +316,17 @@ export default {
{ label: '13#湿度传感器', value: 14 },
{ label: '14#湿度传感器', value: 15 },
{ label: '15#湿度传感器', value: 16 },],
loading:null,
}
},
mounted() {
const that = this;
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
that.dataInit();
}, 0);
@ -487,6 +494,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.targetValue(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = JSON.parse(JSON.stringify(res.data.data));
this.inputDataNew = JSON.parse(JSON.stringify(res.data.data))

View File

@ -143,6 +143,7 @@ export default {
startList: [21450, 21470],//
indexs: 1,
actList1: [],
loading:null,
}
},
watch: {
@ -157,6 +158,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -278,6 +285,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.readcirculationfan(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.startList.forEach((el, index) => {

View File

@ -82,6 +82,7 @@ export default {
startList: [21800, 21808],//
indexs: 1,
actList1: [],
loading:null,
}
},
watch: {
@ -96,6 +97,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -217,6 +224,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.highpressuremist(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.startList.forEach((el, index) => {

View File

@ -177,13 +177,21 @@ export default {
actList1: [],//
inputData: [],
typeList: [{ label: '间隔模式启动', value: 1, },
{ label: '土壤湿度传感器启动', value: 2, },]
{ label: '土壤湿度传感器启动', value: 2, },],
loading:null,
}
},
watch: {
$route(newVal, oldVal) {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -192,6 +200,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -287,6 +301,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api['solenoidValve' + this.indexs](data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.sensorType = ''

View File

@ -74,6 +74,7 @@ export default {
data() {
return {
inputData: [],
loading:null,
}
},
mounted() {
@ -157,11 +158,18 @@ export default {
this.change(code, sendData)
},
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 data = {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.readalarmSetting(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;

View File

@ -143,6 +143,7 @@ export default {
//
openIndex: 0,
actList1:[],
loading:null,
}
},
watch: {
@ -158,6 +159,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -285,6 +292,7 @@ export default {
};
this.api.getReadControlliShuiControl(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.openIndex = this.inputData[21600]

View File

@ -34,10 +34,17 @@
index: -1,
value: 0,
},
pageList:[[],[],[],[]]
pageList:[[],[],[],[]],
loading:null,
}
},
mounted(){
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
},
methods:{
@ -71,6 +78,7 @@
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.forceChannelOutput(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.pageList.forEach((el, index) => {

View File

@ -221,6 +221,7 @@ export default {
inputData: [],
dataSel: '',
store: this.$store.state,
loading:null,
}
},
watch: {
@ -229,6 +230,12 @@ export default {
var store = this.$store.state
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
this.titleName = store.equipmentName['fertilization' + store.nameList[this.indexs - 1]]
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
that.dataInit();
}, 0);
@ -239,6 +246,12 @@ export default {
var store = this.$store.state
this.indexs = this.$route.query.id ? Number(this.$route.query.id) : 1;
this.titleName = store.equipmentName['fertilization' + store.nameList[this.indexs - 1]]
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
that.dataInit();
}, 0);
@ -317,6 +330,7 @@ export default {
regNum: 29,
};
this.api.postReg(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.inputData[store.formulaNum[this.indexs - 1]] = this.countData1(this.inputData[store.formulaNum[this.indexs - 1]])

View File

@ -162,6 +162,7 @@ export default {
startList: [21840, 21858],//
indexs: 1,
actList1: [],
loading:null,
}
},
watch: {
@ -176,6 +177,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -297,6 +304,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.innercurtain(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.startList.forEach((el, index) => {

View File

@ -109,6 +109,7 @@ export default {
startList: [22000, 22012],//
indexs: 1,
actList1: [],
loading:null,
}
},
watch: {
@ -124,6 +125,12 @@ export default {
const that = this;
this.indexs = this.$route.query.id ? this.$route.query.id : 1;
setTimeout(() => {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
that.dataInit();
}, 0);
//input
@ -244,6 +251,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.interiorthermalinsulation(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.startList.forEach((el, index) => {

View File

@ -564,9 +564,16 @@ export default {
{ label: '制冷模式', value: 2 },],
inputData:[],
inputDataNew:[],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -653,6 +660,7 @@ modelConfirm(){
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.intrinsicParameter(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData =JSON.parse(JSON.stringify(res.data.data));
this.inputDataNew=JSON.parse(JSON.stringify(res.data.data))

View File

@ -441,16 +441,16 @@
<div class="input-main-80">
<span>有效时间</span>
<input @blur="blurChange(10 + (indexs - 1) + '67', $event)" v-model="inputData[10 + (indexs - 1) + '67']"
@input="change(10 + (indexs - 1) + '67', $event)" type="number" placeholder="0" />
@input="change(10 + (indexs - 1) + '67', $event)" type="number" placeholder="0" min="0" max="23" />
<span>:</span>
<input @blur="blurChange(10 + (indexs - 1) + '68', $event)" v-model="inputData[10 + (indexs - 1) + '68']"
@input="change(10 + (indexs - 1) + '68', $event)" type="number" placeholder="0" />
@input="change(10 + (indexs - 1) + '68', $event)" type="number" placeholder="0" min="0" max="59" />
<span>--</span>
<input @blur="blurChange(10 + (indexs - 1) + '69', $event)" v-model="inputData[10 + (indexs - 1) + '69']"
@input="change(10 + (indexs - 1) + '69', $event)" type="number" placeholder="0" />
@input="change(10 + (indexs - 1) + '69', $event)" type="number" placeholder="0" min="0" max="23" />
<span>:</span>
<input @blur="blurChange(10 + (indexs - 1) + '70', $event)" v-model="inputData[10 + (indexs - 1) + '70']"
@input="change(10 + (indexs - 1) + '70', $event)" type="number" placeholder="0" />
@input="change(10 + (indexs - 1) + '70', $event)" type="number" placeholder="0" min="0" max="59" />
</div>
</div>
<div class="model-return">
@ -483,11 +483,18 @@ export default {
indexs: 2,
data53: "",
inputData: {},
loading:null,
};
},
watch: {
'$store.state.equipmentIndex': function (newValue, oldValue) {
const that = this;
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
that.dataInit();
}, 0);
@ -495,6 +502,12 @@ export default {
$route(newVal, oldVal) {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -503,6 +516,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -675,6 +694,7 @@ export default {
regNum: 71,
};
this.api.postReg(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.getType();

View File

@ -132,6 +132,7 @@ export default {
startList: [21900,21915],//
indexs: 1,
actList1: [],
loading:null,
}
},
watch: {
@ -146,6 +147,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -267,6 +274,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.externalsunshade(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.startList.forEach((el, index) => {

View File

@ -683,9 +683,16 @@ export default {
list4: [21735, 21739, 21751, 21755, 21759, 21763, 21767, 21771],
inputData: [],
inputDataNew: [],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -737,6 +744,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.manufacturerparameter(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = JSON.parse(JSON.stringify(res.data.data));
this.inputDataNew = JSON.parse(JSON.stringify(res.data.data))

View File

@ -133,7 +133,8 @@ export default {
openList2: [],//
openList3: [],//
openTypeList: [],//
typeList: this.$store.state.typeList
typeList: this.$store.state.typeList,
loading:null,
}
},
watch: {
@ -142,6 +143,12 @@ export default {
},
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -403,6 +410,7 @@ return num
};
this.api.getReadControlSensorChannel(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = JSON.parse(JSON.stringify(res.data.data));
this.inputDataNew = res.data.data;

View File

@ -102,7 +102,8 @@ export default {
inputDataNew:[],
sensorType:'',//
openList: [],//
typeList:this.$store.state.typeList
typeList:this.$store.state.typeList,
loading:null,
}
},
watch:{
@ -112,6 +113,12 @@ export default {
},
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -283,6 +290,7 @@ return num
regNum: 31,//pattern
};
this.api.postReg(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = JSON.parse(JSON.stringify(res.data.data));
this.inputDataNew = res.data.data;

View File

@ -172,6 +172,7 @@ export default {
openIndex: 0,
openTrue: [],
loading:null,
}
},
watch: {
@ -183,6 +184,12 @@ export default {
}, 0);
},
'$route.query.change'(newVal, oldVal) {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit();
},
},
@ -190,6 +197,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -325,6 +338,7 @@ export default {
};
this.api.getReadControlliShuiControl(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.getNowData()

View File

@ -203,6 +203,7 @@ export default {
startList: [21250, 21273, 21296, 21319],//
indexs: 1,
actList1: [],
loading:null,
}
},
watch: {
@ -217,6 +218,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -339,6 +346,8 @@ export default {
};
var equipmentId = store.equipmentList[store.equipmentIndex - 1].deviceId
this.api.readskylight(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.startList.forEach((el, index) => {

View File

@ -49,10 +49,17 @@ export default {
'水温',
],
rightList: ['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
},
methods: {
@ -79,6 +86,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.getReadControlSensorInputSynthesis(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.leftList.forEach((el, index) => {

View File

@ -94,10 +94,17 @@ export default {
},
data() {
return {
inputData: []
inputData: [],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -130,6 +137,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.getControlGetState(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.inputData['1051'] = this.fliter2(this.inputData['1051'].toString(16))

View File

@ -78,10 +78,18 @@ export default {
},
data() {
return {
inputData: []
inputData: [],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -116,7 +124,8 @@ export default {
regNum: 72,
};
this.api.postState(data).then((res) => {
console.log(res, 11);
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.inputData['55']= this.fliter2(this.inputData['55'].toString(16))

View File

@ -103,11 +103,18 @@
data(){
return {
inputData:[],
loading:null,
}
},
mounted() {
const that = this;
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
that.dataInit();
}, 0);
@ -192,6 +199,7 @@
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.targetValue(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;

View File

@ -200,12 +200,19 @@
export default {
data(){
return {
inputData:[]
inputData:[],
loading:null,
}
},
mounted() {
const that = this;
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
that.dataInit();
}, 0);
@ -290,6 +297,7 @@
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.targetValue(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.inputData[20034] =this.countData10(this.inputData[20034]);

View File

@ -202,10 +202,17 @@ export default {
return {
timer: null,
inputData: [],
loading:null,
}
},
mounted() {
const that = this;
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
setTimeout(() => {
that.dataInit();
}, 0);
@ -290,6 +297,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.targetValue(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.inputData[20002] =this.countData(this.inputData[20002]);

View File

@ -189,10 +189,17 @@ export default {
'通道传感器47',
'通道传感器48',],
inputData: [],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -286,6 +293,7 @@ export default {
};
this.api.getControldataUpload(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;

View File

@ -83,10 +83,17 @@ export default {
'5#通道传感器数据',
'6#通道传感器数据'],
inputData: [],
loading:null,
}
},
mounted() {
this.loading = this.$loading({
lock: true,
text: '加载中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.dataInit()
//input
let inputList = document.querySelectorAll('input');
@ -137,6 +144,7 @@ export default {
regNum: 3,
};
this.api.postReg(data).then((res) => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;

View File

@ -380,6 +380,7 @@ export default {
actList4: [],
actList5: [],
indexs: 1,
loading:null,
}
},
watch: {
@ -391,6 +392,12 @@ export default {
mounted() {
const that = this;
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(() => {
that.dataInit();
}, 0);
@ -626,6 +633,7 @@ export default {
deviceId: store.equipmentList[store.equipmentIndex - 1].deviceId,
};
this.api.fanwetcurtain(data).then(res => {
this.loading.close()
if (res.data.code == 200) {
this.inputData = res.data.data;
this.inputData[21958]=this.countData(this.inputData[21958])