zhongrj
2024-01-29 5c17ea827a55299613e603ac5a2d13b533bd038b
src/views/place/index.vue
@@ -339,7 +339,6 @@
                        label: "九小场所",
                        prop: "isNine",
                        type: "select",
                        row: true,
                        dicData: [
                            {
                                label: "是",
@@ -351,6 +350,53 @@
                            }
                        ],
                        hide: true,
                    },
                    {
                        span: 12,
                        label: "九小分类",
                        prop: "nineType",
                        type: "select",
                        display:false,
                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=nineType",
                        dataType: "number",
                        hide: true,
                        props: {
                            label: "dictValue",
                            value: "dictKey",
                        },
                    },
                    {
                        span: 12,
                        label: "是否阵地",
                        prop: "isFront",
                        type: "select",
                        display:false,
                        dicData: [
                            {
                                label: "是",
                                value: 1,
                            },
                            {
                                label: "否",
                                value: 2,
                            }
                        ],
                        hide: true,
                    },
                    {
                        span: 12,
                        label: "阵地分类",
                        prop: "frontType",
                        type: "select",
                        display:false,
                        row: true,
                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=frontType",
                        dataType: "number",
                        hide: true,
                        props: {
                            label: "dictValue",
                            value: "dictKey",
                        },
                    },
                    {
@@ -449,7 +495,71 @@
    components: { auditBase, baseAllInfo },
    watch: {},
    watch: {
        'form.isNine': {
            handler(newData) {
                if (newData) {
                    let nineTypeColumn = this.findObject(
                        this.option.column,
                        'nineType'
                    )
                    let isFrontColumn = this.findObject(
                        this.option.column,
                        'isFront'
                    )
                    let frontTypeColumn = this.findObject(
                        this.option.column,
                        'frontType'
                    )
                    if (newData == 1) {
                        nineTypeColumn.display = true
                    } else {
                        nineTypeColumn.display = false
                        isFrontColumn.display = false
                        frontTypeColumn.display = false
                    }
                }
            },
        },
        'form.nineType': {
            handler(newData) {
                if (newData) {
                    let isFrontColumn = this.findObject(
                        this.option.column,
                        'isFront'
                    )
                    let frontTypeColumn = this.findObject(
                        this.option.column,
                        'frontType'
                    )
                    if (newData == 1) {
                        isFrontColumn.display = true
                    } else {
                        isFrontColumn.display = false
                        frontTypeColumn.display = false
                    }
                }
            },
        },
        'form.isFront': {
            handler(newData) {
                if (newData) {
                    let frontTypeColumn = this.findObject(
                        this.option.column,
                        'frontType'
                    )
                    if (newData == 1) {
                        frontTypeColumn.display = true
                    } else {
                        frontTypeColumn.display = false
                    }
                }
            },
        },
    },
    computed: {
        ...mapGetters(["permission", "userInfo"]),