社区管理
This commit is contained in:
@@ -12,11 +12,11 @@
|
||||
<p><img src="./components/img/org-icon.png" alt=""><span class="start-name">{{info.startAreaName}}</span></p>
|
||||
<p><img src="./components/img/blue-icon.png" alt=""><span class="start-name">{{info.arriveAreaName}}</span></p>
|
||||
<p><img src="./components/img/time-icon.png" alt="">{{info.arriveTime}}</p>
|
||||
<p><img src="./components/img/point-icon.png" alt="">{{info.gatewayName}}</p>
|
||||
<p v-if="info.gatewayName"><img src="./components/img/point-icon.png" alt="">{{info.gatewayName}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="title">基本信息</div>
|
||||
<div class="title">基本信息<span @click="changeIdNumber" style="color:#4181FF;">{{ isIdNumberInput ? '保存' : '编辑' }}</span></div>
|
||||
<div class="item-flex">
|
||||
<div class="label">姓名</div>
|
||||
<div class="value">{{info.name}}</div>
|
||||
@@ -24,7 +24,8 @@
|
||||
<div class="item-flex">
|
||||
<div class="label">身份证号</div>
|
||||
<div class="value">
|
||||
<span>{{info.idNumberText}}</span>
|
||||
<u-input v-if="isIdNumberInput" type="number" input-align="right" height="32" maxlength="18" v-model="info.idNumber" :custom-style="{'font-size': '17px'}" />
|
||||
<span v-else>{{info.idNumberText}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-flex">
|
||||
@@ -288,7 +289,8 @@ export default {
|
||||
'font-weight' : '400',
|
||||
},
|
||||
currentTabs: 0,
|
||||
info: {}
|
||||
info: {},
|
||||
isIdNumberInput: false, //true保存 false编辑
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -306,6 +308,29 @@ export default {
|
||||
document.title = '排查管理'
|
||||
},
|
||||
methods: {
|
||||
changeIdNumber() {
|
||||
this.isIdNumberInput = !this.isIdNumberInput
|
||||
if(!this.isIdNumberInput) {
|
||||
this.changeIdNumberConfirm()
|
||||
}
|
||||
},
|
||||
changeIdNumberConfirm() {
|
||||
if (!this.info.idNumber) {
|
||||
return this.$toast('请输入身份证号')
|
||||
}
|
||||
if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.info.idNumber)) {
|
||||
return this.$toast('请输入正确的身份证账号')
|
||||
}
|
||||
this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.info).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('保存成功')
|
||||
uni.$emit('updateList')
|
||||
this.getDetail()
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.$u.toast(err)
|
||||
})
|
||||
},
|
||||
change(index) {
|
||||
this.currentTabs = index
|
||||
},
|
||||
@@ -316,7 +341,7 @@ export default {
|
||||
if(!this.form.quarantineBeginTime) {
|
||||
return this.$u.toast('请选择隔离时间')
|
||||
}
|
||||
if(this.form.quarantineStrategy === '') {
|
||||
if(this.form.quarantineStrategy === '' || this.form.quarantineStrategy === null) {
|
||||
return this.$u.toast('请选择隔离策略')
|
||||
}
|
||||
if(!this.form.controllerUserName) {
|
||||
|
||||
Reference in New Issue
Block a user