|
@@ -31,6 +31,16 @@
|
|
|
<a-switch v-model="wisBllx" />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-model-item label="安检交出图片是否必填" style="min-height: 70px" prop="sucOutPic">
|
|
|
+ <a-switch v-model="sucOutPic" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-model-item label="安检接入图片是否必填" style="min-height: 70px" prop="sucInPic">
|
|
|
+ <a-switch v-model="sucInPic" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
|
|
|
<a-col :span="24">
|
|
|
<a-form-model-item label="廊桥测试间隔时间(分钟)" style="min-height: 70px" prop="langqiao">
|
|
@@ -80,10 +90,11 @@
|
|
|
timeout: 0,
|
|
|
attendance: 0,
|
|
|
wisBllx: true,
|
|
|
-
|
|
|
one: '/admin/one',
|
|
|
edit: '/admin/edit',
|
|
|
pid: 0,
|
|
|
+ sucOutPic: 0,
|
|
|
+ sucInPic: 0,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -95,7 +106,8 @@
|
|
|
}else {
|
|
|
that.wisBllx = false
|
|
|
}
|
|
|
-
|
|
|
+ that.sucOutPic = res.result.sucOutPic > 0;
|
|
|
+ that.sucInPic = res.result.sucInPic > 0;
|
|
|
that.yhxz = res.result.yhxz
|
|
|
that.timeout = res.result.timeout
|
|
|
|
|
@@ -125,7 +137,17 @@
|
|
|
var symcode = "2"
|
|
|
}
|
|
|
|
|
|
- httpAction(that.edit, {id:that.pid,yhxz:that.yhxz,langqiao:that.langqiao,wisBllx:symcode,sy:that.sy,timeout:that.timeout,attendance:that.attendance}, 'post').then((res) => {
|
|
|
+ httpAction(that.edit, {
|
|
|
+ id: that.pid,
|
|
|
+ yhxz: that.yhxz,
|
|
|
+ langqiao: that.langqiao,
|
|
|
+ wisBllx: symcode,
|
|
|
+ sucOutPic: that.sucOutPic ? 1 : 0,
|
|
|
+ sucInPic: that.sucInPic ? 1 : 0,
|
|
|
+ sy: that.sy,
|
|
|
+ timeout: that.timeout,
|
|
|
+ attendance: that.attendance
|
|
|
+ }, 'post').then((res) => {
|
|
|
if (res.success) {
|
|
|
that.$message.success(res.message)
|
|
|
that.$emit('ok')
|