master
xy 10 months ago
parent 02815ddfe8
commit e581cf91df

@ -49,7 +49,7 @@ export default {
]),
carousel: 'single',
rowNum: 10,
oddRowBGC: '#4fa497',
oddRowBGC: '#529f9bca',
evenRowBGC: 'transparent',
headerBGC: 'transparent',
header: ['公司','土地','土地面积','房产','房产面积'],

@ -348,6 +348,7 @@ export default {
}
& > input {
cursor: pointer;
z-index: 10;
opacity: 0;
position: absolute;
top: 0;

@ -134,6 +134,7 @@
formLabelWidth: "120px",
userNameStatus: true,
form: {
id: "",
name: "",
username: "",
password: "",
@ -263,9 +264,13 @@
edit(obj) {
this.form = this.$options.data().form
if (obj) {
var result = Object.assign(this.form, obj);
this.userNameStatus = false;
this.form = result;
for (let key in this.form) {
if (obj.hasOwnProperty(key)) {
this.form[key] = obj[key]
}
}
console.log(this.form)
} else {
this.userNameStatus = true;
}

Loading…
Cancel
Save