|
@@ -5,7 +5,7 @@ import { maper } from "@/core/utils/utils"
|
|
|
import Rs from "@/core/services/RequestService"
|
|
import Rs from "@/core/services/RequestService"
|
|
|
import type { VbFormItem } from "@/components/Forms/models"
|
|
import type { VbFormItem } from "@/components/Forms/models"
|
|
|
import OrgSelectTree from "@/components/Tree/OrgSelectTree.vue"
|
|
import OrgSelectTree from "@/components/Tree/OrgSelectTree.vue"
|
|
|
-import AreaCascadeSelect from "@/components/select/AreaCascadeSelect.vue"
|
|
|
|
|
|
|
+import AreaCascade from "@/components/select/AreaCascade.vue"
|
|
|
import { ElInput } from "element-plus"
|
|
import { ElInput } from "element-plus"
|
|
|
import { RULE_KEYS } from "@/core/config/rules"
|
|
import { RULE_KEYS } from "@/core/config/rules"
|
|
|
import { ElSelect, ElRadioGroup, ElCheckboxGroup } from "element-plus"
|
|
import { ElSelect, ElRadioGroup, ElCheckboxGroup } from "element-plus"
|
|
@@ -39,13 +39,7 @@ const saveUrl = computed(() => {
|
|
|
? "sys/organizational/delById"
|
|
? "sys/organizational/delById"
|
|
|
: ""
|
|
: ""
|
|
|
})
|
|
})
|
|
|
-const areaData = ref([])
|
|
|
|
|
-function load() {
|
|
|
|
|
- Rs.get("sys/dict/getArea").then((res) => {
|
|
|
|
|
- areaData.value = res.data
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-load()
|
|
|
|
|
|
|
+
|
|
|
//只放增改传到后台的共用参数,其余需要modal显示的参数另外定义
|
|
//只放增改传到后台的共用参数,其余需要modal显示的参数另外定义
|
|
|
const emptyData = {
|
|
const emptyData = {
|
|
|
org_id: "",
|
|
org_id: "",
|
|
@@ -61,6 +55,7 @@ const emptyData = {
|
|
|
const formData = ref<any>(
|
|
const formData = ref<any>(
|
|
|
Object.assign({}, emptyData, { province_city_district: ["", "", ""], simple_name2: [], simple_name3: false })
|
|
Object.assign({}, emptyData, { province_city_district: ["", "", ""], simple_name2: [], simple_name3: false })
|
|
|
)
|
|
)
|
|
|
|
|
+
|
|
|
const items: Array<VbFormItem> = [
|
|
const items: Array<VbFormItem> = [
|
|
|
{
|
|
{
|
|
|
field: "parent_id",
|
|
field: "parent_id",
|
|
@@ -94,15 +89,9 @@ const items: Array<VbFormItem> = [
|
|
|
{
|
|
{
|
|
|
field: "province_city_district",
|
|
field: "province_city_district",
|
|
|
label: "省/市/区",
|
|
label: "省/市/区",
|
|
|
- component: AreaCascadeSelect,
|
|
|
|
|
|
|
+ class: "w-100",
|
|
|
|
|
+ component: AreaCascade,
|
|
|
listeners: { change: pcdChange },
|
|
listeners: { change: pcdChange },
|
|
|
- //component: ElCascader,
|
|
|
|
|
- // props: {
|
|
|
|
|
- // expandTrigger: "hover" as const,
|
|
|
|
|
- // clearable: true,
|
|
|
|
|
- // checkStrictly: true,
|
|
|
|
|
- // options: areaData.value,
|
|
|
|
|
- // },
|
|
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
field: "description",
|
|
field: "description",
|
|
@@ -181,7 +170,6 @@ function edit(row: any) {
|
|
|
formData.value = Object.assign({}, row)
|
|
formData.value = Object.assign({}, row)
|
|
|
modal.value.show()
|
|
modal.value.show()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
function deleteRow(row: any) {
|
|
function deleteRow(row: any) {
|
|
|
//console.log("DELETE_ROW", row)
|
|
//console.log("DELETE_ROW", row)
|
|
|
opreationType.value = "D"
|
|
opreationType.value = "D"
|