bug
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user