Commit 62b8c970 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 1328fe99 625295a4
...@@ -181,7 +181,6 @@ export default { ...@@ -181,7 +181,6 @@ export default {
// 确定 // 确定
handleOk() { handleOk() {
this.$refs.formData.validate(async (valid) => { this.$refs.formData.validate(async (valid) => {
console.log(this.form.parentId);
if (valid) { if (valid) {
this.confirmLoading = true; this.confirmLoading = true;
let res = await saveBusiness({ let res = await saveBusiness({
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
}" }"
:columns="columns" :columns="columns"
:data-source="siteBusinessList" :data-source="siteBusinessList"
:rowKey="(record) => record.id" :rowKey="(record) => record.businessId"
:row-selection="{ :row-selection="{
selectedRowKeys: rowKeys, selectedRowKeys: rowKeys,
onChange: handleChange, onChange: handleChange,
...@@ -193,17 +193,17 @@ export default { ...@@ -193,17 +193,17 @@ export default {
onSelectRow(record, selected) { onSelectRow(record, selected) {
if (selected && record.children && record.children.length) { if (selected && record.children && record.children.length) {
record.children.forEach((v) => { record.children.forEach((v) => {
this.rowKeys = [...new Set([...this.rowKeys, v.id])]; this.rowKeys = [...new Set([...this.rowKeys, v.businessId])];
}); });
} else if (!selected && record.children && record.children.length) { } else if (!selected && record.children && record.children.length) {
this.rowKeys = this.rowKeys.filter((v) => v != record.id); this.rowKeys = this.rowKeys.filter((v) => v != record.businessId);
record.children.forEach((v) => { record.children.forEach((v) => {
this.rowKeys = this.rowKeys.filter((val) => val != v.id); this.rowKeys = this.rowKeys.filter((val) => val != v.businessId);
}); });
} else if (selected && record.parentId) { } else if (selected && record.parentId) {
this.rowKeys = [...new Set([...this.rowKeys, record.parentId])]; this.rowKeys = [...new Set([...this.rowKeys, record.parentId])];
} else if (!selected) { } else if (!selected) {
this.rowKeys = this.rowKeys.filter((v) => v != record.id); this.rowKeys = this.rowKeys.filter((v) => v != record.businessId);
} }
}, },
// 保存窗口关联业务 // 保存窗口关联业务
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment