| | |
| | | <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>
|
| | |
| | | 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
|
| | | })
|
| | | }
|
| | |
| | |
|
| | | }
|
| | | }
|
| | | </script> |
| | | |
| | | <style> |
| | | page { |
| | | background: #F5F5F5; |
| | | } |
| | | </script>
|
| | |
|
| | | <style>
|
| | | page {
|
| | | background: #F5F5F5;
|
| | | }
|
| | | </style>
|
| | |
|
| | | <style scoped lang="scss">
|
| | |
| | | .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;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | }
|
| | |
|
| | | .edit-btn { |
| | | .edit-btn {
|
| | | width: calc(100% - 40rpx);
|
| | | padding: 0 20rpx;
|
| | | height: 116rpx;
|
| | |
| | | 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>
|