shuishen
2024-01-02 86db13591a8adfb3d8f59c2a96fff9af3b793b11
修复二级标签显示异常的问题
2 files modified
26 ■■■■■ changed files
src/views/place/components/baseAllInfo.vue 11 ●●●●● patch | view | raw | blame | history
src/views/place/index.vue 15 ●●●●● patch | view | raw | blame | history
src/views/place/components/baseAllInfo.vue
@@ -455,13 +455,22 @@
                imageUrls = urls.join(",")
            }
            let label = this.form.label
            if (this.form.smallLabel != '') {
                label = label + ',' + this.form.smallLabel
            }
            delete this.form.smallLabel
            this.$refs.baseForm.validate((valid, done, msg) => {
                if (valid) {
                    that.$axios.all([
                        update({
                            // ...this.placeElement.curRow,
                            ...this.form,
                            imageUrls
                            imageUrls,
                            label
                        }),
                        updatePlaceExt(this.placeForm)
                    ]).then(that.$axios.spread(function () {
src/views/place/index.vue
@@ -437,7 +437,19 @@
                })
                row.imageUrls = urls.join(",")
            }
            update(row).then(
            let label = row.label
            if (row.smallLabel != '') {
                label = label + ',' + row.smallLabel
            }
            delete row.smallLabel
            update({
                ...row,
                label
            }).then(
                () => {
                    this.onLoad(this.page)
                    this.$message({
@@ -512,6 +524,7 @@
                    this.$refs.crud.toggleSelection()
                })
        },
        beforeOpen (done, type) {
            if (["edit", "view"].includes(type)) {
                getPlace(this.form.id).then((res) => {