Compare commits
No commits in common. "25be1a7ad91b6c0fe4143451640f3199d0b544c5" and "f56e86569056c50f304f0849c4f57c84ee229e9e" have entirely different histories.
25be1a7ad9
...
f56e865690
@ -5,7 +5,6 @@ Vue.use(Vuex)
|
|||||||
|
|
||||||
export default new Vuex.Store({
|
export default new Vuex.Store({
|
||||||
state: {
|
state: {
|
||||||
nowInput:'',
|
|
||||||
lateSend: 100,//写入停止后 *100毫秒进行发送 例如10*100就是1000毫秒(1s)
|
lateSend: 100,//写入停止后 *100毫秒进行发送 例如10*100就是1000毫秒(1s)
|
||||||
lateSendBtn: 10,//写入停止后 *100毫秒进行发送 例如10*100就是1000毫秒(1s)
|
lateSendBtn: 10,//写入停止后 *100毫秒进行发送 例如10*100就是1000毫秒(1s)
|
||||||
equipmentList: [],//当前账户施肥设备
|
equipmentList: [],//当前账户施肥设备
|
||||||
|
@ -160,12 +160,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
},
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store=this.$store.state
|
var store=this.$store.state
|
||||||
@ -206,21 +204,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postWriteFs(data).then((res) => {
|
||||||
this.api.postWriteFs(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
store.nowInput=''
|
|
||||||
// this.dataInit();
|
|
||||||
} else {
|
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
|
||||||
this.$message.error(res.data.msg);
|
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
});
|
||||||
|
this.dataInit();
|
||||||
|
} else {
|
||||||
|
this.$message.error("请求出错");
|
||||||
|
}
|
||||||
|
this.timer=null
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -277,12 +277,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
@ -348,21 +346,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer = null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -341,12 +341,10 @@ export default {
|
|||||||
}
|
}
|
||||||
this.change(store.formulaNum[this.indexs - 1] + 2, dataSel);
|
this.change(store.formulaNum[this.indexs - 1] + 2, dataSel);
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
},
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store=this.$store.state
|
var store=this.$store.state
|
||||||
@ -387,22 +385,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postWriteFs(data).then((res) => {
|
||||||
this.api.postWriteFs(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
store.nowInput=''
|
|
||||||
// this.dataInit();
|
|
||||||
} else {
|
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
|
||||||
this.$message.error(res.data.msg);
|
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
});
|
||||||
|
this.dataInit();
|
||||||
|
} else {
|
||||||
|
this.$message.error("请求出错");
|
||||||
|
}
|
||||||
|
this.timer=null
|
||||||
|
});
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
if (rowIndex % 2 == 1) {
|
if (rowIndex % 2 == 1) {
|
||||||
|
@ -978,11 +978,9 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
},
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange10(code, el) {
|
blurChange10(code, el) {
|
||||||
var store=this.$store.state
|
var store=this.$store.state
|
||||||
@ -1063,21 +1061,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postWriteFs(data).then((res) => {
|
||||||
this.api.postWriteFs(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
store.nowInput=''
|
|
||||||
// this.dataInit();
|
|
||||||
} else {
|
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
|
||||||
this.$message.error(res.data.msg);
|
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
});
|
||||||
|
this.dataInit();
|
||||||
|
} else {
|
||||||
|
this.$message.error("请求出错");
|
||||||
|
}
|
||||||
|
this.timer=null
|
||||||
|
});
|
||||||
},
|
},
|
||||||
handleClose1(done) {
|
handleClose1(done) {
|
||||||
// this.$confirm('确认关闭?')
|
// this.$confirm('确认关闭?')
|
||||||
|
@ -387,12 +387,10 @@ return num
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
getSendData(number) {
|
getSendData(number) {
|
||||||
var number1 = number
|
var number1 = number
|
||||||
this.typeList.some((el, index) => {
|
this.typeList.some((el, index) => {
|
||||||
@ -501,21 +499,18 @@ return num
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer = null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -265,12 +265,10 @@ return num
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
},
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
|
||||||
getSendData(number){
|
getSendData(number){
|
||||||
var number1=number
|
var number1=number
|
||||||
this.typeList.some((el, index) => {
|
this.typeList.some((el, index) => {
|
||||||
@ -379,21 +377,18 @@ getSendData(number){
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postWriteFs(data).then((res) => {
|
||||||
this.api.postWriteFs(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer=null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -355,9 +355,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
@ -424,21 +422,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
store.nowInput=''
|
|
||||||
// this.dataInit();
|
|
||||||
} else {
|
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
|
||||||
this.$message.error(res.data.msg);
|
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
});
|
||||||
|
this.dataInit();
|
||||||
|
} else {
|
||||||
|
this.$message.error("请求出错");
|
||||||
|
}
|
||||||
|
this.timer = null
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -193,10 +193,10 @@ export default {
|
|||||||
message: res.data.msg,
|
message: res.data.msg,
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
// this.dataInit();
|
this.dataInit();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.msg);
|
this.$message.error("请求出错");
|
||||||
}
|
}
|
||||||
if (this.nowSel.index != -1) {
|
if (this.nowSel.index != -1) {
|
||||||
this.timer = null
|
this.timer = null
|
||||||
|
@ -116,12 +116,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
},
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store=this.$store.state
|
var store=this.$store.state
|
||||||
@ -162,21 +160,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postWriteFs(data).then((res) => {
|
||||||
this.api.postWriteFs(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer=null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -301,12 +301,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
},
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store=this.$store.state
|
var store=this.$store.state
|
||||||
@ -371,22 +369,19 @@ export default {
|
|||||||
}
|
}
|
||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer=null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
selList1(index) {
|
selList1(index) {
|
||||||
if (this.actList1.indexOf(index) == -1) {
|
if (this.actList1.indexOf(index) == -1) {
|
||||||
|
@ -147,12 +147,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
e.currentTarget.select();
|
||||||
store.nowInput=e.target.value
|
},
|
||||||
e.currentTarget.select();
|
|
||||||
},
|
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store=this.$store.state
|
var store=this.$store.state
|
||||||
@ -218,21 +216,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postWriteFs(data).then((res) => {
|
||||||
this.api.postWriteFs(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer=null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
selList1(index) {
|
selList1(index) {
|
||||||
if (this.actList1.indexOf(index) == -1) {
|
if (this.actList1.indexOf(index) == -1) {
|
||||||
|
@ -185,8 +185,6 @@ export default {
|
|||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
@ -254,19 +252,15 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
|
||||||
|
|
||||||
this.api.postControlWrite(data).then((res) => {
|
this.api.postControlWrite(data).then((res) => {
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.data.msg,
|
message: res.data.msg,
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
store.nowInput=''
|
this.dataInit();
|
||||||
// this.dataInit();
|
|
||||||
} else {
|
} else {
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.$message.error("请求出错");
|
||||||
this.$message.error(res.data.msg);
|
|
||||||
}
|
}
|
||||||
this.timer = null
|
this.timer = null
|
||||||
});
|
});
|
||||||
|
@ -158,10 +158,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
@ -227,21 +225,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer = null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -273,12 +273,10 @@ return hexString;
|
|||||||
})
|
})
|
||||||
this.getStatus(data)
|
this.getStatus(data)
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
@ -344,21 +342,18 @@ return hexString;
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer = null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -172,12 +172,10 @@ export default {
|
|||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
@ -243,21 +241,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer = null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -276,13 +276,11 @@ export default {
|
|||||||
this.statusNum=res.data.data['1015']
|
this.statusNum=res.data.data['1015']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
@ -348,21 +346,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer = null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -166,13 +166,11 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//全选文本
|
//全选文本
|
||||||
selectValue(e) {
|
selectValue(e) {
|
||||||
var store = this.$store.state
|
|
||||||
store.nowInput=e.target.value
|
|
||||||
e.currentTarget.select();
|
e.currentTarget.select();
|
||||||
},
|
},
|
||||||
//失去焦点
|
//失去焦点
|
||||||
blurChange(code, el) {
|
blurChange(code, el) {
|
||||||
var store = this.$store.state
|
var store = this.$store.state
|
||||||
@ -238,21 +236,18 @@ export default {
|
|||||||
}, 100);
|
}, 100);
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
var store = this.$store.state
|
this.api.postControlWrite(data).then((res) => {
|
||||||
this.api.postControlWrite(data).then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
this.$message({
|
||||||
this.$message({
|
message: res.data.msg,
|
||||||
message: res.data.msg,
|
type: "success",
|
||||||
type: "success",
|
});
|
||||||
});
|
this.dataInit();
|
||||||
store.nowInput=''
|
} else {
|
||||||
// this.dataInit();
|
this.$message.error("请求出错");
|
||||||
} else {
|
}
|
||||||
this.inputData[data.regAddress]=store.nowInput
|
this.timer = null
|
||||||
this.$message.error(res.data.msg);
|
});
|
||||||
}
|
|
||||||
this.timer = null
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user