This commit is contained in:
shijingjing
2022-04-29 11:53:01 +08:00
parent 6361ad5a5d
commit 4e56f446b6
2 changed files with 4 additions and 6 deletions

View File

@@ -178,7 +178,7 @@
</div>
</div>
<div class="upload">
<AiUploader :def.sync="photo" multiple placeholder="上传图片" :limit="1" action="/admin/file/add2" :disabled="id"></AiUploader>
<AiUploader :def.sync="photo" multiple placeholder="上传图片" :limit="1" action="/admin/file/add2" :disabled="id != ''"></AiUploader>
</div>
</div>
@@ -574,8 +574,7 @@ export default {
userList:{
handler: function (newValue,oldValue) {
this.isEdit = true;
this.form.name =newValue[0].name
this.form.idNumber = newValue[0].idNumber
this.form = newValue[0];
this.form.sex = this.form.idNumber.substr(16, 1) % 2 == 0 ? '1' : '0'
},
deep: true,
@@ -604,13 +603,12 @@ export default {
} else if (!query.id) {
this.form.currentAreaId = this.user.areaId
}
// else if (query.id && isAdd)
})
console.log(this.helthList);
},
onShow() {
document.title = this.id ? '编辑监测对象' : '添加监测对象'
console.log(this.userList);
},
methods: {

View File

@@ -104,7 +104,7 @@ export default {
if (res.code === 0) {
this.info = res.data
if(res.data.family && res.data.family.length) {
console.log(res.data.family);
// console.log(res.data.family);
this.list = res.data.family.map(item => {
return {
...item,