Lou
2023-11-30 fdbeea6f950181bd09fd712889e6760733673e96
merge
3 files modified
60 ■■■■ changed files
pages/home/index.vue 2 ●●●●● patch | view | raw | blame | history
subPackage/house/member/householdLabel.vue 1 ●●●● patch | view | raw | blame | history
subPackage/house/roomControl/index.vue 57 ●●●● patch | view | raw | blame | history
pages/home/index.vue
@@ -141,8 +141,6 @@
    } from "@/common/setting"
    import noticeList from "@/components/noticeList/noticeList";
    import captionRow from "@/components/caption/caption.vue"
    import taskListVue from "../../subPackage/task/taskList.vue";
    export default {
        components: {
            noticeList,
subPackage/house/member/householdLabel.vue
@@ -234,6 +234,7 @@
                        householdId: this.householdInfo.id,
                        labelId: id,
                        remark: this.remark,
                        lableType: 1,
                        color,
                        houseCode: this.houseCode,
                        userId: this.householdInfo.associatedUserId
subPackage/house/roomControl/index.vue
@@ -30,17 +30,16 @@
                        <u-upload :fileList="form.images" :previewFullImage="uploadConfig.previewFullImage"
                            :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple"
                            :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture" @afterRead="afterReadImg"
                            @delete="deletePic" uploadIcon="/static/icon/upload.png" >
                            @delete="deletePic" uploadIcon="/static/icon/upload.png">
                        </u-upload>
                    </view>
                    <view class=" flex label-btn-box b-c-w">
                        <newBoxTitle title="房屋标签"></newBoxTitle>
                        <view class="list">
                            <view v-for="(item, index) in labelBtnList" :key="index">
                                <u-button size="mini" type="primary"
                                    :color="item.color"
                                    :style="{color: item.color && '#fff'}"
                                    :text="item.name" @click="showLabelPopup(item)"></u-button>
                                <u-button size="mini" type="primary" :color="item.color"
                                    :style="{color: item.color && '#fff'}" :text="item.name"
                                    @click="showLabelPopup(item)"></u-button>
                            </view>
                        </view>
                    </view>
@@ -86,9 +85,9 @@
        getLabelListByParentId
    } from "@/api/label/label.js";
    import {
        updateHouseLabel,
        removeHouseLabel
    } from "@/api/house/houseLabel.js";
        saveOrUpdateHouseholdLabel,
        removeHouseholdLabel
    } from "@/api/house/householdLabel.js";
    import {
        getHouseDetail,
        saveOrUpdateHouse
@@ -221,7 +220,7 @@
                        propertyPrice,
                        serviceDue,
                        imageUrls,
                        houseLabelVOList
                        userHouseLabelVOList
                    } = res.data
                    if (imageUrls && imageUrls.length > 0) {
                        const urls = imageUrls.split(',')
@@ -234,9 +233,9 @@
                        })
                    }
                    if (houseLabelVOList.length > 0) {
                    if (userHouseLabelVOList.length > 0) {
                        that.labelBtnList.forEach(e => {
                            houseLabelVOList.forEach(f => {
                            userHouseLabelVOList.forEach(f => {
                                if (Number(e.id) == f.labelId) {
                                    e['color'] = f.color
                                    e['remark'] = f.remark
@@ -339,7 +338,7 @@
                            labelId: id,
                            houseCode: this.houseCode
                        }
                        res = await removeHouseLabel(data)
                        res = await removeHouseholdLabel(data)
                    } else {
                        uni.showToast({
                            title: "无可撤销项",
@@ -349,10 +348,11 @@
                        return
                    }
                } else {
                    res = await updateHouseLabel({
                    res = await saveOrUpdateHouseholdLabel({
                        houseCode: this.houseCode,
                        labelId: id,
                        remark: this.remark,
                        lableType: 2,
                        color
                    })
                }
@@ -374,12 +374,12 @@
        }
    }
</script>
<style>
    page {
        background: #F5F5F5;
    }
</script>
<style>
    page {
        background: #F5F5F5;
    }
</style>
<style scoped lang="scss">
@@ -428,10 +428,11 @@
                .pic {
                    background-color: #ffffff;
                    padding: 30rpx;
                    margin-top: 20rpx;
                    /deep/ .u-upload__button {
                        border: 1rpx solid #EEEEEE;
                        background-color: #fff;
                    margin-top: 20rpx;
                    /deep/ .u-upload__button {
                        border: 1rpx solid #EEEEEE;
                        background-color: #fff;
                    }
                }
@@ -466,7 +467,7 @@
            }
            .edit-btn {
            .edit-btn {
                width: calc(100% - 40rpx);
                padding: 0 20rpx;
                height: 116rpx;
@@ -474,11 +475,11 @@
                justify-content: space-around;
                align-items: center;
                background: #fff;
                box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
                position: fixed;
                bottom: 0;
                box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
                position: fixed;
                bottom: 0;
                left: 0;
            }
        }
    }
</style>
</style>