|
@@ -82,6 +82,7 @@
|
|
|
placeholder="请输入"
|
|
|
type="number"
|
|
|
maxlength="5"
|
|
|
+ oninput="if(value.length>5)value=value.slice(0,5)"
|
|
|
:disabled="inputvalueFlag"
|
|
|
style="width:180px;margin-right: 2rem;"
|
|
|
/>
|
|
@@ -100,13 +101,13 @@
|
|
|
<div style="border: 1px solid #ccc;padding: 3rem 5rem;">
|
|
|
<div style="margin: 2rem 0;">
|
|
|
<el-button
|
|
|
- style="padding: 1rem 5rem;"
|
|
|
+ style="padding: 1rem 4rem;"
|
|
|
type="primary"
|
|
|
- :class="yaoTiaoCommnad.result===1 ? dark-button:''"
|
|
|
+ class="dark-button"
|
|
|
size="big"
|
|
|
- :disabled="yaoTiaoCommnad.result!==1"
|
|
|
+ :disabled="yaoTiaoCommnad.result!==-1"
|
|
|
@click="commitYaoTiaoExecute"
|
|
|
- >执行</el-button>
|
|
|
+ >遥调执行</el-button>
|
|
|
</div>
|
|
|
<div style="margin: 2rem 0;">
|
|
|
<el-button
|
|
@@ -419,7 +420,7 @@ export default {
|
|
|
}
|
|
|
this.yaoTiaoCommnad.result2 = 0
|
|
|
this.yaoTiaoCommnad.result2Text = '执行中'
|
|
|
- this.yaoTiaoCommnad.result = -1
|
|
|
+ this.yaoTiaoCommnad.result = 0
|
|
|
// this.inputvalueFlag = true
|
|
|
var urlencoded = new URLSearchParams()
|
|
|
urlencoded.append('stage', 'execute')
|
|
@@ -427,6 +428,7 @@ export default {
|
|
|
urlencoded.append('value', v)
|
|
|
postData(`/iec104/master/${this.modelParames.curPlanId}/normalized`, urlencoded).then((res) => {
|
|
|
// 操作成功
|
|
|
+ this.yaoTiaoCommnad.result = -1
|
|
|
this.inputvalueFlag = false
|
|
|
this.yaoTiaoCommnad.result2 = 1
|
|
|
this.yaoTiaoCommnad.result2Text = '执行成功!'
|