zhongrj
2024-03-21 c10b20734f46cc9715ee59611f36b7055e79c8b7
src/views/property/propertyCharge.vue
@@ -151,7 +151,19 @@
                            trigger: ["blur", "change"]
                        },],
                    },
                    {
                        label: "时间",
                        labelWidth: labelWidth,
                        placeholder: "时间",
                        prop: "createTime",
                        addDisplay: false,
                        editDisplay: false,
                        rules: [{
                            required: true,
                            message: "请选择缴费周期",
                            trigger: ["blur", "change"]
                        },],
                    },
                ],
            },
            data: [],
@@ -282,13 +294,13 @@
        // },
        beforeOpen (done, type) {
            if (["edit", "view"].includes(type)) {
                getDetail(this.form.id).then((res) => {
                    this.form = res.data.data
                    const column = this.findObject(this.option.column, "principalId")
                    let arr = []
                    arr.push(this.form.areaId)
                    column.defaultExpandedKeys = arr
                })
                // getDetail(this.form.id).then((res) => {
                //     this.form = res.data.data
                //     const column = this.findObject(this.option.column, "principalId")
                //     let arr = []
                //     arr.push(this.form.areaId)
                //     column.defaultExpandedKeys = arr
                // })
            }
            // //如果当前角色为物业管理员,则默认物业公司为该用户的物业公司