commit
ae6ace0bf6
|
@ -14,7 +14,7 @@ function sendGetRequest(url, data) {
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
.then(function (res) { //请求成功,response接收返回参数
|
.then(function (res) { //请求成功,response接收返回参数
|
||||||
if (res.data.code == 403) {
|
if (res.data.code == 401) {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('token')
|
||||||
router.push({
|
router.push({
|
||||||
name: 'login'
|
name: 'login'
|
||||||
|
@ -41,7 +41,7 @@ function sendUploadRequest(url, data) {
|
||||||
}
|
}
|
||||||
}).then(
|
}).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.data.code == 403) {
|
if (res.data.code == 401) {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('token')
|
||||||
router.push({
|
router.push({
|
||||||
name: 'login'
|
name: 'login'
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<div class="arrow"><img src="../../assets/image/arrow.png" alt=""></div>
|
<div class="arrow"><img src="../../assets/image/arrow.png" alt=""></div>
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu class="input-menu-180" slot="dropdown">
|
<el-dropdown-menu class="input-menu-180" slot="dropdown">
|
||||||
<el-dropdown-item v-for="item, index in typeList1" :key="index" :command="item.value">{{
|
<el-dropdown-item v-for="item, index in typeList2" :key="index" :command="item.value">{{
|
||||||
item.label }}</el-dropdown-item>
|
item.label }}</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
|
@ -443,16 +443,16 @@
|
||||||
<div class="model1-content model3-content">
|
<div class="model1-content model3-content">
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span class="text">最低土壤湿度</span>
|
<span class="text">最低土壤湿度</span>
|
||||||
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '37', $event)"
|
<input @blur="blurChange10('1' + (10 + (indexs - 1)) + '37', $event)"
|
||||||
v-model="inputData['1' + (10 + (indexs - 1)) + '37']"
|
v-model="inputData['1' + (10 + (indexs - 1)) + '37']"
|
||||||
@input="change('1' + (10 + (indexs - 1)) + '37', $event)" type="number" placeholder="0" />
|
@input="changeData10('1' + (10 + (indexs - 1)) + '37', $event)" type="number" placeholder="0" />
|
||||||
<span class="text">%</span>
|
<span class="text">%</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span class="text">最高土壤湿度</span>
|
<span class="text">最高土壤湿度</span>
|
||||||
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '38', $event)"
|
<input @blur="blurChange10('1' + (10 + (indexs - 1)) + '38', $event)"
|
||||||
v-model="inputData['1' + (10 + (indexs - 1)) + '38']"
|
v-model="inputData['1' + (10 + (indexs - 1)) + '38']"
|
||||||
@input="change('1' + (10 + (indexs - 1)) + '38', $event)" type="number" placeholder="0" />
|
@input="changeData10('1' + (10 + (indexs - 1)) + '38', $event)" type="number" placeholder="0" />
|
||||||
<span class="text">%</span>
|
<span class="text">%</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
|
@ -547,17 +547,17 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>液位信号通道</span>
|
<span>液位信号通道</span>
|
||||||
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '72', $event)"
|
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '68', $event)"
|
||||||
v-model="inputData['1' + (10 + (indexs - 1)) + '72']"
|
v-model="inputData['1' + (10 + (indexs - 1)) + '68']"
|
||||||
@input="change('1' + (10 + (indexs - 1)) + '72', $event)" type="number" placeholder="0" />
|
@input="change('1' + (10 + (indexs - 1)) + '68', $event)" type="number" placeholder="0" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>启动低液位值</span>
|
<span>启动低液位值</span>
|
||||||
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '73', $event)"
|
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '69', $event)"
|
||||||
v-model="inputData['1' + (10 + (indexs - 1)) + '73']"
|
v-model="inputData['1' + (10 + (indexs - 1)) + '69']"
|
||||||
@input="change('1' + (10 + (indexs - 1)) + '73', $event)" type="number" placeholder="0" />
|
@input="change('1' + (10 + (indexs - 1)) + '69', $event)" type="number" placeholder="0" />
|
||||||
<span>cm</span>
|
<span>cm</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -565,9 +565,9 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="input-main-80">
|
<div class="input-main-80">
|
||||||
<span>停止高液位值</span>
|
<span>停止高液位值</span>
|
||||||
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '74', $event)"
|
<input @blur="blurChange('1' + (10 + (indexs - 1)) + '70', $event)"
|
||||||
v-model="inputData['1' + (10 + (indexs - 1)) + '74']"
|
v-model="inputData['1' + (10 + (indexs - 1)) + '70']"
|
||||||
@input="change('1' + (10 + (indexs - 1)) + '74', $event)" type="number" placeholder="0" />
|
@input="change('1' + (10 + (indexs - 1)) + '70', $event)" type="number" placeholder="0" />
|
||||||
<span>cm</span>
|
<span>cm</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -833,6 +833,9 @@ export default {
|
||||||
this.inputData['1' + (10 + (indexs - 1)) + '40'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '40'])
|
this.inputData['1' + (10 + (indexs - 1)) + '40'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '40'])
|
||||||
this.inputData['1' + (10 + (indexs - 1)) + '43'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '43'])
|
this.inputData['1' + (10 + (indexs - 1)) + '43'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '43'])
|
||||||
this.inputData['1' + (10 + (indexs - 1)) + '44'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '44'])
|
this.inputData['1' + (10 + (indexs - 1)) + '44'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '44'])
|
||||||
|
this.inputData['1' + (10 + (indexs - 1)) + '37'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '37'])
|
||||||
|
this.inputData['1' + (10 + (indexs - 1)) + '38'] = this.countData10(this.inputData['1' + (10 + (indexs - 1)) + '38'])
|
||||||
|
|
||||||
this.model4Sel = this.inputData['1' + (10 + (indexs - 1)) + '71']
|
this.model4Sel = this.inputData['1' + (10 + (indexs - 1)) + '71']
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.msg);
|
this.$message.error(res.data.msg);
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
<div class="tips-model-tr">
|
<div class="tips-model-tr">
|
||||||
<div class="tips-model-text">土湿:</div>
|
<div class="tips-model-text">土湿:</div>
|
||||||
<div class="tips-model-text">0</div>
|
<div class="tips-model-text">0</div>
|
||||||
<div class="tips-model-text">-40</div>
|
<div class="tips-model-text">0</div>
|
||||||
<div class="tips-model-text">1000</div>
|
<div class="tips-model-text">1000</div>
|
||||||
<div class="tips-model-text">100</div>
|
<div class="tips-model-text">100</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue