| | |
| | | <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>
|
| | |
| | | getLabelListByParentId
|
| | | } from "@/api/label/label.js";
|
| | | import {
|
| | | updateHouseLabel,
|
| | | removeHouseLabel
|
| | | } from "@/api/house/houseLabel.js";
|
| | | saveOrUpdateHouseholdLabel,
|
| | | removeHouseholdLabel
|
| | | } from "@/api/house/householdLabel.js";
|
| | | import {
|
| | | getHouseDetail,
|
| | | saveOrUpdateHouse
|
| | |
| | | propertyPrice,
|
| | | serviceDue,
|
| | | imageUrls,
|
| | | houseLabelVOList
|
| | | userHouseLabelVOList
|
| | | } = res.data
|
| | | if (imageUrls && imageUrls.length > 0) {
|
| | | const urls = imageUrls.split(',')
|
| | |
| | | })
|
| | | }
|
| | |
|
| | | 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
|
| | |
| | | labelId: id,
|
| | | houseCode: this.houseCode
|
| | | }
|
| | | res = await removeHouseLabel(data)
|
| | | res = await removeHouseholdLabel(data)
|
| | | } else {
|
| | | uni.showToast({
|
| | | title: "无可撤销项",
|
| | |
| | | return
|
| | | }
|
| | | } else {
|
| | | res = await updateHouseLabel({
|
| | | res = await saveOrUpdateHouseholdLabel({
|
| | | houseCode: this.houseCode,
|
| | | labelId: id,
|
| | | remark: this.remark,
|
| | | lableType: 2,
|
| | | color
|
| | | })
|
| | | }
|
| | |
| | | background-color: #ffffff;
|
| | | padding: 30rpx;
|
| | | margin-top: 20rpx; |
| | |
|
| | | /deep/ .u-upload__button { |
| | | border: 1rpx solid #EEEEEE; |
| | | background-color: #fff; |