lin
2024-05-06 2a61dad694bad8ddcea768ac973cc0c2339a54cc
Merge remote-tracking branch 'origin/master'
12 files modified
93 ■■■■ changed files
src/api/userHouse/list/userHouseList.js 7 ●●●●● patch | view | raw | blame | history
src/styles/avue-ui.scss 2 ●●● patch | view | raw | blame | history
src/util/util.js 16 ●●●●● patch | view | raw | blame | history
src/views/district/index.vue 2 ●●● patch | view | raw | blame | history
src/views/grid/index.vue 2 ●●● patch | view | raw | blame | history
src/views/place/components/baseAllInfo.vue 2 ●●● patch | view | raw | blame | history
src/views/place/index.vue 2 ●●● patch | view | raw | blame | history
src/views/place/mallList.vue 4 ●●● patch | view | raw | blame | history
src/views/propertySupervision/houseHoldSupervision.vue 2 ●●● patch | view | raw | blame | history
src/views/propertySupervision/residentSupervision.vue 8 ●●●● patch | view | raw | blame | history
src/views/userHouse/houseHoldList.vue 2 ●●● patch | view | raw | blame | history
src/views/userHouse/houseList.vue 44 ●●●● patch | view | raw | blame | history
src/api/userHouse/list/userHouseList.js
@@ -70,6 +70,13 @@
    }
  })
}
export const saveOrUpdateHouseLabelInfo = (row) => {
  return request({
    url: '/api/blade-householdLabel/householdLabel/saveOrUpdateHouseLabel',
    method: 'post',
    data: row
  })
}
export const saveOrUpdateHouseholdLabel = (row) => {
  return request({
    url: '/api/blade-householdLabel/householdLabel/saveOrUpdateHouseholdLabel',
src/styles/avue-ui.scss
@@ -67,7 +67,7 @@
    .echarts-cell {
      //   margin: 0 5px;
      height: 300px;
      width: calc(33.3% - 10px);
      width: calc(25% - 10px);
      display: flex;
      flex-direction: column;
      background: #fff;
src/util/util.js
@@ -473,3 +473,19 @@
    }
  }
};
//转换房屋标签颜色
export const setHouseLabelColor = (color) => {
  let obj = {
    blue: "#4397F7",
    yellow: "#FFB42B",
    green: "#30D17C",
  };
  for (let i in obj) {
    if (color == i) {
      return obj[i];
    }
  }
};
src/views/district/index.vue
@@ -90,7 +90,7 @@
                        searchSpan: 4,
                        searchType: 'input',
                        type: "tree",
                        dicUrl: "/api/blade-system/region/tree",
                        dicUrl: "/api/blade-system/region/treeToCommunity",
                        props: {
                            label: "name",
                            value: "id"
src/views/grid/index.vue
@@ -96,7 +96,7 @@
              prop: "communityCode",
              search: false,
              type: "tree",
              dicUrl: "/api/blade-system/region/tree",
              dicUrl: "/api/blade-system/region/treeToCommunity",
              row: true,
              // cascader: ['principal'],
              props: {
src/views/place/components/baseAllInfo.vue
@@ -146,7 +146,7 @@
              prop: "neiCode",
              search: false,
              type: "tree",
              dicUrl: "/api/blade-system/region/tree",
              dicUrl: "/api/blade-system/region/treeToCommunity",
              props: {
                label: "name",
                value: "id",
src/views/place/index.vue
@@ -225,7 +225,7 @@
                        search: false,
                        width: 150,
                        type: "tree",
                        dicUrl: "/api/blade-system/region/tree",
                        dicUrl: "/api/blade-system/region/treeToCommunity",
                        props: {
                            label: "name",
                            value: "id",
src/views/place/mallList.vue
@@ -225,7 +225,7 @@
                        search: false,
                        width: 150,
                        type: "tree",
                        dicUrl: "/api/blade-system/region/tree",
                        dicUrl: "/api/blade-system/region/treeToCommunity",
                        props: {
                            label: "name",
                            value: "id",
@@ -684,6 +684,8 @@
        },
        rowSave(row, done, loading) {
            // 商超
            row['source'] = 3
            if (row.imageUrls.length > 0) {
                var urls = []
                var split = row.imageUrls.split(",").filter(item => item != '')
src/views/propertySupervision/houseHoldSupervision.vue
@@ -214,7 +214,7 @@
          searchMenuSpan: 3,
          menuWidth: 350,
          menu: false,
          height: 'auto',
          height: '320',
          calcHeight: 80,
          tip: false,
          border: true,
src/views/propertySupervision/residentSupervision.vue
@@ -200,11 +200,10 @@
            option: {
                labelWidth: 144,
                searchLabelWidth: 96,
                searchShow: true,
                searchMenuSpan: 3,
                menuWidth: 280,
                // searchShow: true,
                searchMenuSpan: 6,
                menu: false,
                height: 'auto',
                height: '280',
                calcHeight: 80,
                tip: false,
                border: true,
@@ -221,6 +220,7 @@
                    width: 110,
                    label: "姓名",
                    prop: "name",
                    searchLabelWidth: 48,
                    searchSpan: 3,
                    searchLabelWidth: 50,
                    search: true,
src/views/userHouse/houseHoldList.vue
@@ -874,7 +874,7 @@
  mounted() { },
  methods: {
    onsubmit() {
      if (this.labelForm.color === '#EBEDF0') {
      if (this.labelForm.color === '#999') {
        let params = {
          householdId: this.currentRow.id,
          labelId: this.currentLabel.id,
src/views/userHouse/houseList.vue
@@ -32,8 +32,8 @@
                        <el-button :size="size" type="text" icon="el-icon-circle-plus-outline"
                            v-if="permission.house_manager" @click="handleHouseholdManager(row)">住户管理
                        </el-button>
                        <el-button :size="size" type="text" icon="el-icon-circle-plus-outline" v-if="permission.house_tag"
                            @click="manageLabel(row)">标签
                        <el-button :size="size" type="text" icon="el-icon-circle-plus-outline"
                            v-if="permission.house_tag" @click="manageLabel(row)">标签
                        </el-button>
                    </template>
@@ -101,7 +101,7 @@
</template>
 
<script>
import { setLabelColor } from '@/util/util'
import { setHouseLabelColor } from '@/util/util'
import {
    getList,
@@ -113,7 +113,7 @@
} from "@/api/userHouse/list/house.js"
import {
    removeHouseholdLabel,
    saveOrUpdateHouseholdLabel
    saveOrUpdateHouseLabelInfo
} from "@/api/userHouse/list/userHouseList.js"
import {
    getLabelList,
@@ -328,7 +328,7 @@
                        prop: "neiCode",
                        search: false,
                        type: "tree",
                        dicUrl: "/api/blade-system/region/tree",
                        dicUrl: "/api/blade-system/region/treeToCommunity",
                        props: {
                            label: "name",
                            value: "id",
@@ -570,7 +570,7 @@
        getColor () {
            return (data) => {
                return setLabelColor(data)
                return setHouseLabelColor(data)
            }
        }
    },
@@ -587,7 +587,7 @@
        },
        onsubmit () {
            if (this.labelForm.color === '#EBEDF0') {
            if (this.labelForm.color === '#999') {
                let params = {
                    householdId: this.currentRow.id,
                    labelId: this.currentLabel.id
@@ -606,7 +606,7 @@
                this.labelForm.householdId = this.currentRow.id
                this.labelForm.labelId = this.currentLabel.id
                this.labelForm.lableType = 2
                saveOrUpdateHouseholdLabel(this.labelForm).then(res => {
                saveOrUpdateHouseLabelInfo(this.labelForm).then(res => {
                    this.$message({
                        type: "success",
                        message: "操作成功!"
@@ -619,10 +619,32 @@
        },
        changLabel (item) {
            this.editLabelFlge = true
            // this.editLabelFlge = true
            this.currentLabel = item
            this.labelForm.color = item.color
            this.labelForm.remark = item.remark
            // this.labelForm.color = item.color
            // this.labelForm.remark = item.remark
            // console.log(item,9999)
            if(item.name == '闲置'){
                this.labelForm.color = 'green'
            }
            if(item.name == '自住'){
                this.labelForm.color = 'blue'
            }
            if(item.name == '出租'){
                this.labelForm.color = 'yellow'
            }
            this.labelForm.houseCode = this.currentRow.houseCode
            this.labelForm.labelId = this.currentLabel.id
            this.labelForm.lableType = 2
            saveOrUpdateHouseLabelInfo(this.labelForm).then(res => {
                this.$message({
                    type: "success",
                    message: "操作成功!"
                })
                // this.editLabelFlge = false
                this.manageLabel(this.currentRow)
                this.loading = false
            })
        },
        manageLabel (item) {
            this.loading = true