|
@@ -25,6 +25,7 @@
|
|
|
<el-form
|
|
|
:model="user_form"
|
|
|
ref="user_form"
|
|
|
+ :rules="rules"
|
|
|
label-width="200px"
|
|
|
label-position="left"
|
|
|
>
|
|
@@ -243,39 +244,52 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
- <div v-if="user_form.clockWayType === '1'" class="flex">
|
|
|
- <el-form-item
|
|
|
- label-width="200px"
|
|
|
- style="margin-left:0;"
|
|
|
- label="打卡方式-通用推送地址"
|
|
|
- class="form-item-style"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="user_form.clockWayPushUrl"
|
|
|
- placeholder="请输入"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- <!-- 设备显示配置 -->
|
|
|
- <div v-if="user_form.type === 5">
|
|
|
- <div class="title">
|
|
|
- <div class="line" />
|
|
|
- <span>设备显示配置</span>
|
|
|
- </div>
|
|
|
- <div class="flex">
|
|
|
+ <div v-if="user_form.clockWayType === '1'" class="interfaceAddress-layout" style="margin-top: 6px;">
|
|
|
+ <div v-for="(clockWayItem, index) in user_form.clockWayPushInterfaceAddresses" :key="index" style="width:100%;display: flex;align-items: center;">
|
|
|
<el-form-item
|
|
|
- label-width="120px"
|
|
|
- label="顶部标题"
|
|
|
+ label-width="140px"
|
|
|
+ :label="`打卡-通用推送地址${index+1}`"
|
|
|
class="form-item-style"
|
|
|
- prop="topTitle"
|
|
|
+ style="width: 540px;flex:none;"
|
|
|
+ :prop="`clockWayPushInterfaceAddresses.${index}.interfAddr`"
|
|
|
>
|
|
|
<el-input
|
|
|
- v-model="user_form.topTitle"
|
|
|
- placeholder="请输入顶部标题"
|
|
|
- maxlength="8"
|
|
|
- show-word-limit
|
|
|
+ v-model="clockWayItem.interfAddr"
|
|
|
+ placeholder="请输入推送地址"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label-width="120px"
|
|
|
+ :label="`地址${index+1}-绑定区域`"
|
|
|
+ class="form-item-style"
|
|
|
+ style="margin-left:60px;width:450px;flex:none;"
|
|
|
+ :prop="`clockWayPushInterfaceAddresses.${index}.zoneId`"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model="clockWayItem.zoneId"
|
|
|
+ filterable
|
|
|
+ style="width:100%;"
|
|
|
+ placeholder="请绑定区域"
|
|
|
+ @change="e => checkWayOfAreaSelectChange(e, index)"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in platformAreaList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ :disabled="checkWayOfSelectedPlatformAreaList && checkWayOfSelectedPlatformAreaList.length > 0 && checkWayOfSelectedPlatformAreaList.includes(item.id)"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-button v-if="user_form.clockWayPushInterfaceAddresses && user_form.clockWayPushInterfaceAddresses.length > 1" icon="el-icon-close" size="small" circle style="align-self: flex-start;margin:4px 0 0 6px;margin:4px 0 0 6px;border:none;" @click.prevent="removeCheckWayInterfaceAddress(index, clockWayItem.zoneId)" />
|
|
|
+ <el-button icon="el-icon-plus" size="small" circle style="align-self: flex-start;margin:4px 0 0 6px;" @click.prevent="addCheckWayInterfaceAddress" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 设备显示配置 -->
|
|
|
+ <div v-if="user_form.type === 5">
|
|
|
+ <div class="title">
|
|
|
+ <div class="line" />
|
|
|
+ <span>设备显示配置</span>
|
|
|
</div>
|
|
|
<div v-if="user_form.openThirdLinkPlatform" class="interfaceAddress-layout">
|
|
|
<div v-for="(interfaceAddressItem, index) in user_form.interfaceAddresses" :key="index" style="width:100%;display: flex;align-items: center;">
|
|
@@ -318,11 +332,51 @@
|
|
|
<el-button icon="el-icon-plus" size="small" circle style="align-self: flex-start;margin:4px 0 0 6px;" @click.prevent="addInterfaceAddress" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="flex">
|
|
|
+ <div class="display-config-layout">
|
|
|
<el-form-item
|
|
|
+ label="UI使用版本"
|
|
|
+ prop="latestResultPage"
|
|
|
+ class="form-item-style"
|
|
|
label-width="120px"
|
|
|
- label="成功通行结果"
|
|
|
+ >
|
|
|
+ <el-radio-group v-model="user_form.latestResultPage">
|
|
|
+ <el-radio :label="false">
|
|
|
+ <img src="../../assets/ui-theme1.jpg" width="60px" height="96px" alt="旧版">
|
|
|
+ </el-radio>
|
|
|
+ <el-radio :label="true">
|
|
|
+ <img src="../../assets/ui-theme2.jpg" width="60px" height="96px" alt="新版">
|
|
|
+ </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label-width="120px"
|
|
|
+ label="顶部标题"
|
|
|
class="form-item-style"
|
|
|
+ prop="topTitle"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="user_form.topTitle"
|
|
|
+ placeholder="请输入顶部标题"
|
|
|
+ maxlength="8"
|
|
|
+ show-word-limit
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ v-if="false && !user_form.latestResultPage"
|
|
|
+ label-width="120px"
|
|
|
+ label="地址"
|
|
|
+ class="form-item-style special"
|
|
|
+ :prop="user_form.openThirdLinkPlatform?'interfaceAddress':''"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="user_form.interfaceAddress"
|
|
|
+ placeholder="请输入地址"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label-width="120px"
|
|
|
+ label="成功通行结果"
|
|
|
+ class="form-item-style special"
|
|
|
prop="subLineSuccess"
|
|
|
>
|
|
|
<el-input
|
|
@@ -333,7 +387,7 @@
|
|
|
<el-form-item
|
|
|
label-width="120px"
|
|
|
label="失败通行结果"
|
|
|
- class="form-item-style"
|
|
|
+ class="form-item-style special"
|
|
|
prop="subLineFail"
|
|
|
>
|
|
|
<el-input
|
|
@@ -341,12 +395,33 @@
|
|
|
placeholder="请输入失败通行结果"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </div>
|
|
|
- <div class="flex">
|
|
|
<el-form-item
|
|
|
+ label-width="120px"
|
|
|
+ label="成功语音播报"
|
|
|
+ class="form-item-style special"
|
|
|
+ prop="openVoiceMsgSuccess"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="user_form.openVoiceMsgSuccess"
|
|
|
+ placeholder="请输入成功语音播报"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label-width="120px"
|
|
|
+ label="失败语音播报"
|
|
|
+ class="form-item-style special"
|
|
|
+ prop="openVoiceMsgFail"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="user_form.openVoiceMsgFail"
|
|
|
+ placeholder="请输入失败语音播报"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ v-if="!user_form.latestResultPage"
|
|
|
label-width="120px"
|
|
|
label="左副框上层"
|
|
|
- class="form-item-style"
|
|
|
+ class="form-item-style special"
|
|
|
prop="mainLineLeft"
|
|
|
>
|
|
|
<el-input
|
|
@@ -355,9 +430,10 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
+ v-if="!user_form.latestResultPage"
|
|
|
label-width="120px"
|
|
|
label="左副框下层"
|
|
|
- class="form-item-style"
|
|
|
+ class="form-item-style special"
|
|
|
prop="subLineLeft"
|
|
|
>
|
|
|
<el-input
|
|
@@ -365,12 +441,11 @@
|
|
|
placeholder="请输入左副框下层"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </div>
|
|
|
- <div class="flex">
|
|
|
<el-form-item
|
|
|
+ v-if="!user_form.latestResultPage"
|
|
|
label-width="120px"
|
|
|
label="右副框上层"
|
|
|
- class="form-item-style"
|
|
|
+ class="form-item-style special"
|
|
|
prop="mainLineRight"
|
|
|
>
|
|
|
<el-input
|
|
@@ -379,9 +454,10 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
+ v-if="!user_form.latestResultPage"
|
|
|
label-width="120px"
|
|
|
label="右副框下层"
|
|
|
- class="form-item-style"
|
|
|
+ class="form-item-style special"
|
|
|
prop="subLineRight"
|
|
|
>
|
|
|
<el-input
|
|
@@ -389,20 +465,23 @@
|
|
|
placeholder="请输入右副框下层"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </div>
|
|
|
- <div class="flex">
|
|
|
<el-form-item
|
|
|
+ v-if="!user_form.latestResultPage"
|
|
|
label-width="120px"
|
|
|
label="二维码是否显示"
|
|
|
- class="el-form-item form-item-style"
|
|
|
+ class="el-form-item form-item-style special"
|
|
|
prop="showQrcode"
|
|
|
>
|
|
|
- <el-radio-group v-model="user_form.showQrcode" style="width: 100%">
|
|
|
+ <el-radio-group
|
|
|
+ v-model="user_form.showQrcode"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
+ v-if="!user_form.latestResultPage"
|
|
|
label-width="120px"
|
|
|
label="二维码码值"
|
|
|
class="form-item-style special"
|
|
@@ -413,34 +492,8 @@
|
|
|
placeholder="二维码码值"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </div>
|
|
|
- <div class="flex">
|
|
|
- <el-form-item
|
|
|
- label-width="120px"
|
|
|
- label="成功语音播报"
|
|
|
- class="form-item-style"
|
|
|
- prop="openVoiceMsgSuccess"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="user_form.openVoiceMsgSuccess"
|
|
|
- placeholder="请输入成功语音播报"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item
|
|
|
- label-width="120px"
|
|
|
- label="失败语音播报"
|
|
|
- class="form-item-style"
|
|
|
- prop="openVoiceMsgFail"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="user_form.openVoiceMsgFail"
|
|
|
- placeholder="请输入失败语音播报"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="flex">
|
|
|
<el-form-item
|
|
|
+ v-if="!user_form.latestResultPage"
|
|
|
label-width="120px"
|
|
|
:label="
|
|
|
user_form.showQrcode
|
|
@@ -488,10 +541,10 @@
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
- label-width="120px"
|
|
|
label="首页图片配置"
|
|
|
class="form-item-style item-margin-bottom special"
|
|
|
prop="homeImgUrl"
|
|
|
+ label-width="120px"
|
|
|
>
|
|
|
<el-upload
|
|
|
ref="upload"
|
|
@@ -510,16 +563,18 @@
|
|
|
>
|
|
|
<img
|
|
|
v-if="!user_form.homeImgUrl"
|
|
|
- src="../../assets/default-img-home.jpg"
|
|
|
class="upload-img3"
|
|
|
+ src="../../assets/default-img-home.jpg"
|
|
|
+ alt=""
|
|
|
>
|
|
|
- <div v-else class="upload-img3">
|
|
|
+ <div class="upload-img3" v-else>
|
|
|
<img :src="user_form.homeImgUrl">
|
|
|
- <span @click.stop="handleRemove('homeImgUrl')" class="del-img">x</span>
|
|
|
+ <span class="del-img" @click.stop="handleRemove('homeImgUrl')">x</span>
|
|
|
</div>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
+ <!--
|
|
|
<div v-if="false" class="flex">
|
|
|
<el-form-item
|
|
|
label-width="120px"
|
|
@@ -538,26 +593,24 @@
|
|
|
accept="image/png,image/gif,image/jpg,image/jpeg"
|
|
|
>
|
|
|
<img
|
|
|
+ v-if="user_form.screenShowPhotos.length < 1"
|
|
|
src="../../assets/default-img.png"
|
|
|
alt=""
|
|
|
- v-if="user_form.screenShowPhotos.length < 1"
|
|
|
class="upload-img"
|
|
|
- />
|
|
|
+ >
|
|
|
|
|
|
<div v-else class="upload-img">
|
|
|
- <img :src="user_form.screenShowPhotos[0].url" alt="" />
|
|
|
- <span @click.stop="handleRemove('')" class="del-img">x</span>
|
|
|
+ <img :src="user_form.screenShowPhotos[0].url" alt="">
|
|
|
+ <span class="del-img" @click.stop="handleRemove('')">x</span>
|
|
|
</div>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</el-form>
|
|
|
<div class="sure">
|
|
|
- <el-button plain type="primary" @click="getInfo(1)" class="reset"
|
|
|
- >重置</el-button
|
|
|
- >
|
|
|
- <el-button type="primary" @click="updateAdmin">更改配置</el-button>
|
|
|
+ <el-button class="reset" type="primary" plain @click="getInfo(1)">重置</el-button>
|
|
|
+ <el-button type="primary" :loading="submitLoading" @click="updateAdmin">更改配置</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -585,6 +638,11 @@ export default {
|
|
|
cardPhysics: 2,
|
|
|
clockWayPushUrl: null,
|
|
|
clockWayType: '0',
|
|
|
+ // 打卡方式-通用 [{"interfAddr":"三方接口地址","punchReportFields":"打卡上报字段, 多个逗号分割","zoneId":"所在区域ID"}]
|
|
|
+ clockWayPushInterfaceAddresses: [{
|
|
|
+ interfAddr: null,
|
|
|
+ zoneId: null
|
|
|
+ }],
|
|
|
openThirdLinkPlatform: false,
|
|
|
whiteVisitorType: ["1", "2"],
|
|
|
nucleicExpirationTime: null,
|
|
@@ -594,6 +652,7 @@ export default {
|
|
|
notAllowAgeStart: 0,
|
|
|
screenShowPhotos: [],
|
|
|
topTitle: null,
|
|
|
+ latestResultPage: false, // 设备结果页类型 false:老版 true:新版
|
|
|
interfaceAddresses: [{
|
|
|
interfAddr: null,
|
|
|
zoneId: null
|
|
@@ -617,23 +676,31 @@ export default {
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请输入单位名称",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
unitAddress: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请输入详细地址",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
topTitle: [
|
|
|
{
|
|
|
required: true,
|
|
|
message: "请输入",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
],
|
|
|
+ latestResultPage: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ type: 'boolean',
|
|
|
+ message: '请选择UI使用版本',
|
|
|
+ trigger: 'blur'
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
user_basic: [
|
|
|
{
|
|
@@ -686,7 +753,11 @@ export default {
|
|
|
// 弹框区域列表
|
|
|
platformAreaList: [],
|
|
|
// 选中的区域列表
|
|
|
- selectedPlatformAreaList: []
|
|
|
+ selectedPlatformAreaList: [],
|
|
|
+ // 打卡方式-通用 的区域选中列表
|
|
|
+ checkWayOfSelectedPlatformAreaList: [],
|
|
|
+ // 提交状态
|
|
|
+ submitLoading: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -708,6 +779,20 @@ export default {
|
|
|
this.selectedPlatformAreaList = []
|
|
|
this.getPlatformList(this.$store.getters.adminId)
|
|
|
}
|
|
|
+ if (this.user_form.clockWayPushInterfaceAddresses && this.user_form.clockWayPushInterfaceAddresses.length > 0) {
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses = this.user_form.clockWayPushInterfaceAddresses.map(item => {
|
|
|
+ return {
|
|
|
+ interfAddr: item.interfAddr,
|
|
|
+ zoneId: item.zoneId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses = []
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses.push({
|
|
|
+ interfAddr: null,
|
|
|
+ zoneId: null
|
|
|
+ })
|
|
|
+ }
|
|
|
if (!this.user_form.interfaceAddresses || this.user_form.interfaceAddresses.length <= 0) {
|
|
|
this.user_form.interfaceAddresses = []
|
|
|
this.user_form.interfaceAddresses.push({
|
|
@@ -726,6 +811,13 @@ export default {
|
|
|
id: 0,
|
|
|
name: '全部'
|
|
|
})
|
|
|
+ if (this.user_form.clockWayPushInterfaceAddresses && this.user_form.clockWayPushInterfaceAddresses.length > 0) {
|
|
|
+ for (let i = 0; i < this.user_form.clockWayPushInterfaceAddresses.length; i++) {
|
|
|
+ if (this.user_form.clockWayPushInterfaceAddresses[i].zoneId !== null) {
|
|
|
+ this.checkWayOfSelectedPlatformAreaList.push(this.user_form.clockWayPushInterfaceAddresses[i].zoneId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this.user_form.interfaceAddresses && this.user_form.interfaceAddresses.length > 0) {
|
|
|
for (let i = 0; i < this.user_form.interfaceAddresses.length; i++) {
|
|
|
if (this.user_form.interfaceAddresses[i].zoneId !== null) {
|
|
@@ -742,42 +834,94 @@ export default {
|
|
|
this.selectedPlatformAreaList.push(value)
|
|
|
}
|
|
|
},
|
|
|
+ checkWayOfAreaSelectChange(value, index) {
|
|
|
+ if (this.checkWayOfSelectedPlatformAreaList[index] !== null) {
|
|
|
+ this.checkWayOfSelectedPlatformAreaList[index] = value
|
|
|
+ } else {
|
|
|
+ this.checkWayOfSelectedPlatformAreaList.push(value)
|
|
|
+ }
|
|
|
+ },
|
|
|
removeInterfaceAddress(index, value) {
|
|
|
this.user_form.interfaceAddresses.splice(index, 1)
|
|
|
this.selectedPlatformAreaList = this.selectedPlatformAreaList.filter(function(item) {
|
|
|
return item !== value
|
|
|
})
|
|
|
},
|
|
|
+ removeCheckWayInterfaceAddress(index, value) {
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses.splice(index, 1)
|
|
|
+ this.checkWayOfSelectedPlatformAreaList = this.checkWayOfSelectedPlatformAreaList.filter(function(item) {
|
|
|
+ return item !== value
|
|
|
+ })
|
|
|
+ },
|
|
|
addInterfaceAddress() {
|
|
|
this.user_form.interfaceAddresses.push({
|
|
|
interfAddr: null,
|
|
|
zoneId: null
|
|
|
})
|
|
|
},
|
|
|
+ addCheckWayInterfaceAddress() {
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses.push({
|
|
|
+ interfAddr: null,
|
|
|
+ zoneId: null
|
|
|
+ })
|
|
|
+ },
|
|
|
// 修改
|
|
|
updateAdmin() {
|
|
|
- if (!this.user_form.homeImgUrl) {
|
|
|
- this.user_form.homeImgUrl =
|
|
|
- "https://tx.hz-hanghui.com:8088/yx-fyzd/file/icon/face.jpg"
|
|
|
- }
|
|
|
- if (!this.user_form.openThirdLinkPlatform) {
|
|
|
- this.user_form.interfaceAddresses = null
|
|
|
+ if (this.submitLoading) {
|
|
|
+ return
|
|
|
}
|
|
|
- if (this.user_form.interfaceAddresses && this.user_form.interfaceAddresses.length > 0) {
|
|
|
- this.user_form.interfaceAddresses = this.user_form.interfaceAddresses.filter(item => {
|
|
|
- return item.interfAddr !== null && item.zoneId !== null
|
|
|
- })
|
|
|
- if (this.user_form.interfaceAddresses.length <= 0) {
|
|
|
- this.user_form.interfaceAddresses = null
|
|
|
+ this.$refs['user_form'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.submitLoading = true
|
|
|
+ if (!this.user_form.homeImgUrl) {
|
|
|
+ this.user_form.homeImgUrl =
|
|
|
+ "https://tx.hz-hanghui.com:8088/yx-fyzd/file/icon/face.jpg"
|
|
|
+ }
|
|
|
+ if (!this.user_form.openThirdLinkPlatform) {
|
|
|
+ this.user_form.interfaceAddresses = null
|
|
|
+ }
|
|
|
+ if (this.user_form.interfaceAddresses && this.user_form.interfaceAddresses.length > 0) {
|
|
|
+ this.user_form.interfaceAddresses = this.user_form.interfaceAddresses.filter(item => {
|
|
|
+ return item.interfAddr !== null && item.zoneId !== null
|
|
|
+ })
|
|
|
+ if (this.user_form.interfaceAddresses.length <= 0) {
|
|
|
+ this.user_form.interfaceAddresses = null
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.user_form.clockWayPushInterfaceAddresses && this.user_form.clockWayPushInterfaceAddresses.length > 0) {
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses = this.user_form.clockWayPushInterfaceAddresses.filter(item => {
|
|
|
+ return item.interfAddr !== null && item.zoneId !== null
|
|
|
+ })
|
|
|
+ if (this.user_form.clockWayPushInterfaceAddresses.length <= 0) {
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses = null
|
|
|
+ } else {
|
|
|
+ this.user_form.clockWayPushInterfaceAddresses = this.user_form.clockWayPushInterfaceAddresses.map(item => {
|
|
|
+ return {
|
|
|
+ interfAddr: item.interfAddr,
|
|
|
+ zoneId: item.zoneId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.user_form.latestResultPage) {
|
|
|
+ this.user_form.mainLineLeft = null
|
|
|
+ this.user_form.subLineLeft = null
|
|
|
+ this.user_form.mainLineRight = null
|
|
|
+ this.user_form.subLineRight = null
|
|
|
+ this.user_form.showQrcode = false
|
|
|
+ this.user_form.qrcodeText = null
|
|
|
+ this.user_form.advertise = null
|
|
|
+ }
|
|
|
+ doEditSelf(this.user_form).then((res) => {
|
|
|
+ this.submitLoading = false
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "修改成功!"
|
|
|
+ })
|
|
|
+ this.getInfo()
|
|
|
+ })
|
|
|
}
|
|
|
- }
|
|
|
- doEditSelf(this.user_form).then((res) => {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "修改成功!",
|
|
|
- });
|
|
|
- this.getInfo();
|
|
|
- });
|
|
|
+ })
|
|
|
},
|
|
|
handleRemove(type) {
|
|
|
if (type) {
|
|
@@ -855,6 +999,23 @@ export default {
|
|
|
margin-right: 60px;
|
|
|
}
|
|
|
}
|
|
|
+.display-config-layout {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ padding: 0 5px;
|
|
|
+ & > div {
|
|
|
+ width: calc(50% - 30px);
|
|
|
+ flex: none;
|
|
|
+ margin-left: 0;
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+ & > div:nth-child(odd) {
|
|
|
+ margin-right: 60px;
|
|
|
+ }
|
|
|
+ ::v-deep .el-radio__input {
|
|
|
+ vertical-align: top;
|
|
|
+ }
|
|
|
+}
|
|
|
.sure {
|
|
|
margin-left: 520px;
|
|
|
margin-top: 37px;
|