opt: 异常日志,流量限制,创建任务优化
This commit is contained in:
@@ -135,7 +135,7 @@ export default {
|
||||
props: {
|
||||
parentForm: {
|
||||
type: Object,
|
||||
required: true
|
||||
require: true
|
||||
}
|
||||
},
|
||||
cruds() {
|
||||
|
||||
@@ -286,7 +286,7 @@ export default {
|
||||
this.$refs.child1.setForm(clickObj)
|
||||
} else if (clickObj.data.driver_type === 'standard_stacker') {
|
||||
this.dialogFormVisible4 = true
|
||||
}else {
|
||||
} else {
|
||||
this.dialogFormVisible = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -759,7 +759,11 @@ export default {
|
||||
this.dialogVisible = false
|
||||
},
|
||||
saveBtn() {
|
||||
// 禁用按钮
|
||||
this.isDisabled = true
|
||||
crudTask.add(this.form).then(res => {
|
||||
// 请求完成后启用按钮
|
||||
this.isDisabled = false
|
||||
this.crud.toQuery()
|
||||
this.formDia = false
|
||||
this.isDisabled = true
|
||||
@@ -767,6 +771,10 @@ export default {
|
||||
this.extension = [{
|
||||
name: '',
|
||||
value: '' }]
|
||||
// 设置定时器,等待一定时间后再次允许请求
|
||||
setTimeout(() => {
|
||||
this.isDisabled = false // 可根据具体需求进行调整
|
||||
}, 1000) // 5000 毫秒,即 5 秒钟
|
||||
},
|
||||
openDialog() {
|
||||
this.dialogVisible = true
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('monitor.click.job_command')" prop="toCommand" label-width="120px">
|
||||
<el-radio-group v-model="form.toCommand">
|
||||
<el-radio-button :label="7" >{{ $t('monitor.click.recall') }}</el-radio-button>
|
||||
<el-radio-button :label="7">{{ $t('monitor.click.recall') }}</el-radio-button>
|
||||
<el-radio-button :label="8">{{ $t('monitor.click.scram') }}</el-radio-button>
|
||||
<el-radio-button :label="5">{{ $t('monitor.click.police_clearance') }}</el-radio-button>
|
||||
</el-radio-group>
|
||||
@@ -200,7 +200,7 @@
|
||||
<el-form-item :label="$t('monitor.click.stop_task')" prop="stopReceiveTask" label-width="120px">
|
||||
<el-switch v-model="form.stopReceiveTask" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('monitor.click.requireSucess')" prop="applySucess" label-width="120px">
|
||||
<el-form-item :label="$t('monitor.click.requireSucess')" prop="applySucess" label-width="120px">
|
||||
<el-radio-group v-model="form.requireSucess">
|
||||
<el-radio-button :label="0"> {{ $t('auto.common.false') }}</el-radio-button>
|
||||
<el-radio-button :label="1">{{ $t('auto.common.true') }}</el-radio-button>
|
||||
@@ -232,6 +232,7 @@ export default {
|
||||
name: 'MonitorDevice',
|
||||
data() {
|
||||
return {
|
||||
// stageParam: 'stage_code', // 舞台参数
|
||||
stageParam: 'age', // 舞台参数
|
||||
dialogDeviceMsgVisible: false, // 显示设备信息的dialog
|
||||
device_code: null,
|
||||
@@ -760,6 +761,7 @@ body {
|
||||
::v-deep.el-radio-button{
|
||||
margin-right: 15px;
|
||||
border-radius:4px;
|
||||
}
|
||||
.el-radio-button__inner {
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
@@ -773,5 +775,5 @@ body {
|
||||
border-color: blue;
|
||||
box-shadow: -1px 0 0 0 blue;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user