zrj
2024-06-07 fa0fc3195858a592d2ad1bdad0fa6126602ebf55
src/views/system/dept.vue
@@ -36,7 +36,7 @@
    add,
    getDept,
    getDeptTree
} from "@/api/system/dept"
} from "@/ssoapi/system/dept"
import { mapGetters } from "vuex"
import website from '@/config/website'
@@ -82,7 +82,7 @@
                        label: "所属租户",
                        prop: "tenantId",
                        type: "tree",
                        dicUrl: "/api/blade-system/tenant/select",
                        dicUrl: "/ssoapi/blade-system/tenant/select",
                        addDisplay: false,
                        editDisplay: false,
                        viewDisplay: false,
@@ -130,7 +130,7 @@
                    {
                        label: "机构类型",
                        type: "select",
                        dicUrl: "/api/blade-system/dict/dictionary?code=org_category",
                        dicUrl: "/ssoapi/blade-system/dict/dictionary?code=org_category",
                        props: {
                            label: "dictValue",
                            value: "dictKey"
@@ -146,14 +146,34 @@
                        }]
                    },
                    {
                        label: "机构性质",
                        type: "select",
                        dicUrl: "/ssoapi/blade-system/dict/dictionary?code=org_nature",
                        props: {
                            label: "dictValue",
                            value: "dictKey"
                        },
                        hide:true,
                        dataType: "number",
                        prop: "deptNature",
                        cascader: ["regionCode"],
                        slot: true,
                        rules: [{
                            required: true,
                            message: "请输入机构性质",
                            trigger: "blur"
                        }]
                    },
                    {
                        label: "管辖区域",
                        prop: "regionCode",
                        type: "tree",
                        dicUrl: "/api/blade-system/region/tree?cityCode=361100",
                        dicUrl: "/ssoapi/blade-system/region/tree?deptNature={{deptNature}}",
                        props: {
                            label: "name",
                            value: "id",
                        },
                        hide:true,
                        defaultExpandedKeys: ["361102003"],
                        rules: [{
                            required: false,