master
xy 12 months ago
parent 02815ddfe8
commit e581cf91df

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

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

@ -134,6 +134,7 @@
formLabelWidth: "120px", formLabelWidth: "120px",
userNameStatus: true, userNameStatus: true,
form: { form: {
id: "",
name: "", name: "",
username: "", username: "",
password: "", password: "",
@ -263,9 +264,13 @@
edit(obj) { edit(obj) {
this.form = this.$options.data().form this.form = this.$options.data().form
if (obj) { if (obj) {
var result = Object.assign(this.form, obj);
this.userNameStatus = false; 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 { } else {
this.userNameStatus = true; this.userNameStatus = true;
} }

Loading…
Cancel
Save