|
@@ -205,7 +205,7 @@ import moment from "moment";
|
|
|
import Org from "@/components/org";
|
|
|
import Company from "@/components/company";
|
|
|
import { mapGetters } from "vuex";
|
|
|
-import SearchTree from "@/pages/common/search-tree";
|
|
|
+import SearchTree from "@/pages/common/tree";
|
|
|
export default {
|
|
|
name: "register-dialog",
|
|
|
components: { Org, Company },
|
|
@@ -359,16 +359,20 @@ export default {
|
|
|
// 打开选择建设单位的弹窗
|
|
|
openSearchTree() {
|
|
|
const that = this;
|
|
|
- const layer = that.$dgLayer({
|
|
|
+ const layer = this.$dgLayer({
|
|
|
title: "选择",
|
|
|
shade: [0.4, "#FFF"],
|
|
|
area: ["500px", "600px"],
|
|
|
content: SearchTree,
|
|
|
- props: {},
|
|
|
+ props: {
|
|
|
+ search: true,
|
|
|
+ expandOnClickNode: false,
|
|
|
+ treeHeight: "auto"
|
|
|
+ },
|
|
|
on: {
|
|
|
- success(checkItem) {
|
|
|
+ handleGetNode(checkItem) {
|
|
|
layer.close(layer.dialogIndex);
|
|
|
- that.$set(that.sizeForm, "orgName", checkItem.name);
|
|
|
+ that.$set(that.sizeForm, "orgName", checkItem.name || checkItem.fullName);
|
|
|
that.$set(that.sizeForm, "orgId", checkItem.id);
|
|
|
}
|
|
|
}
|