|
@@ -356,7 +356,7 @@
|
|
|
<el-dialog
|
|
|
:title="dialogTitle[dialogType]"
|
|
|
:visible.sync="dialogVisible"
|
|
|
- width="1100px"
|
|
|
+ width="1200px"
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
|
<el-form
|
|
@@ -1337,7 +1337,7 @@
|
|
|
label-width="78px"
|
|
|
:label="`推送地址${index+1}`"
|
|
|
class="form-item-style"
|
|
|
- style="width: 400px;flex:none;"
|
|
|
+ style="width: 390px;flex:none;"
|
|
|
:prop="`clockWayPushInterfaceAddresses.${index}.interfAddr`"
|
|
|
>
|
|
|
<el-input
|
|
@@ -1373,11 +1373,14 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label-width="78px"
|
|
|
+ label-position="right"
|
|
|
+ label="绑定区域"
|
|
|
class="form-item-style"
|
|
|
- style="margin-left:10px;width:309px;flex:none;"
|
|
|
+ style="margin-left:13px;width:309px;flex:none;"
|
|
|
:prop="`clockWayPushInterfaceAddresses.${index}.zoneId`"
|
|
|
+ :rules="{ required: true, type: 'number', message: '绑定区域不能为空', trigger: ['change', 'blur'], validator: zoneRule }"
|
|
|
>
|
|
|
- <div slot="label" style="text-align: right;">绑定区域</div>
|
|
|
+ <!-- <div slot="label" style="text-align: right;">绑定区域</div> -->
|
|
|
<el-select
|
|
|
v-model="clockWayItem.zoneId"
|
|
|
filterable
|
|
@@ -2512,6 +2515,12 @@ export default {
|
|
|
}
|
|
|
return callback("推送字段不能为空!");
|
|
|
},
|
|
|
+ zoneRule(rule, value, callback) {
|
|
|
+ if (value != null && value != undefined) {
|
|
|
+ return callback();
|
|
|
+ }
|
|
|
+ return callback("绑定区域不能为空!");
|
|
|
+ },
|
|
|
// 获取区域列表
|
|
|
getPlatformList(adminId) {
|
|
|
getAreaList({ adminId }).then((res) => {
|
|
@@ -2782,7 +2791,7 @@ export default {
|
|
|
this.user_form.clockWayPushInterfaceAddresses =
|
|
|
this.user_form.clockWayPushInterfaceAddresses.filter((item) => {
|
|
|
return (
|
|
|
- item.interfAddr !== null &&
|
|
|
+ // item.interfAddr !== null &&
|
|
|
item.punchReportFields !== null &&
|
|
|
item.punchReportFields.length > 0 &&
|
|
|
item.zoneId !== null
|
|
@@ -2794,7 +2803,7 @@ export default {
|
|
|
this.user_form.clockWayPushInterfaceAddresses =
|
|
|
this.user_form.clockWayPushInterfaceAddresses.map((item) => {
|
|
|
return {
|
|
|
- interfAddr: item.interfAddr,
|
|
|
+ interfAddr: item.interfAddr || null,
|
|
|
zoneId: item.zoneId,
|
|
|
punchReportFields:
|
|
|
item.punchReportFields && item.punchReportFields > 0
|
|
@@ -2886,7 +2895,7 @@ export default {
|
|
|
punchReportFields = item.punchReportFields;
|
|
|
}
|
|
|
return {
|
|
|
- interfAddr: item.interfAddr,
|
|
|
+ interfAddr: item.interfAddr || null,
|
|
|
zoneId: item.zoneId,
|
|
|
punchReportFields,
|
|
|
};
|
|
@@ -2959,7 +2968,7 @@ export default {
|
|
|
this.user_form.clockWayPushInterfaceAddresses =
|
|
|
this.user_form.clockWayPushInterfaceAddresses.filter((item) => {
|
|
|
return (
|
|
|
- item.interfAddr !== null &&
|
|
|
+ // item.interfAddr !== null &&
|
|
|
item.punchReportFields !== null &&
|
|
|
item.punchReportFields.length > 0 &&
|
|
|
item.zoneId !== null
|
|
@@ -2971,7 +2980,7 @@ export default {
|
|
|
this.user_form.clockWayPushInterfaceAddresses =
|
|
|
this.user_form.clockWayPushInterfaceAddresses.map((item) => {
|
|
|
return {
|
|
|
- interfAddr: item.interfAddr,
|
|
|
+ interfAddr: item.interfAddr || null,
|
|
|
zoneId: item.zoneId,
|
|
|
punchReportFields:
|
|
|
item.punchReportFields &&
|