Commit b6d76e37 authored by “yiyousong”'s avatar “yiyousong”

fix: 修改窗口绑定业务回填

parent 625295a4
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<script> <script>
import { getSiteBusinessList } from "@/services/business"; import { getSiteBusinessList } from "@/services/business";
import { addBusinessToWindow } from "@/services/dept"; import { addBusinessToWindow } from "@/services/dept";
import { extractTree } from "@/utils/util"; // import { extractTree } from "@/utils/util";
import local from "@/utils/local"; import local from "@/utils/local";
const columns = [ const columns = [
{ {
...@@ -137,12 +137,7 @@ export default { ...@@ -137,12 +137,7 @@ export default {
await this.getSiteBusinessList(); await this.getSiteBusinessList();
this.formData = info; this.formData = info;
if (info.businessIds.length) { if (info.businessIds.length) {
let arr = extractTree(this.siteBusinessList, "children").map((v) => this.rowKeys = info.businessIds;
Number(v.id)
);
this.rowKeys = arr.filter((v) => {
return info.businessIds.some((val) => v == val);
});
} else { } else {
this.rowKeys = []; this.rowKeys = [];
} }
......
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