|
@@ -11,7 +11,7 @@
|
|
<!-- label-width 设置了:label 和 input 就不会换行 -->
|
|
<!-- label-width 设置了:label 和 input 就不会换行 -->
|
|
<el-form ref="modelYaoKongOpt" :model="modelYaoKongOpt" label-width="30px">
|
|
<el-form ref="modelYaoKongOpt" :model="modelYaoKongOpt" label-width="30px">
|
|
<el-form-item prop="p1">
|
|
<el-form-item prop="p1">
|
|
- <el-radio-group v-model="modelYaoKongOpt.p1">
|
|
|
|
|
|
+ <el-radio-group v-model="modelYaoKongOpt.p1" :disabled="inputvalueFlag">
|
|
<el-radio label="1">分</el-radio>
|
|
<el-radio label="1">分</el-radio>
|
|
<el-radio label="2">合</el-radio>
|
|
<el-radio label="2">合</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
@@ -228,6 +228,7 @@ export default {
|
|
// 直控执行
|
|
// 直控执行
|
|
this.yaoKongCommand.result3 = 0
|
|
this.yaoKongCommand.result3 = 0
|
|
this.yaoKongCommand.result3Text = '进行中...'
|
|
this.yaoKongCommand.result3Text = '进行中...'
|
|
|
|
+ this.inputvalueFlag = true
|
|
var urlencoded = new URLSearchParams()
|
|
var urlencoded = new URLSearchParams()
|
|
urlencoded.append('stage', 'execute')
|
|
urlencoded.append('stage', 'execute')
|
|
urlencoded.append('tag', this.modelParames.modelFormData.iec104)
|
|
urlencoded.append('tag', this.modelParames.modelFormData.iec104)
|
|
@@ -235,7 +236,9 @@ export default {
|
|
postData(`/iec104/master/${this.modelParames.curPlanId}/ctrl`, urlencoded).then((res) => {
|
|
postData(`/iec104/master/${this.modelParames.curPlanId}/ctrl`, urlencoded).then((res) => {
|
|
this.yaoKongCommand.result3 = 1
|
|
this.yaoKongCommand.result3 = 1
|
|
this.yaoKongCommand.result3Text = '执行成功'
|
|
this.yaoKongCommand.result3Text = '执行成功'
|
|
|
|
+ this.inputvalueFlag = false
|
|
}).catch((_err) => {
|
|
}).catch((_err) => {
|
|
|
|
+ this.inputvalueFlag = false
|
|
this.yaoKongCommand.result3 = 2
|
|
this.yaoKongCommand.result3 = 2
|
|
this.yaoKongCommand.result3Text = '执行失败!'
|
|
this.yaoKongCommand.result3Text = '执行失败!'
|
|
const that = this
|
|
const that = this
|
|
@@ -251,6 +254,7 @@ export default {
|
|
// 预控
|
|
// 预控
|
|
this.yaoKongCommand.result = 0 // 禁用本身,禁用遥控
|
|
this.yaoKongCommand.result = 0 // 禁用本身,禁用遥控
|
|
this.yaoKongCommand.resultText = '进行中...'
|
|
this.yaoKongCommand.resultText = '进行中...'
|
|
|
|
+ this.inputvalueFlag = true
|
|
var urlencoded = new URLSearchParams()
|
|
var urlencoded = new URLSearchParams()
|
|
urlencoded.append('stage', 'select')
|
|
urlencoded.append('stage', 'select')
|
|
urlencoded.append('tag', this.modelParames.modelFormData.iec104)
|
|
urlencoded.append('tag', this.modelParames.modelFormData.iec104)
|
|
@@ -259,6 +263,7 @@ export default {
|
|
this.yaoKongCommand.result = 1 // 可进行遥控
|
|
this.yaoKongCommand.result = 1 // 可进行遥控
|
|
this.yaoKongCommand.resultText = '执行成功'
|
|
this.yaoKongCommand.resultText = '执行成功'
|
|
}).catch((_err) => {
|
|
}).catch((_err) => {
|
|
|
|
+ this.inputvalueFlag = false
|
|
this.yaoKongCommand.result = 2
|
|
this.yaoKongCommand.result = 2
|
|
this.yaoKongCommand.resultText = '执行失败!'
|
|
this.yaoKongCommand.resultText = '执行失败!'
|
|
const that = this
|
|
const that = this
|
|
@@ -279,11 +284,13 @@ export default {
|
|
urlencoded.append('value', this.modelYaoKongOpt.p1 !== '1')
|
|
urlencoded.append('value', this.modelYaoKongOpt.p1 !== '1')
|
|
postData(`/iec104/master/${this.modelParames.curPlanId}/ctrl`, urlencoded).then((res) => {
|
|
postData(`/iec104/master/${this.modelParames.curPlanId}/ctrl`, urlencoded).then((res) => {
|
|
// 操作成功
|
|
// 操作成功
|
|
|
|
+ this.inputvalueFlag = false
|
|
this.yaoKongCommand.result = -1
|
|
this.yaoKongCommand.result = -1
|
|
this.yaoKongCommand.resultText = '未执行'
|
|
this.yaoKongCommand.resultText = '未执行'
|
|
this.yaoKongCommand.result2 = 1
|
|
this.yaoKongCommand.result2 = 1
|
|
this.yaoKongCommand.result2Text = '执行成功!'
|
|
this.yaoKongCommand.result2Text = '执行成功!'
|
|
}).catch((_err) => {
|
|
}).catch((_err) => {
|
|
|
|
+ this.inputvalueFlag = false
|
|
this.yaoKongCommand.result2 = 2 // 恢复本身
|
|
this.yaoKongCommand.result2 = 2 // 恢复本身
|
|
this.yaoKongCommand.result2Text = '执行失败!'
|
|
this.yaoKongCommand.result2Text = '执行失败!'
|
|
this.yaoKongCommand.result = -1 // 恢复预控
|
|
this.yaoKongCommand.result = -1 // 恢复预控
|
|
@@ -300,11 +307,13 @@ export default {
|
|
urlencoded.append('value', this.modelYaoKongOpt.p1 !== '1')
|
|
urlencoded.append('value', this.modelYaoKongOpt.p1 !== '1')
|
|
postData(`/iec104/master/${this.modelParames.curPlanId}/ctrl`, urlencoded).then((res) => {
|
|
postData(`/iec104/master/${this.modelParames.curPlanId}/ctrl`, urlencoded).then((res) => {
|
|
// 操作成功
|
|
// 操作成功
|
|
|
|
+ this.inputvalueFlag = false
|
|
this.yaoKongCommand.result = -1
|
|
this.yaoKongCommand.result = -1
|
|
this.yaoKongCommand.resultText = '未执行'
|
|
this.yaoKongCommand.resultText = '未执行'
|
|
this.yaoKongCommand.result2 = -1
|
|
this.yaoKongCommand.result2 = -1
|
|
this.yaoKongCommand.result2Text = '需先进行预控'
|
|
this.yaoKongCommand.result2Text = '需先进行预控'
|
|
}).catch((_err) => {
|
|
}).catch((_err) => {
|
|
|
|
+ this.inputvalueFlag = false
|
|
this.yaoKongCommand.result2 = 2 // 恢复本身
|
|
this.yaoKongCommand.result2 = 2 // 恢复本身
|
|
this.yaoKongCommand.result2Text = '执行失败!'
|
|
this.yaoKongCommand.result2Text = '执行失败!'
|
|
this.yaoKongCommand.result = -1 // 恢复预控
|
|
this.yaoKongCommand.result = -1 // 恢复预控
|
|
@@ -411,7 +420,7 @@ export default {
|
|
this.yaoTiaoCommnad.result2 = 0
|
|
this.yaoTiaoCommnad.result2 = 0
|
|
this.yaoTiaoCommnad.result2Text = '执行中'
|
|
this.yaoTiaoCommnad.result2Text = '执行中'
|
|
this.yaoTiaoCommnad.result = -1
|
|
this.yaoTiaoCommnad.result = -1
|
|
- this.inputvalueFlag = true
|
|
|
|
|
|
+ // this.inputvalueFlag = true
|
|
var urlencoded = new URLSearchParams()
|
|
var urlencoded = new URLSearchParams()
|
|
urlencoded.append('stage', 'execute')
|
|
urlencoded.append('stage', 'execute')
|
|
urlencoded.append('tag', this.modelParames.modelFormData.iec104)
|
|
urlencoded.append('tag', this.modelParames.modelFormData.iec104)
|