|
|
|
@ -548,7 +548,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
["select"]: (_) => {
|
|
|
|
["select"]: (selection, row) => {
|
|
|
|
if (selection.find(i => i.id === row.id)) {
|
|
|
|
if (selection.find(i => i.id === row.id)) {
|
|
|
|
this.nowAssets.push({
|
|
|
|
this.nowAssets.push({
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
@ -733,7 +733,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
["select"]: (_) => {
|
|
|
|
["select"]: (selection, row) => {
|
|
|
|
if (selection.find(i => i.id === row.id)) {
|
|
|
|
if (selection.find(i => i.id === row.id)) {
|
|
|
|
this.nowAssets.push({
|
|
|
|
this.nowAssets.push({
|
|
|
|
id: row.id,
|
|
|
|
id: row.id,
|
|
|
|
@ -951,7 +951,7 @@ export default {
|
|
|
|
content: `${this.type === "add" ? "新增" : "编辑"}成功`,
|
|
|
|
content: `${this.type === "add" ? "新增" : "编辑"}成功`,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.$emit("refresh");
|
|
|
|
this.$emit("refresh");
|
|
|
|
this.$router.back();
|
|
|
|
this.$router.push("/lease");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -990,17 +990,11 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.columns = newVal.length > 11 ? "2" : "1";
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//immediate: true,
|
|
|
|
//immediate: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dialogVisible(val) {
|
|
|
|
dialogVisible(val) {
|
|
|
|
if (val) {
|
|
|
|
if (val) {
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
|
|
|
"--column-num",
|
|
|
|
|
|
|
|
this.columns
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
if (this.type === "editor" || this.type === "change") {
|
|
|
|
if (this.type === "editor" || this.type === "change") {
|
|
|
|
this.$nextTick(() => this.getDetail());
|
|
|
|
this.$nextTick(() => this.getDetail());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1096,7 +1090,7 @@ export default {
|
|
|
|
.form-body {
|
|
|
|
.form-body {
|
|
|
|
display: grid;
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 10px;
|
|
|
|
grid-gap: 10px;
|
|
|
|
grid-template-columns: repeat(var(--column-num), 1fr);
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
::v-deep .el-input-number input {
|
|
|
|
::v-deep .el-input-number input {
|
|
|
|
text-align: right;
|
|
|
|
text-align: right;
|
|
|
|
|