From f0e42f85846f06065f1e63a6ee9cac0b4d87cbb6 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 15 Dec 2023 17:59:25 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web

---
 src/views/article/article.vue           |  183 --
 src/views/property/inviteTenders.vue    |  763 +++++++++++++
 src/views/property/oiae.vue             |  762 +++++++++++++
 vue.config.js                           |    4 
 src/api/userHouse/list/houseHold.js     |   11 
 src/views/userHouse/houseList.vue       |  869 +++++++++------
 src/api/userHouse/list/userHouseList.js |   14 
 src/views/task/eCall/index.vue          |  505 ++++----
 src/api/userHouse/list/house.js         |   10 
 src/views/place/index.vue               |    8 
 src/views/userHouse/houseHoldList.vue   |  142 +
 11 files changed, 2,456 insertions(+), 815 deletions(-)

diff --git a/src/api/userHouse/list/house.js b/src/api/userHouse/list/house.js
index 5cb8da4..d040707 100644
--- a/src/api/userHouse/list/house.js
+++ b/src/api/userHouse/list/house.js
@@ -58,6 +58,14 @@
   })
 }
 
+export const getDetatils = (params) => {
+  return request({
+    url: '/api/blade-house/house/getHouseDetail',
+    method: 'get',
+    params: params
+  })
+}
+
 export const saveOrUpdateHouseLabel = (ids, type) => {
   return request({
     url: '/api/blade-house/house/saveOrUpdateHouseLabel',
@@ -67,4 +75,4 @@
       type
     }
   })
-}
+}
\ No newline at end of file
diff --git a/src/api/userHouse/list/houseHold.js b/src/api/userHouse/list/houseHold.js
index fa49f8c..4f6e6be 100644
--- a/src/api/userHouse/list/houseHold.js
+++ b/src/api/userHouse/list/houseHold.js
@@ -59,6 +59,15 @@
     }
   })
 }
+export const getDetatils = (id) => {
+  return request({
+    url: '/api/blade-household/household/getDetail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
 
 export const saveOrUpdateHouseLabel = (ids, type) => {
   return request({
@@ -69,4 +78,4 @@
       type
     }
   })
-}
+}
\ No newline at end of file
diff --git a/src/api/userHouse/list/userHouseList.js b/src/api/userHouse/list/userHouseList.js
index 21f2a3e..36abaf5 100644
--- a/src/api/userHouse/list/userHouseList.js
+++ b/src/api/userHouse/list/userHouseList.js
@@ -70,3 +70,17 @@
     }
   })
 }
+export const saveOrUpdateHouseholdLabel = (row) => {
+  return request({
+    url: '/api/blade-householdLabel/householdLabel/saveOrUpdateHouseholdLabel',
+    method: 'post',
+    data: row
+  })
+}
+export const removeHouseholdLabel = (row) => {
+  return request({
+    url: '/api/blade-householdLabel/householdLabel/removeHouseholdLabel',
+    method: 'post',
+    data: row
+  })
+}
\ No newline at end of file
diff --git a/src/views/article/article.vue b/src/views/article/article.vue
index 57871a4..abbdc13 100644
--- a/src/views/article/article.vue
+++ b/src/views/article/article.vue
@@ -49,7 +49,7 @@
       <span slot="title" class="dialog-footer">
         {{discussForm.ontitle}}
       </span>
-      <div id="" v-if="discussForm.eventType == 2">
+      <div id="" v-if="discussForm.eventType == 1">
         <avue-form @submit="handleSubmit" :option="optionDiscuss" v-model="discussForm"></avue-form>
       </div>
 
@@ -59,15 +59,6 @@
       </div>
     </el-dialog>
 
-    <!-- <el-dialog title="用户数据导入" append-to-body :visible.sync="dialogVisibles" width="555px">
-      <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
-        <template slot="excelTemplate">
-          <el-button type="primary" @click="handleTemplate">
-            点击下载<i class="el-icon-download el-icon--right"></i>
-          </el-button>
-        </template>
-      </avue-form>
-    </el-dialog> -->
 
 
 
@@ -340,7 +331,7 @@
               }
             }, {
               labelWidth: 100,
-              label: '开启投票',
+              label: '开启',
               prop: 'openFlag',
               type: 'radio',
               button: true,
@@ -354,52 +345,7 @@
                 value: 1
               }]
             },
-            {
-              labelWidth: 100,
-              label: '人数限制',
-              prop: 'numberRestrictions',
-              type: 'number',
-              button: true,
-              row: true,
-              min: 0,
-              max: 99999999,
-              controlsPosition: '',
-              step: 10,
-              offset: 6,
-            }, {
-              labelWidth: 100,
-              label: '投票限制',
-              prop: 'voteRestrictions',
-              type: 'radio',
-              button: true,
-              row: true,
-              offset: 6,
-              dicData: [{
-                label: '一人一票',
-                value: 0
-              }, {
-                label: '一户一票',
-                value: 1
-              }]
-            }, {
-              labelWidth: 100,
-              label: '用户限制',
-              prop: 'userRestrictions',
-              type: 'radio',
-              button: true,
-              row: true,
-              offset: 6,
-              dicData: [{
-                label: '不限制',
-                value: 0
-              }, {
-                label: '必须绑定手机',
-                value: 1
-              }, {
-                label: '必须绑定房屋',
-                value: 2
-              }]
-            },
+
             {
               label: "截止时间",
               row: true,
@@ -414,14 +360,12 @@
         optionDiscuss: {
           column: [{
               label: "",
-              // labelWidth: 20,
               type: 'title',
               prop: "title",
               span: 24,
               row: true,
               offset: 2,
               styles: {
-                // color: 'red',
                 fontSize: '24px'
               }
             }, {
@@ -441,72 +385,18 @@
               }]
             }, {
               labelWidth: 100,
-              label: '多房屋可重复',
-              prop: 'repeatVote',
+              label: '开启签名',
+              prop: 'signatureFlag',
               type: 'radio',
               button: true,
               row: true,
               offset: 6,
               dicData: [{
-                label: '不可以',
+                label: '开启',
                 value: 0
               }, {
-                label: '可以',
+                label: '不开启',
                 value: 1
-              }]
-            }, {
-              labelWidth: 100,
-              label: '投票限制',
-              prop: 'voteRestrictions',
-              type: 'radio',
-              button: true,
-              row: true,
-              offset: 6,
-              dicData: [{
-                label: '一人一票',
-                value: 0
-              }, {
-                label: '一户一票',
-                value: 1
-              }]
-            }, {
-              labelWidth: 100,
-              label: '用户限制',
-              prop: 'userRestrictions',
-              type: 'radio',
-              button: true,
-              row: true,
-              offset: 6,
-              dicData: [{
-                label: '不限制',
-                value: 0
-              }, {
-                label: '必须绑定手机',
-                value: 1
-              }, {
-                label: '必须绑定房屋',
-                value: 2
-              }]
-            }, {
-              labelWidth: 100,
-              label: '票数公开',
-              prop: 'voteNumberPublic',
-              type: 'radio',
-              button: true,
-              row: true,
-              offset: 6,
-              dicData: [{
-                label: '全程公开',
-                value: 0
-              }, {
-                label: '投票后公开',
-                value: 1
-              }, {
-                label: '投票结束后公开',
-                value: 2
-              }, {
-                label: '不公开',
-                value: 3
               }]
             },
             {
@@ -518,35 +408,6 @@
               format: "yyyy-MM-dd hh:mm:ss",
               valueFormat: "timestamp",
             },
-            // {
-            //   labelWidth: 100,
-            //   label: '人数限制',
-            //   prop: 'numberRestrictions',
-            //   type: 'number',
-            //   button: true,
-            //   row: true,
-            //   min: 0,
-            //   max: 99999999,
-            //   controlsPosition: '',
-            //   step: 10,
-            //   offset: 6,
-            // },
-            // {
-            //   labelWidth: 100,
-            //   label: '指定用户',
-            //   prop: 'appointUser',
-            //   type: 'radio',
-            //   button: true,
-            //   row: true,
-            //   offset: 6,
-            //   dicData: [{
-            //     label: '不限制',
-            //     value: 0
-            //   }, {
-            //     label: '指定用户可见',
-            //     value: 1
-            //   }]
-            // },
           ]
         },
         districtTree: [],
@@ -752,14 +613,14 @@
           getNotice(this.form.id).then((res) => {
             let data = res.data.data
             // data.forEach(item=>{
-              if(data.url.length>0){
-                var urls = []
-                var names = data.url.split(",");
-                names.forEach(name=>{
-                  urls.push(website.minioUrl + name)
-                })
-                data.url = urls.join(",")
-              }
+            if (data.url.length > 0) {
+              var urls = []
+              var names = data.url.split(",");
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              data.url = urls.join(",")
+            }
             // })
             this.form = data;
           });
@@ -792,6 +653,7 @@
           };
           values.dateTime = null;
         }
+        values.type = 0
         this.loading = true;
         getList(page.currentPage, page.pageSize, values).then((res) => {
           const data = res.data.data;
@@ -824,6 +686,17 @@
         } else {
           row.publish = "0";
         }
+
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",");
+          split.forEach(url => {
+            var names = url.split("jczz/");
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+
         update(row).then(
           () => {
             this.onLoad(this.page);
@@ -889,4 +762,4 @@
   .avue-upload__icon {
     line-height: 6;
   }
-</style>
+</style>
\ No newline at end of file
diff --git a/src/views/place/index.vue b/src/views/place/index.vue
index 361b8a7..938a8da 100644
--- a/src/views/place/index.vue
+++ b/src/views/place/index.vue
@@ -18,17 +18,19 @@
         </avue-crud>
 
         <el-dialog title="场所维护" append-to-body :visible.sync="roleBox" center>
+            <h3>基本信息:</h3>
+            <avue-form :option="optionDetail" v-model="placeForm"></avue-form>
+
+            <h3>从业人员:</h3>
             <avue-crud :option="placeOption" :search.sync="search" :table-loading="loading" :data="placeExt" ref="crud"
                 v-model="houseHoldForm" :permission="permissionList" @row-del="houseHoldRowDel"
                 @row-update="houseHoldRowUpdate" @row-save="houseHoldRowSave" :page.sync="holdPage"
                 @current-change="currentChange" @size-change="sizeChange">
             </avue-crud>
 
-            <avue-form :option="optionDetail" v-model="placeForm"></avue-form>
-
             <span slot="footer" class="dialog-footer">
                 <el-button @click="roleBox = false">取 消</el-button>
-                <el-button type="primary" @click="submitRole">确 定</el-button>
+                <el-button type="primary" @click="submitRole">提 交</el-button>
             </span>
         </el-dialog>
 
diff --git a/src/views/property/inviteTenders.vue b/src/views/property/inviteTenders.vue
new file mode 100644
index 0000000..3b14249
--- /dev/null
+++ b/src/views/property/inviteTenders.vue
@@ -0,0 +1,763 @@
+<template>
+  <basic-container>
+    <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
+      v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen"
+      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
+      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+      <template slot="menuLeft">
+        <el-button size="small" icon="el-icon-delete" plain v-if="permission.article_delete" @click="handleDelete">删 除
+        </el-button>
+        <!--  <el-button size="small" icon="el-icon-s-order" plain @click="kqcomment">开启评论
+        </el-button>
+        <el-button size="small" icon="el-icon-s-release" plain @click="gbcomment">关闭评论
+        </el-button> -->
+      </template>
+
+      <template slot-scope="{type,size,row }" slot="menu">
+        <el-button icon="el-icon-circle-plus-outline" :size="size" :type="type" @click.stop="openDilog(row,0)">
+          公益报名
+        </el-button>
+        <el-button icon="el-icon-circle-plus-outline" :size="size" :type="type" @click.stop="openDilog(row,1)">
+          创建议题
+        </el-button>
+        <el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)">
+          撤销
+        </el-button>
+        <el-button v-if="row.publish == '0'" icon="el-icon-check" :size="size" :type="type" @click.stop="updateFb(row)">
+          发布
+        </el-button>
+      </template>
+
+      <template slot-scope="{ row }" slot="publish">
+        <el-tag>{{
+          row.publish == "1" ? "已发布" : row.publish == "0" ? "未发布" : "未发布"
+          }}
+        </el-tag>
+      </template>
+
+      <template slot-scope="{ row }" slot="iscomment">
+        <el-tag>{{
+          row.iscomment == "1" ? "开启" : row.iscomment == "0" ? "关闭" : "关闭"
+          }}
+        </el-tag>
+      </template>
+    </avue-crud>
+
+
+
+    <el-dialog title="" append-to-body :visible.sync="dialogVisibles" width="50%" :before-close="handleClose">
+      <span slot="title" class="dialog-footer">
+        {{discussForm.ontitle}}
+      </span>
+      <div id="" v-if="discussForm.eventType == 1">
+        <avue-form @submit="handleSubmit" :option="optionDiscuss" v-model="discussForm"></avue-form>
+      </div>
+
+      <div id="" v-else>
+        <avue-form @submit="handleSubmit" :option="optionEnroll" v-model="discussForm">
+        </avue-form>
+      </div>
+    </el-dialog>
+
+
+
+
+  </basic-container>
+</template>
+
+<script>
+  import {
+    getList,
+    remove,
+    update,
+    add,
+    getNotice,
+    upcomment
+  } from "@/api/article/article";
+
+  import {
+    getListPd,
+    removePd,
+    updatePd,
+    addPd,
+    getNoticePd,
+    upcommentPd
+  } from "@/api/discuss/publicDiscuss";
+
+  import website from '@/config/website';
+
+
+  import {
+    getDistrictTree
+  } from "@/api/district/index";
+
+  import {
+    mapGetters
+  } from "vuex";
+
+  export default {
+    data() {
+      return {
+        discussForm: {
+          ontitle: '',
+          title: '',
+          openFlag: 0,
+          numberRestrictions: 0,
+          voteRestrictions: 0,
+          userRestrictions: 0,
+          endTime: '',
+          articleId: '',
+          createTime: '',
+          updateTime: '',
+          deleteFlag: '',
+          repeatVote: 0,
+          voteNumberPublic: 0,
+          appointUser: '',
+          userIds: '',
+          eventType: 1,
+        },
+        dialogVisibles: false,
+        form: {},
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0,
+        },
+        datetime: "",
+        selectionList: [],
+        option: {
+          height: "auto",
+          calcHeight: 54,
+          dialogWidth: 950,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 3,
+          menuWidth: 450,
+          border: false,
+          //stripe:true,
+          index: true,
+          viewBtn: true,
+          selection: true,
+          excelBtn: true,
+          dialogClickModal: false,
+          column: [{
+              label: "资讯标题",
+              prop: "title",
+              span: 24,
+              row: true,
+              searchSpan: 4,
+              search: true,
+              rules: [{
+                required: true,
+                message: "请输入资讯标题",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "资讯封面",
+              prop: "url",
+              // align:'center',
+              width: 80,
+              type: "upload",
+              listType: "picture-img",
+              action: "/api/blade-resource/oss/endpoint/put-file",
+              propsHttp: {
+                res: "data",
+                url: "link",
+              },
+              // hide: true,
+              span: 24,
+            },
+            // {
+            //   label: "资讯来源",
+            //   prop: "sourceName",
+            //   search: true,
+            //   searchSpan: 4,
+            //   span: 24,
+            //   rules: [{
+            //     required: true,
+            //     message: "请输入资讯类型",
+            //     trigger: "blur",
+            //   }, ],
+            // },
+            {
+              label: "资讯范围",
+              prop: "articleList",
+              span: 12,
+              minRows: 2,
+              type: "cascader",
+              multiple: true,
+              tags: true,
+              dicData: [],
+              props: {
+                label: "name",
+                value: 'id'
+              },
+              hide: true,
+            },
+            {
+              label: "资讯类型",
+              prop: "type",
+              searchSpan: 3,
+              width: 80,
+              value: 2,
+              slot: true,
+              search: true,
+              type: "select",
+              rules: [{
+                required: true,
+                message: "请选择资讯类型",
+                trigger: "blur",
+              }, ],
+              dicData: [{
+                label: "物业招标",
+                value: 2,
+              }],
+            },
+            {
+              label: "发布时间",
+              prop: "dateTime",
+              type: "datetime",
+              format: "yyyy-MM-dd",
+              valueFormat: "yyyy-MM-dd",
+              searchSpan: 5,
+              searchRange: true,
+              hide: true,
+              addDisplay: false,
+              editDisplay: false,
+              viewDisplay: false,
+              search: true,
+              rules: [{
+                required: true,
+                message: "请选择发布时间",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "发布时间",
+              prop: "createTime",
+              type: "date",
+              format: "yyyy-MM-dd",
+              valueFormat: "yyyy-MM-dd HH:mm:ss",
+            },
+            {
+              label: "发布状态",
+              prop: "publish",
+              searchSpan: 3,
+              width: 80,
+              value: "0",
+              slot: true,
+              search: true,
+              type: "select",
+              rules: [{
+                required: true,
+                message: "请选择发布状态",
+                trigger: "blur",
+              }, ],
+              dicData: [{
+                  label: "未发布",
+                  value: "0",
+                },
+                {
+                  label: "已发布",
+                  value: "1",
+                }
+              ],
+            },
+            {
+              label: "评论区",
+              prop: "iscomment",
+              width: 80,
+              slot: true,
+              type: "select",
+              dicData: [{
+                  label: "关闭",
+                  value: "0",
+                },
+                {
+                  label: "开启",
+                  value: "1",
+                }
+              ],
+            },
+            {
+              label: "视频",
+              prop: "videoUrl",
+              type: "upload",
+              accept: "video/mp4",
+              display: false,
+              hide: true,
+              span: 24,
+              listType: "picture-img",
+              action: "/api/depl/put-depl",
+              propsHttp: {
+                url: "data",
+              },
+            },
+            {
+              label: "资讯内容",
+              prop: "content",
+              component: "AvueUeditor",
+              options: {
+                action: "/api/blade-resource/oss/endpoint/put-file",
+                // customConfig: {
+                //   lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
+                // },//wangEditor编辑的配置
+                props: {
+                  res: "data",
+                  url: "link",
+                },
+              },
+              hide: true,
+              minRows: 6,
+              span: 24,
+            },
+          ],
+        },
+        data: [],
+        optionEnroll: {
+          column: [{
+              label: "",
+              type: 'title',
+              prop: "title",
+              span: 24,
+              row: true,
+              offset: 2,
+              styles: {
+                fontSize: '24px'
+              }
+            }, {
+              labelWidth: 100,
+              label: '开启',
+              prop: 'openFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '开启',
+                value: 0
+              }, {
+                label: '不开启',
+                value: 1
+              }]
+            },
+
+            {
+              label: "截止时间",
+              row: true,
+              offset: 6,
+              prop: "endTime",
+              type: "datetime",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "timestamp",
+            },
+          ]
+        },
+        optionDiscuss: {
+          column: [{
+              label: "",
+              type: 'title',
+              prop: "title",
+              span: 24,
+              row: true,
+              offset: 2,
+              styles: {
+                fontSize: '24px'
+              }
+            }, {
+              labelWidth: 100,
+              label: '开启投票',
+              prop: 'openFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '开启',
+                value: 0
+              }, {
+                label: '不开启',
+                value: 1
+              }]
+            }, {
+              labelWidth: 100,
+              label: '开启签名',
+              prop: 'signatureFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '开启',
+                value: 0
+              }, {
+                label: '不开启',
+                value: 1
+              }]
+            },
+            {
+              label: "截止时间",
+              row: true,
+              offset: 6,
+              prop: "endTime",
+              type: "datetime",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "timestamp",
+            },
+          ]
+        },
+        districtTree: [],
+      };
+    },
+    watch: {
+      "form.articleType": {
+        handler(val) {
+          if (val) {
+            var videoUrl = this.findObject(this.option.column, "videoUrl");
+            var content = this.findObject(this.option.column, "content");
+            if (val.indexOf('ksp') != -1) {
+              videoUrl.display = true;
+              content.display = false;
+              videoUrl.rules = [{
+                required: false,
+                message: "请选择视频",
+                trigger: "blur",
+              }, ];
+            } else {
+              videoUrl.display = false;
+              content.display = true;
+              videoUrl.rules = "";
+            }
+          }
+        },
+        immediate: true,
+      }
+    },
+    computed: {
+      ...mapGetters(["permission", "userInfo"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.article_add, true),
+          viewBtn: this.vaildData(this.permission.article_view, true),
+          delBtn: this.vaildData(this.permission.article_delete, true),
+          editBtn: this.vaildData(this.permission.article_edit, true),
+        };
+      },
+      ids() {
+        let ids = [];
+        this.selectionList.forEach((ele) => {
+          ids.push(ele.id);
+        });
+        return ids.join(",");
+      },
+    },
+    methods: {
+
+      openDilog(row, type) {
+        this.dialogVisibles = true
+        this.discussForm.eventType = type
+        this.discussForm.articleId = row.id
+        this.discussForm.title = row.title
+        if (type == 0) {
+          this.discussForm.ontitle = '公益报名'
+        } else {
+          this.discussForm.ontitle = '创建议题'
+        }
+      },
+
+      handleSubmit(form, done) {
+        done();
+        addPd(form).then(
+          () => {
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.dialogVisibles = false
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            // loading();
+          }
+        );
+      },
+
+      handleClose(done) {
+        done();
+        // this.$confirm('确认关闭?')
+        //   .then(_ => {
+        //     done();
+        //   })
+        //   .catch(_ => {});
+      },
+      rowSave(row, done, loading) {
+        if (row.videoUrl.length == 0) {
+          row.videoUrl = "";
+        }
+        row.userid = this.userInfo.user_id;
+        row.articleRange = JSON.stringify(row.articleList)
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",");
+          split.forEach(url => {
+            var names = url.split("jczz/");
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+        add(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      },
+      rowUpdate(row, index, done, loading) {
+        row.articleRange = JSON.stringify(row.articleList)
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",");
+          split.forEach(url => {
+            var names = url.split("jczz/");
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+
+        update(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      },
+      rowDel(row) {
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          })
+          .then(() => {
+            return remove(row.id);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+          });
+      },
+      searchReset() {
+        this.query = {};
+        this.onLoad(this.page);
+      },
+      searchChange(params, done) {
+        this.query = params;
+        this.page.currentPage = 1;
+        this.onLoad(this.page, params);
+        done();
+      },
+      selectionChange(list) {
+        this.selectionList = list;
+      },
+      selectionClear() {
+        this.selectionList = [];
+        this.$refs.crud.toggleSelection();
+      },
+      handleDelete() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          })
+          .then(() => {
+            return remove(this.ids);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          getNotice(this.form.id).then((res) => {
+            let data = res.data.data
+            // data.forEach(item=>{
+            if (data.url.length > 0) {
+              var urls = []
+              var names = data.url.split(",");
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              data.url = urls.join(",")
+            }
+            // })
+            this.form = data;
+          });
+        }
+        // con
+        done();
+      },
+      currentChange(currentPage) {
+        this.page.currentPage = currentPage;
+      },
+      sizeChange(pageSize) {
+        this.page.pageSize = pageSize;
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query);
+      },
+      onLoad(page, params = {}) {
+        const {
+          dateTime
+        } = this.query;
+        let values = {
+          ...params,
+        };
+        if (dateTime) {
+          values = {
+            ...params,
+            startTime: dateTime[0],
+            endTime: dateTime[1],
+            ...this.query,
+          };
+          values.dateTime = null;
+        }
+        values.type = 2
+        this.loading = true;
+        console.log(values)
+        getList(page.currentPage, page.pageSize, values).then((res) => {
+          const data = res.data.data;
+          this.page.total = data.total;
+          this.data = data.records;
+          this.data.forEach(item => {
+            if (item.url.length > 0) {
+              var urls = []
+              var names = item.url.split(",");
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              item.url = urls.join(",")
+            }
+          })
+          this.loading = false;
+          this.selectionClear();
+        });
+        getDistrictTree(params = {}).then((res) => {
+          const data = res.data.data;
+          this.districtTree = data;
+          const column = this.findObject(this.option.column, "articleList");
+          column.dicData = res.data.data;
+          this.loading = false;
+        });
+      },
+      updateFb(row) {
+        if (row.publish == "0") {
+          row.publish = "1";
+        } else {
+          row.publish = "0";
+        }
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",");
+          split.forEach(url => {
+            var names = url.split("jczz/");
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+        update(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      },
+      kqcomment() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据开启评论?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          }).then(() => {
+            return upcomment(this.ids, "1");
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      gbcomment() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据开启评论?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          }).then(() => {
+            return upcomment(this.ids, "0");
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      }
+    },
+  };
+</script>
+
+<style>
+  .avue-upload__icon {
+    line-height: 6;
+  }
+</style>
\ No newline at end of file
diff --git a/src/views/property/oiae.vue b/src/views/property/oiae.vue
new file mode 100644
index 0000000..dfd9614
--- /dev/null
+++ b/src/views/property/oiae.vue
@@ -0,0 +1,762 @@
+<template>
+  <basic-container>
+    <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel"
+      v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen"
+      @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
+      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+      <template slot="menuLeft">
+        <el-button size="small" icon="el-icon-delete" plain v-if="permission.article_delete" @click="handleDelete">删 除
+        </el-button>
+        <el-button size="small" icon="el-icon-s-order" plain @click="kqcomment">开启评论
+        </el-button>
+        <el-button size="small" icon="el-icon-s-release" plain @click="gbcomment">关闭评论
+        </el-button>
+      </template>
+
+      <template slot-scope="{type,size,row }" slot="menu">
+        <!-- <el-button icon="el-icon-circle-plus-outline" :size="size" :type="type" @click.stop="openDilog(row,0)">
+          公益报名
+        </el-button>
+        <el-button icon="el-icon-circle-plus-outline" :size="size" :type="type" @click.stop="openDilog(row,1)">
+          创建议题
+        </el-button> -->
+        <el-button v-if="row.publish == '1'" icon="el-icon-close" :size="size" :type="type" @click.stop="updateFb(row)">
+          撤销
+        </el-button>
+        <el-button v-if="row.publish == '0'" icon="el-icon-check" :size="size" :type="type" @click.stop="updateFb(row)">
+          发布
+        </el-button>
+      </template>
+
+      <template slot-scope="{ row }" slot="publish">
+        <el-tag>{{
+          row.publish == "1" ? "已发布" : row.publish == "0" ? "未发布" : "未发布"
+          }}
+        </el-tag>
+      </template>
+
+      <template slot-scope="{ row }" slot="iscomment">
+        <el-tag>{{
+          row.iscomment == "1" ? "开启" : row.iscomment == "0" ? "关闭" : "关闭"
+          }}
+        </el-tag>
+      </template>
+    </avue-crud>
+
+
+
+    <el-dialog title="" append-to-body :visible.sync="dialogVisibles" width="50%" :before-close="handleClose">
+      <span slot="title" class="dialog-footer">
+        {{discussForm.ontitle}}
+      </span>
+      <div id="" v-if="discussForm.eventType == 1">
+        <avue-form @submit="handleSubmit" :option="optionDiscuss" v-model="discussForm"></avue-form>
+      </div>
+
+      <div id="" v-else>
+        <avue-form @submit="handleSubmit" :option="optionEnroll" v-model="discussForm">
+        </avue-form>
+      </div>
+    </el-dialog>
+
+
+
+
+  </basic-container>
+</template>
+
+<script>
+  import {
+    getList,
+    remove,
+    update,
+    add,
+    getNotice,
+    upcomment
+  } from "@/api/article/article";
+
+  import {
+    getListPd,
+    removePd,
+    updatePd,
+    addPd,
+    getNoticePd,
+    upcommentPd
+  } from "@/api/discuss/publicDiscuss";
+
+  import website from '@/config/website';
+
+
+  import {
+    getDistrictTree
+  } from "@/api/district/index";
+
+  import {
+    mapGetters
+  } from "vuex";
+
+  export default {
+    data() {
+      return {
+        discussForm: {
+          ontitle: '',
+          title: '',
+          openFlag: 0,
+          numberRestrictions: 0,
+          voteRestrictions: 0,
+          userRestrictions: 0,
+          endTime: '',
+          articleId: '',
+          createTime: '',
+          updateTime: '',
+          deleteFlag: '',
+          repeatVote: 0,
+          voteNumberPublic: 0,
+          appointUser: '',
+          userIds: '',
+          eventType: 1,
+        },
+        dialogVisibles: false,
+        form: {},
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0,
+        },
+        datetime: "",
+        selectionList: [],
+        option: {
+          height: "auto",
+          calcHeight: 54,
+          dialogWidth: 950,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 3,
+          menuWidth: 450,
+          border: false,
+          //stripe:true,
+          index: true,
+          viewBtn: true,
+          selection: true,
+          excelBtn: true,
+          dialogClickModal: false,
+          column: [{
+              label: "资讯标题",
+              prop: "title",
+              span: 24,
+              row: true,
+              searchSpan: 4,
+              search: true,
+              rules: [{
+                required: true,
+                message: "请输入资讯标题",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "资讯封面",
+              prop: "url",
+              // align:'center',
+              width: 80,
+              type: "upload",
+              listType: "picture-img",
+              action: "/api/blade-resource/oss/endpoint/put-file",
+              propsHttp: {
+                res: "data",
+                url: "link",
+              },
+              // hide: true,
+              span: 24,
+            },
+            // {
+            //   label: "资讯来源",
+            //   prop: "sourceName",
+            //   search: true,
+            //   searchSpan: 4,
+            //   span: 24,
+            //   rules: [{
+            //     required: true,
+            //     message: "请输入资讯类型",
+            //     trigger: "blur",
+            //   }, ],
+            // },
+            {
+              label: "资讯范围",
+              prop: "articleList",
+              span: 12,
+              minRows: 2,
+              type: "cascader",
+              multiple: true,
+              tags: true,
+              dicData: [],
+              props: {
+                label: "name",
+                value: 'id'
+              },
+              hide: true,
+            },
+            {
+              label: "资讯类型",
+              prop: "type",
+              searchSpan: 3,
+              width: 80,
+              value: 1,
+              slot: true,
+              search: true,
+              type: "select",
+              rules: [{
+                required: true,
+                message: "请选择资讯类型",
+                trigger: "blur",
+              }, ],
+              dicData: [{
+                label: "经营性收支",
+                value: 1,
+              }],
+            },
+            {
+              label: "发布时间",
+              prop: "dateTime",
+              type: "datetime",
+              format: "yyyy-MM-dd",
+              valueFormat: "yyyy-MM-dd",
+              searchSpan: 5,
+              searchRange: true,
+              hide: true,
+              addDisplay: false,
+              editDisplay: false,
+              viewDisplay: false,
+              search: true,
+              rules: [{
+                required: true,
+                message: "请选择发布时间",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "发布时间",
+              prop: "createTime",
+              type: "date",
+              format: "yyyy-MM-dd",
+              valueFormat: "yyyy-MM-dd HH:mm:ss",
+            },
+            {
+              label: "发布状态",
+              prop: "publish",
+              searchSpan: 3,
+              width: 80,
+              value: "0",
+              slot: true,
+              search: true,
+              type: "select",
+              rules: [{
+                required: true,
+                message: "请选择发布状态",
+                trigger: "blur",
+              }, ],
+              dicData: [{
+                  label: "未发布",
+                  value: "0",
+                },
+                {
+                  label: "已发布",
+                  value: "1",
+                }
+              ],
+            },
+            {
+              label: "评论区",
+              prop: "iscomment",
+              width: 80,
+              slot: true,
+              type: "select",
+              dicData: [{
+                  label: "关闭",
+                  value: "0",
+                },
+                {
+                  label: "开启",
+                  value: "1",
+                }
+              ],
+            },
+            {
+              label: "视频",
+              prop: "videoUrl",
+              type: "upload",
+              accept: "video/mp4",
+              display: false,
+              hide: true,
+              span: 24,
+              listType: "picture-img",
+              action: "/api/depl/put-depl",
+              propsHttp: {
+                url: "data",
+              },
+            },
+            {
+              label: "资讯内容",
+              prop: "content",
+              component: "AvueUeditor",
+              options: {
+                action: "/api/blade-resource/oss/endpoint/put-file",
+                // customConfig: {
+                //   lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
+                // },//wangEditor编辑的配置
+                props: {
+                  res: "data",
+                  url: "link",
+                },
+              },
+              hide: true,
+              minRows: 6,
+              span: 24,
+            },
+          ],
+        },
+        data: [],
+        optionEnroll: {
+          column: [{
+              label: "",
+              type: 'title',
+              prop: "title",
+              span: 24,
+              row: true,
+              offset: 2,
+              styles: {
+                fontSize: '24px'
+              }
+            }, {
+              labelWidth: 100,
+              label: '开启',
+              prop: 'openFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '开启',
+                value: 0
+              }, {
+                label: '不开启',
+                value: 1
+              }]
+            },
+
+            {
+              label: "截止时间",
+              row: true,
+              offset: 6,
+              prop: "endTime",
+              type: "datetime",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "timestamp",
+            },
+          ]
+        },
+        optionDiscuss: {
+          column: [{
+              label: "",
+              type: 'title',
+              prop: "title",
+              span: 24,
+              row: true,
+              offset: 2,
+              styles: {
+                fontSize: '24px'
+              }
+            }, {
+              labelWidth: 100,
+              label: '开启投票',
+              prop: 'openFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '开启',
+                value: 0
+              }, {
+                label: '不开启',
+                value: 1
+              }]
+            }, {
+              labelWidth: 100,
+              label: '开启签名',
+              prop: 'signatureFlag',
+              type: 'radio',
+              button: true,
+              row: true,
+              offset: 6,
+              dicData: [{
+                label: '开启',
+                value: 0
+              }, {
+                label: '不开启',
+                value: 1
+              }]
+            },
+            {
+              label: "截止时间",
+              row: true,
+              offset: 6,
+              prop: "endTime",
+              type: "datetime",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "timestamp",
+            },
+          ]
+        },
+        districtTree: [],
+      };
+    },
+    watch: {
+      "form.articleType": {
+        handler(val) {
+          if (val) {
+            var videoUrl = this.findObject(this.option.column, "videoUrl");
+            var content = this.findObject(this.option.column, "content");
+            if (val.indexOf('ksp') != -1) {
+              videoUrl.display = true;
+              content.display = false;
+              videoUrl.rules = [{
+                required: false,
+                message: "请选择视频",
+                trigger: "blur",
+              }, ];
+            } else {
+              videoUrl.display = false;
+              content.display = true;
+              videoUrl.rules = "";
+            }
+          }
+        },
+        immediate: true,
+      }
+    },
+    computed: {
+      ...mapGetters(["permission", "userInfo"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.article_add, true),
+          viewBtn: this.vaildData(this.permission.article_view, true),
+          delBtn: this.vaildData(this.permission.article_delete, true),
+          editBtn: this.vaildData(this.permission.article_edit, true),
+        };
+      },
+      ids() {
+        let ids = [];
+        this.selectionList.forEach((ele) => {
+          ids.push(ele.id);
+        });
+        return ids.join(",");
+      },
+    },
+    methods: {
+
+      openDilog(row, type) {
+        this.dialogVisibles = true
+        this.discussForm.eventType = type
+        this.discussForm.articleId = row.id
+        this.discussForm.title = row.title
+        if (type == 0) {
+          this.discussForm.ontitle = '公益报名'
+        } else {
+          this.discussForm.ontitle = '创建议题'
+        }
+      },
+
+      handleSubmit(form, done) {
+        done();
+        addPd(form).then(
+          () => {
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.dialogVisibles = false
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            // loading();
+          }
+        );
+      },
+
+      handleClose(done) {
+        done();
+        // this.$confirm('确认关闭?')
+        //   .then(_ => {
+        //     done();
+        //   })
+        //   .catch(_ => {});
+      },
+      rowSave(row, done, loading) {
+        if (row.videoUrl.length == 0) {
+          row.videoUrl = "";
+        }
+        row.userid = this.userInfo.user_id;
+        row.articleRange = JSON.stringify(row.articleList)
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",");
+          split.forEach(url => {
+            var names = url.split("jczz/");
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+        add(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      },
+      rowUpdate(row, index, done, loading) {
+        row.articleRange = JSON.stringify(row.articleList)
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",");
+          split.forEach(url => {
+            var names = url.split("jczz/");
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+
+        update(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      },
+      rowDel(row) {
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          })
+          .then(() => {
+            return remove(row.id);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+          });
+      },
+      searchReset() {
+        this.query = {};
+        this.onLoad(this.page);
+      },
+      searchChange(params, done) {
+        this.query = params;
+        this.page.currentPage = 1;
+        this.onLoad(this.page, params);
+        done();
+      },
+      selectionChange(list) {
+        this.selectionList = list;
+      },
+      selectionClear() {
+        this.selectionList = [];
+        this.$refs.crud.toggleSelection();
+      },
+      handleDelete() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          })
+          .then(() => {
+            return remove(this.ids);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          getNotice(this.form.id).then((res) => {
+            let data = res.data.data
+            // data.forEach(item=>{
+            if (data.url.length > 0) {
+              var urls = []
+              var names = data.url.split(",");
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              data.url = urls.join(",")
+            }
+            // })
+            this.form = data;
+          });
+        }
+        // con
+        done();
+      },
+      currentChange(currentPage) {
+        this.page.currentPage = currentPage;
+      },
+      sizeChange(pageSize) {
+        this.page.pageSize = pageSize;
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query);
+      },
+      onLoad(page, params = {}) {
+        const {
+          dateTime
+        } = this.query;
+        let values = {
+          ...params,
+        };
+        if (dateTime) {
+          values = {
+            ...params,
+            startTime: dateTime[0],
+            endTime: dateTime[1],
+            ...this.query,
+          };
+          values.dateTime = null;
+        }
+        values.type = 1
+        this.loading = true;
+        getList(page.currentPage, page.pageSize, values).then((res) => {
+          const data = res.data.data;
+          this.page.total = data.total;
+          this.data = data.records;
+          this.data.forEach(item => {
+            if (item.url.length > 0) {
+              var urls = []
+              var names = item.url.split(",");
+              names.forEach(name => {
+                urls.push(website.minioUrl + name)
+              })
+              item.url = urls.join(",")
+            }
+          })
+          this.loading = false;
+          this.selectionClear();
+        });
+        getDistrictTree(params = {}).then((res) => {
+          const data = res.data.data;
+          this.districtTree = data;
+          const column = this.findObject(this.option.column, "articleList");
+          column.dicData = res.data.data;
+          this.loading = false;
+        });
+      },
+      updateFb(row) {
+        if (row.publish == "0") {
+          row.publish = "1";
+        } else {
+          row.publish = "0";
+        }
+        if (row.url.length > 0) {
+          var urls = []
+          var split = row.url.split(",");
+          split.forEach(url => {
+            var names = url.split("jczz/");
+            urls.push(names[1])
+          })
+          row.url = urls.join(",")
+        }
+        update(row).then(
+          () => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            done();
+          },
+          (error) => {
+            window.console.log(error);
+            loading();
+          }
+        );
+      },
+      kqcomment() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据开启评论?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          }).then(() => {
+            return upcomment(this.ids, "1");
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      gbcomment() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据开启评论?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+          }).then(() => {
+            return upcomment(this.ids, "0");
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!",
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      }
+    },
+  };
+</script>
+
+<style>
+  .avue-upload__icon {
+    line-height: 6;
+  }
+</style>
\ No newline at end of file
diff --git a/src/views/task/eCall/index.vue b/src/views/task/eCall/index.vue
index 57344ae..6953ef9 100644
--- a/src/views/task/eCall/index.vue
+++ b/src/views/task/eCall/index.vue
@@ -16,14 +16,22 @@
 </template>
 
 <script>
-import { getList, remove, update, add, getECallEvent } from "@/api/task/eCall"
+import {
+    getList,
+    remove,
+    update,
+    add,
+    getECallEvent
+} from "@/api/task/eCall"
 import {
     getList as getHouseList,
     getDetatil as getHouseDetail
 } from "@/api/doorplateAddress/doorplateAddress.js"
-import { mapGetters } from "vuex"
+import {
+    mapGetters
+} from "vuex"
 import website from '@/config/website'
-// import AvueMap from "avue-plugin-map"
+//   import AvueMap from "avue-plugin-map";
 export default {
     data () {
         return {
@@ -52,269 +60,260 @@
                 selection: true,
                 // excelBtn: true,
                 dialogClickModal: false,
-                column: [
-                    {
-                        label: "事件名称",
-                        prop: "name",
-                        span: 12,
-                        searchSpan: 4,
-                        width: 100,
-                        search: true,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入事件名称",
-                                trigger: "blur",
-                            },
-                        ],
+                column: [{
+                    label: "事件名称",
+                    prop: "name",
+                    span: 12,
+                    searchSpan: 4,
+                    width: 100,
+                    search: true,
+                    rules: [{
+                        required: true,
+                        message: "请输入事件名称",
+                        trigger: "blur",
+                    },],
+                },
+                {
+                    label: "事件类型",
+                    prop: "type",
+                    span: 12,
+                    searchSpan: 4,
+                    dataType: "number",
+                    type: "select",
+                    width: 100,
+                    dicUrl: "/api/blade-system/dict-biz/dictionary?code=eCallEventType",
+                    props: {
+                        label: "dictValue",
+                        value: "dictKey",
                     },
-                    {
-                        label: "事件类型",
-                        prop: "type",
-                        span: 12,
-                        searchSpan: 4,
-                        dataType: "number",
-                        type: "select",
-                        width: 100,
-                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=eCallEventType",
-                        props: {
-                            label: "dictValue",
-                            value: "dictKey",
+                    rules: [{
+                        required: true,
+                        message: "请选择事件类型",
+                        trigger: "blur",
+                    },],
+                    // search: true,
+                },
+                {
+                    label: "所属社区",
+                    prop: "communityCode",
+                    search: true,
+                    searchSpan: 4,
+                    width: 150,
+                    type: "tree",
+                    dicUrl: "/api/blade-system/region/tree",
+                    props: {
+                        label: "name",
+                        value: "id"
+                    },
+                    rules: [
+                        {
+                            required: true,
+                            message: "请选择所属社区",
+                            trigger: "blur",
                         },
-                        rules: [
+                    ],
+                },
+                {
+                    label: "数据来源",
+                    prop: "source",
+                    span: 12,
+                    searchSpan: 4,
+                    width: 100,
+                    hide: true,
+                    // search: true,
+                },
+                {
+                    label: "姓名",
+                    prop: "realName",
+                    span: 12,
+                    searchSpan: 4,
+                    width: 100,
+                    search: true,
+                    rules: [{
+                        required: false,
+                        message: "请输入姓名",
+                        trigger: "blur",
+                    },],
+                },
+                {
+                    label: "联系方式",
+                    prop: "phone",
+                    span: 12,
+                    width: 100,
+                    searchSpan: 4,
+                    search: true,
+                    rules: [{
+                        required: false,
+                        message: "请输入联系方式",
+                        trigger: "blur",
+                    },],
+                },
+                {
+                    label: "事发地点",
+                    prop: "scene",
+                    overHidden: true,
+                    rules: [{
+                        required: true,
+                        message: "请输入事发地点",
+                        trigger: "blur",
+                    },],
+                },
+                {
+                    label: "事发时间",
+                    prop: "occurrenceTime",
+                    width: 100,
+                    type: "date",
+                    format: "yyyy-MM-dd",
+                    valueFormat: "yyyy-MM-dd",
+                    rules: [{
+                        required: true,
+                        message: "请选择事发时间",
+                        trigger: "blur",
+                    },],
+                },
+                {
+                    label: "事发位置",
+                    prop: "location",
+                    submitBtn: "提交",
+                    hide: true,
+                    type: 'map',
+                    dataType: "string",
+                    span: 24,
+                    value: [117.966460, 28.431002, ""]
+                },
+                {
+                    label: "标准地址",
+                    prop: "addressCode",
+                    hide: true,
+                    type: "table",
+                    span: 24,
+                    row: true,
+                    children: {
+                        border: true,
+                        height: 400,
+                        searchShow: true,
+                        searchMenuSpan: 6,
+                        submitText: "确定",
+                        column: [
+                            // {
+                            //   label: "小区",
+                            //   prop: "aoiName",
+                            //   search: true,
+                            //   searchSpan: 4,
+                            //   rules: [
+                            //     {
+                            //       required: true,
+                            //       message: "请选择小区",
+                            //       trigger: "blur",
+                            //     },
+                            //   ],
+                            // },
                             {
-                                required: true,
-                                message: "请选择事件类型",
-                                trigger: "blur",
-                            },
-                        ],
-                        // search: true,
-                    },
-                    {
-                        label: "所属社区",
-                        prop: "communityCode",
-                        search: true,
-                        searchSpan: 4,
-                        width: 150,
-                        type: "tree",
-                        dicUrl: "/api/blade-system/region/tree",
-                        props: {
-                            label: "name",
-                            value: "id"
-                        },
-                        rules: [
-                            {
-                                required: true,
-                                message: "请选择所属社区",
-                                trigger: "blur",
+                                label: "标准地址",
+                                search: true,
+                                searchSpan: 8,
+                                prop: "addressName",
+                                display: false
                             },
                         ],
                     },
-                    {
-                        label: "数据来源",
-                        prop: "source",
-                        span: 12,
-                        searchSpan: 4,
-                        width: 100,
-                        hide: true,
-                        // search: true,
+                    page: {
+                        pageSize: 10,
+                        currentPage: 1,
+                        total: 0
                     },
-                    {
-                        label: "姓名",
-                        prop: "realName",
-                        span: 12,
-                        searchSpan: 4,
-                        width: 100,
-                        search: true,
-                        rules: [
-                            {
-                                required: false,
-                                message: "请输入姓名",
-                                trigger: "blur",
-                            },
-                        ],
+                    formatter: (row) => {
+                        return row.addressName
+                        // if (!row.districtName) return ''
+                        // return row.districtName + '-' + row.unit  + row.building  + row.room
                     },
-                    {
-                        label: "联系方式",
-                        prop: "phone",
-                        span: 12,
-                        width: 100,
-                        searchSpan: 4,
-                        search: true,
-                        rules: [
-                            {
-                                required: false,
-                                message: "请输入联系方式",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "事发地点",
-                        prop: "scene",
-                        overHidden: true,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入事发地点",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "事发时间",
-                        prop: "occurrenceTime",
-                        width: 100,
-                        type: "date",
-                        format: "yyyy-MM-dd",
-                        valueFormat: "yyyy-MM-dd",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请选择事发时间",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "事发位置",
-                        prop: "location",
-                        submitBtn: "提交",
-                        hide: true,
-                        type: 'map',
-                        dataType: "string",
-                        span: 24,
-                        value: [117.966460, 28.431002, ""]
-                    },
-                    {
-                        label: "标准地址",
-                        prop: "addressCode",
-                        hide: true,
-                        type: "table",
-                        span: 24,
-                        row: true,
-                        children: {
-                            border: true,
-                            height: 400,
-                            searchShow: true,
-                            searchMenuSpan: 6,
-                            submitText: "确定",
-                            column: [
-                                // {
-                                //   label: "小区",
-                                //   prop: "aoiName",
-                                //   search: true,
-                                //   searchSpan: 4,
-                                //   rules: [
-                                //     {
-                                //       required: true,
-                                //       message: "请选择小区",
-                                //       trigger: "blur",
-                                //     },
-                                //   ],
-                                // },
-                                {
-                                    label: "标准地址",
-                                    search: true,
-                                    searchSpan: 8,
-                                    prop: "addressName",
-                                    display: false
-                                },
-                            ],
-                        },
-                        page: {
-                            pageSize: 10,
-                            currentPage: 1,
-                            total: 0
-                        },
-                        formatter: (row) => {
-                            return row.addressName
-                            // if (!row.districtName) return ''
-                            // return row.districtName + '-' + row.unit  + row.building  + row.room
-                        },
-                        onLoad: ({ page, value, data }, callback) => {
-                            //首次加载去查询对应的值
-                            if (value) {
-                                getHouseDetail({
-                                    addressCode: value
-                                }).then(res => {
-                                    var resData = res.data.data
-                                    // 查询对应行数据
-                                    callback(resData)
-                                    return
-                                })
+                    onLoad: ({
+                        page,
+                        value,
+                        data
+                    }, callback) => {
+                        //首次加载去查询对应的值
+                        if (value) {
+                            getHouseDetail({
+                                addressCode: value
+                            }).then(res => {
+                                var resData = res.data.data
+                                // 查询对应行数据
+                                callback(resData)
+                                return
+                            })
+                        }
+                        if (page) {
+                            this.loading = true
+                            var params = {
+                                ...data,
+                                townStreetCode: "361102005"
                             }
-                            if (page) {
-                                this.loading = true
-                                var params = {
-                                    ...data,
-                                    townStreetCode: "361102005"
-                                }
-                                getHouseList(page.currentPage, page.pageSize, Object.assign(params)).then(res => {
-                                    const resData = res.data.data
-                                    var total = resData.total
-                                    var data = resData.records
-                                    this.loading = false
-                                    this.selectionClear()
-                                    //分页查询信息
-                                    callback({
-                                        total: total,
-                                        data: data
-                                    })
+                            getHouseList(page.currentPage, page.pageSize, Object.assign(params)).then(res => {
+                                const resData = res.data.data
+                                var total = resData.total
+                                var data = resData.records
+                                this.loading = false
+                                this.selectionClear()
+                                //分页查询信息
+                                callback({
+                                    total: total,
+                                    data: data
                                 })
-                            }
-                        },
-                        props: {
-                            label: 'addressName',
-                            value: 'addressCode'
+                            })
                         }
                     },
+                    props: {
+                        label: 'addressName',
+                        value: 'addressCode'
+                    }
+                },
 
-                    {
-                        label: "现场图片",
-                        prop: "imageUrls",
-                        width: 80,
-                        type: "upload",
-                        listType: "picture-card",
-                        dataType: "string",
-                        multiple: true,
-                        row: true,
-                        action: "/api/blade-resource/oss/endpoint/put-file-attach",
-                        propsHttp: {
-                            res: "data",
-                            name: 'name',
-                            url: "link",
-                        },
-                        span: 24,
+                {
+                    label: "现场图片",
+                    prop: "imageUrls",
+                    width: 80,
+                    type: "upload",
+                    listType: "picture-card",
+                    dataType: "string",
+                    multiple: true,
+                    row: true,
+                    action: "/api/blade-resource/oss/endpoint/put-file-attach",
+                    propsHttp: {
+                        res: "data",
+                        name: 'name',
+                        url: "link",
                     },
+                    span: 24,
+                },
 
-                    {
-                        label: "事件简述",
-                        prop: "remark",
-                        type: "textarea",
-                        span: 24,
-                    },
-                    // {
-                    //   label: "处置情况",
-                    //   prop: "disSit",
-                    //   type:"textarea",
-                    //   hide:true,
-                    //   span: 24,
-                    // },
-                    {
-                        label: "处理结果",
-                        prop: "disRes",
-                        type: "textarea",
-                        hide: true,
-                        span: 24,
-                    },
-                    {
-                        label: "回访情况",
-                        prop: "retVis",
-                        type: "textarea",
-                        hide: true,
-                        span: 24,
-                    },
+                {
+                    label: "事件简述",
+                    prop: "remark",
+                    type: "textarea",
+                    span: 24,
+                },
+                // {
+                //   label: "处置情况",
+                //   prop: "disSit",
+                //   type:"textarea",
+                //   hide:true,
+                //   span: 24,
+                // },
+                {
+                    label: "处理结果",
+                    prop: "disRes",
+                    type: "textarea",
+                    hide: true,
+                    span: 24,
+                },
+                {
+                    label: "回访情况",
+                    prop: "retVis",
+                    type: "textarea",
+                    hide: true,
+                    span: 24,
+                },
                     // {
                     //   label: "处置状态",
                     //   prop: "dis_status",
@@ -495,7 +494,9 @@
             this.onLoad(this.page, this.query)
         },
         onLoad (page, params = {}) {
-            const { dateTime } = this.query
+            const {
+                dateTime
+            } = this.query
             let values = {
                 ...params,
             }
diff --git a/src/views/userHouse/houseHoldList.vue b/src/views/userHouse/houseHoldList.vue
index d218f5b..3e3992e 100644
--- a/src/views/userHouse/houseHoldList.vue
+++ b/src/views/userHouse/houseHoldList.vue
@@ -22,10 +22,6 @@
             <el-button type="text" icon="el-icon-circle-plus-outline" size="small" v-if="permission.househould_manager"
               @click="manageLabel(scope.row)">标签
             </el-button>
-            <!--  <el-button type="success" size="small" plain icon="el-icon-upload2" @click="handleImport">导入
-            </el-button>
-            <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出
-            </el-button> -->
           </template>
           <template slot-scope="{row}" slot="tenantName">
             <el-tag>{{ row.tenantName }}</el-tag>
@@ -52,20 +48,21 @@
           </span>
         </el-dialog>
 
-        <el-dialog title="标签管理" append-to-body :visible.sync="labelFlag" center   width="600px">
-          <div id="" v-for="(item1,index1) in labelData">
+        <el-dialog title="标签管理" append-to-body :visible.sync="labelFlag" center width="600px">
+          <div id="" v-for="(item,index) in labelData">
             <el-row>
               <el-col :span="24">
                 <div>
-                  <el-divider content-position="left">{{item1.name}}</el-divider>
+                  <el-divider content-position="left">{{item.name}}</el-divider>
                 </div>
               </el-col>
             </el-row>
-            <div id="" class="grid-container2" v-if="item1.children">
-              
-                <div class="grid-item"  v-for="(item2,index2) in item1.children "    @click="changLabel(item2)">
-                  {{item2.name}}
-                </div>
+            <div id="" class="grid-container2" v-if="item.children">
+
+              <div class="grid-item" :style="{ backgroundColor: item2.color}" v-for="(item2,index2) in item.children "
+                @click="changLabel(item2)">
+                {{item2.name}}
+              </div>
             </div>
           </div>
 
@@ -76,12 +73,13 @@
           </span>
         </el-dialog>
 
-        <el-dialog :title="'编辑标签' +  currentLabel.name" append-to-body :visible.sync="editLabelFlge" width="655px">
-          <avue-form :option="labelOption" v-model="excelForm">
-            <template slot="excelTemplate">
-
-            </template>
+        <el-dialog :title="'编辑标签   ' +  currentLabel.name" append-to-body :visible.sync="editLabelFlge" width="655px">
+          <avue-form :option="labelOption" v-model="labelForm" :submit="onsubmit">
           </avue-form>
+          <span slot="footer" class="dialog-footer">
+            <el-button @click="editLabelFlge = false">取 消</el-button>
+            <el-button type="primary" @click="onsubmit">确 定</el-button>
+          </span>
         </el-dialog>
 
 
@@ -105,8 +103,13 @@
     remove,
     add,
     update,
-    getDetatil
+    getDetatil,
+    getDetatils
   } from "@/api/userHouse/list/houseHold.js";
+  import {
+    removeHouseholdLabel,
+    saveOrUpdateHouseholdLabel
+  } from "@/api/userHouse/list/userHouseList.js";
   import {
     getLabelList,
   } from '@/api/label/label'
@@ -223,30 +226,38 @@
         data: [],
 
         excelForm: {},
+        labelForm: {},
         labelOption: {
+          submitBtn: false,
+          emptyBtn: false,
           column: [{
             label: '级别',
-            prop: 'radio',
+            prop: 'color',
             type: 'radio',
             button: true,
             row: true,
             dicData: [{
               label: '撤销',
-              value: -1
+              value: '#EBEDF0'
             }, {
               label: '绿',
-              value: 0
+              value: '#30D17C'
             }, {
               label: '黄',
-              value: 1
+              value: '#FFB42B'
             }, {
               label: '红',
-              value: ''
+              value: '#EA1F1F'
+            }],
+            rules: [{
+              required: true,
+              message: "请选择",
+              trigger: "blur"
             }]
           }, {
             row: true,
             label: '备注',
-            prop: 'input',
+            prop: 'remark',
             type: 'input'
           }]
         },
@@ -297,7 +308,9 @@
             }
           ]
         },
-        currentLabel:""
+        currentLabel: {},
+        currentRow: {},
+        householdLabelList: [],
       };
     },
     watch: {},
@@ -315,19 +328,74 @@
     mounted() {},
     methods: {
 
+      onsubmit() {
+        if (this.labelForm.color === '#EBEDF0') {
+          let params = {
+            householdId: this.currentRow.id,
+            labelId: this.currentLabel.id
+          }
+          removeHouseholdLabel(params).then(res => {
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.editLabelFlge = false
+            this.manageLabel(this.currentRow)
+            this.loading = false;
+          })
+        } else {
+          this.labelForm.houseCode = this.currentRow.houseCode
+          this.labelForm.householdId = this.currentRow.id
+          this.labelForm.labelId = this.currentLabel.id
+          this.labelForm.lableType = 1
+          saveOrUpdateHouseholdLabel(this.labelForm).then(res => {
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.editLabelFlge = false
+            this.manageLabel(this.currentRow)
+            this.loading = false;
+          })
+        }
+      },
+
       changLabel(item) {
         this.editLabelFlge = true
         this.currentLabel = item;
+        this.labelForm.color = item.color
+        this.labelForm.remark = item.remark
       },
-      manageLabel() {
+      manageLabel(item) {
+        this.currentRow = item
         this.labelFlag = true
         let params = {
           parentId: 1000
         }
+        // 查询标签
         getLabelList(Object.assign(params)).then(res => {
           const data = res.data.data;
-          this.labelData = data;
+          // this.labelData = data;
           this.loading = false;
+          // 查询详情
+          getDetatils(item.id).then(res => {
+            this.householdLabelList = res.data.data.householdLabelList;
+            this.loading = false;
+            // 将细类放到一起
+            data.forEach(e => {
+              e.children.forEach(f => {
+                if (this.householdLabelList.length > 0) {
+                  this.householdLabelList.forEach(h => {
+                    if (Number(f.id) == h.labelId) {
+                      f['color'] = h.color
+                      f['remark'] = h.remark
+                    }
+                  })
+                }
+              })
+            })
+            this.labelData = data;
+          });
         });
       },
       rowSave(row, done, loading) {
@@ -491,18 +559,20 @@
     grid-gap: 10px; */
     display: flex;
     flex-wrap: wrap;
-    padding-bottom:20px;
+    padding-bottom: 20px;
   }
-  .grid-item{
-    padding:8px 14px;
-    border:1px solid #dcdfe6;
-    margin-right:10px;
-    margin-bottom:10px;
+
+  .grid-item {
+    padding: 8px 14px;
+    border: 1px solid #dcdfe6;
+    margin-right: 10px;
+    margin-bottom: 10px;
     border-radius: 20px;
   }
-  .grid-item:hover{
+
+  .grid-item:hover {
     background-color: #e8f4ff;
-    color:#017BFC;
+    color: #017BFC;
     cursor: pointer;
   }
 
@@ -513,4 +583,4 @@
   .box .el-scrollbar__wrap {
     overflow: scroll;
   }
-</style>
+</style>
\ No newline at end of file
diff --git a/src/views/userHouse/houseList.vue b/src/views/userHouse/houseList.vue
index a8b706f..b22e1c6 100644
--- a/src/views/userHouse/houseList.vue
+++ b/src/views/userHouse/houseList.vue
@@ -2,8 +2,8 @@
   <el-row>
     <el-col :span="24">
       <basic-container>
-        <avue-crud :option="option" :search.sync="search" :table-loading="loading" :data="data" ref="crud" v-model="form"
-          :permission="permissionList" @row-del="rowDel" @row-update="rowUpdate" @row-save="rowSave"
+        <avue-crud :option="option" :search.sync="search" :table-loading="loading" :data="data" ref="crud"
+          v-model="form" :permission="permissionList" @row-del="rowDel" @row-update="rowUpdate" @row-save="rowSave"
           :before-open="beforeOpen" :page.sync="page" @search-change="searchChange" @search-reset="searchReset"
           @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
           @refresh-change="refreshChange" @on-load="onLoad">
@@ -22,7 +22,11 @@
             <el-button type="text" icon="el-icon-circle-plus-outline" size="small" v-if="permission.househould_manager"
               @click="handleHouseholdManager(scope.row)">住户管理
             </el-button>
+            <el-button type="text" icon="el-icon-circle-plus-outline" size="small" v-if="permission.househould_manager"
+              @click="manageLabel(scope.row)">标签
+            </el-button>
           </template>
+
           <template slot-scope="{row}" slot="tenantName">
             <el-tag>{{ row.tenantName }}</el-tag>
           </template>
@@ -47,6 +51,29 @@
             <el-button type="primary" @click="submitRole">确 定</el-button>
           </span>
         </el-dialog>
+
+        <el-dialog title="标签管理" append-to-body :visible.sync="labelFlag" center width="600px">
+          <div id="" class="grid-container2">
+            <div class="grid-item" :style="{ backgroundColor: item.color}" v-for="(item,index) in labelData "
+              @click="changLabel(item)">
+              {{item.name}}
+            </div>
+          </div>
+          <span slot="footer" class="dialog-footer">
+            <el-button @click="labelFlag = false">取 消</el-button>
+            <el-button type="primary" @click="submitRole">确 定</el-button>
+          </span>
+        </el-dialog>
+
+        <el-dialog :title="'编辑标签   ' +  currentLabel.name" append-to-body :visible.sync="editLabelFlge" width="655px">
+          <avue-form :option="labelOption" v-model="labelForm" :submit="onsubmit">
+          </avue-form>
+          <span slot="footer" class="dialog-footer">
+            <el-button @click="editLabelFlge = false">取 消</el-button>
+            <el-button type="primary" @click="onsubmit">确 定</el-button>
+          </span>
+        </el-dialog>
+
         <el-dialog title="用户数据导入" append-to-body :visible.sync="excelBox" width="555px">
           <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
             <template slot="excelTemplate">
@@ -57,7 +84,7 @@
           </avue-form>
         </el-dialog>
         <el-dialog title="住户管理" append-to-body :visible.sync="householdManagerVisible" width="70%" height="60%">
-            <householdManager ref="householdManager"/>
+          <householdManager ref="householdManager" />
         </el-dialog>
       </basic-container>
     </el-col>
@@ -65,383 +92,495 @@
 </template>
 
 <script>
-import {
-  getList,
-  remove,
-  add,
-  update,
-  getDetatil
-} from "@/api/userHouse/list/house.js";
-import {
-  exportBlob
-} from "@/api/common";
-import {
-  mapGetters
-} from "vuex";
-import website from '@/config/website';
-import {
-  getToken
-} from '@/util/auth';
-import {
-  downloadXls
-} from "@/util/util";
-import {
-  dateNow
-} from "@/util/date";
-import NProgress from 'nprogress';
-import 'nprogress/nprogress.css';
-import func from "@/util/func";
-import householdManager from "./components/householdManager";
-import Qs from "qs";
-export default {
-  components: {
-    householdManager
-  },
-  data() {
-    return {
-      householdManagerVisible:false,
-      form: {},
-      search: {},
-      excelBox: false,
-      selectionList: [],
-      query: {},
-      loading: true,
-      page: {
-        pageSize: 10,
-        currentPage: 1,
-        total: 0
-      },
-      option: {
-        height: 'auto',
-        calcHeight: 80,
-        tip: false,
-        searchShow: true,
-        searchMenuSpan: 6,
-        border: true,
-        index: true,
-        selection: true,
-        viewBtn: true,
-        dialogType: 'drawer',
-        dialogClickModal: false,
-        menuWidth:280,
-        column: [{
-          label: "房屋编号",
-          prop: "houseCode",
-          width: 180,
-          hide: true,
-          display: false
-        },
-        {
-          label: "地址",
-          prop: "address",
-          width: 180,
-          display: false
-        },
-        {
-          label: "小区",
-          prop: "districtName",
-          search: true,
-          rules: [
-            {
+  import {
+    getList,
+    remove,
+    add,
+    update,
+    getDetatil,
+    getDetatils
+  } from "@/api/userHouse/list/house.js";
+  import {
+    removeHouseholdLabel,
+    saveOrUpdateHouseholdLabel
+  } from "@/api/userHouse/list/userHouseList.js";
+  import {
+    getLabelList,
+  } from '@/api/label/label'
+  import {
+    exportBlob
+  } from "@/api/common";
+  import {
+    mapGetters
+  } from "vuex";
+  import website from '@/config/website';
+  import {
+    getToken
+  } from '@/util/auth';
+  import {
+    downloadXls
+  } from "@/util/util";
+  import {
+    dateNow
+  } from "@/util/date";
+  import NProgress from 'nprogress';
+  import 'nprogress/nprogress.css';
+  import func from "@/util/func";
+  import householdManager from "./components/householdManager";
+  import Qs from "qs";
+  export default {
+    components: {
+      householdManager
+    },
+    data() {
+      return {
+        labelData: [],
+        labelForm: {},
+        userHouseLabelVOList: [],
+        currentLabel: {},
+        labelOption: {
+          submitBtn: false,
+          emptyBtn: false,
+          column: [{
+            label: '级别',
+            prop: 'color',
+            type: 'radio',
+            button: true,
+            row: true,
+            dicData: [{
+              label: '撤销',
+              value: '#EBEDF0'
+            }, {
+              label: '绿',
+              value: '#30D17C'
+            }, {
+              label: '黄',
+              value: '#FFB42B'
+            }, {
+              label: '红',
+              value: '#EA1F1F'
+            }],
+            rules: [{
               required: true,
-              message: "请选择小区",
-              trigger: "blur",
-            },
-          ],
-        },
-        {
-          label: "手机",
-          prop: "phone",
-          rules: [
-            {
-              required: true,
-              message: "请输入绑定手机",
-              trigger: "blur",
-            },
-          ],
-        },
-        {
-          label: "幢",
-          prop: "building",
-          hide: true
-        },
-        {
-          label: "单元",
-          prop: "unit",
-          hide: true
-        },
-        {
-          label: "室",
-          prop: "room",
-          hide: true
-        },
-        {
-          label: "楼层",
-          prop: "floor",
-          type: "number",
-          rules: [
-            {
-              required: true,
-              message: "请输入楼层",
-              trigger: "blur",
-            },
-          ],
-        },
-        {
-          label: "面积",
-          prop: "area",
-          type: "number",
-        },
-        {
-          label: "物业费",
-          prop: "propertyPrice",
-          type: "number",
-        },
-        {
-          label: "服务到期",
-          prop: "serviceDue",
-          type: "datetime",
-          format: "yyyy-MM-dd",
-          valueFormat: "yyyy-MM-dd",
-        },
-        ]
-      },
-      data: [],
-      excelForm: {},
-      excelOption: {
-        submitBtn: false,
-        emptyBtn: false,
-        column: [{
-          label: '模板上传',
-          prop: 'excelFile',
-          type: 'upload',
-          drag: true,
-          loadText: '模板上传中,请稍等',
-          span: 24,
-          propsHttp: {
-            res: 'data'
-          },
-          tip: '请上传 .xls,.xlsx 标准格式文件',
-          action: "/api/blade-system/user/import-user"
-        },
-        {
-          label: "数据覆盖",
-          prop: "isCovered",
-          type: "switch",
-          align: "center",
-          width: 80,
-          dicData: [{
-            label: "否",
-            value: 0
-          },
-          {
-            label: "是",
-            value: 1
-          }
-          ],
-          value: 0,
-          slot: true,
-          rules: [{
-            required: true,
-            message: "请选择是否覆盖",
-            trigger: "blur"
+              message: "请选择",
+              trigger: "blur"
+            }]
+          }, {
+            row: true,
+            label: '备注',
+            prop: 'remark',
+            type: 'input'
           }]
         },
-        {
-          label: '模板下载',
-          prop: 'excelTemplate',
-          formslot: true,
-          span: 24,
+        editLabelFlge: false,
+        labelFlag: false,
+        householdManagerVisible: false,
+        form: {},
+        search: {},
+        excelBox: false,
+        selectionList: [],
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0
+        },
+        option: {
+          height: 'auto',
+          calcHeight: 80,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 6,
+          border: true,
+          index: true,
+          selection: true,
+          viewBtn: true,
+          dialogType: 'drawer',
+          dialogClickModal: false,
+          menuWidth: 280,
+          column: [{
+              label: "房屋编号",
+              prop: "houseCode",
+              width: 180,
+              hide: true,
+              display: false
+            },
+            {
+              label: "地址",
+              prop: "address",
+              width: 180,
+              display: false
+            },
+            {
+              label: "小区",
+              prop: "districtName",
+              search: true,
+              rules: [{
+                required: true,
+                message: "请选择小区",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "手机",
+              prop: "phone",
+              rules: [{
+                required: true,
+                message: "请输入绑定手机",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "幢",
+              prop: "building",
+              hide: true
+            },
+            {
+              label: "单元",
+              prop: "unit",
+              hide: true
+            },
+            {
+              label: "室",
+              prop: "room",
+              hide: true
+            },
+            {
+              label: "楼层",
+              prop: "floor",
+              type: "number",
+              rules: [{
+                required: true,
+                message: "请输入楼层",
+                trigger: "blur",
+              }, ],
+            },
+            {
+              label: "面积",
+              prop: "area",
+              type: "number",
+            },
+            {
+              label: "物业费",
+              prop: "propertyPrice",
+              type: "number",
+            },
+            {
+              label: "服务到期",
+              prop: "serviceDue",
+              type: "datetime",
+              format: "yyyy-MM-dd",
+              valueFormat: "yyyy-MM-dd",
+            },
+          ]
+        },
+        data: [],
+        excelForm: {},
+        excelOption: {
+          submitBtn: false,
+          emptyBtn: false,
+          column: [{
+              label: '模板上传',
+              prop: 'excelFile',
+              type: 'upload',
+              drag: true,
+              loadText: '模板上传中,请稍等',
+              span: 24,
+              propsHttp: {
+                res: 'data'
+              },
+              tip: '请上传 .xls,.xlsx 标准格式文件',
+              action: "/api/blade-system/user/import-user"
+            },
+            {
+              label: "数据覆盖",
+              prop: "isCovered",
+              type: "switch",
+              align: "center",
+              width: 80,
+              dicData: [{
+                  label: "否",
+                  value: 0
+                },
+                {
+                  label: "是",
+                  value: 1
+                }
+              ],
+              value: 0,
+              slot: true,
+              rules: [{
+                required: true,
+                message: "请选择是否覆盖",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: '模板下载',
+              prop: 'excelTemplate',
+              formslot: true,
+              span: 24,
+            }
+          ]
         }
-        ]
-      }
-    };
-  },
-  watch: {
-  },
-  computed: {
-    ...mapGetters(["userInfo", "permission"]),
-    permissionList() {
-      return {
-        addBtn: this.vaildData(this.permission.house_add, true),
-        viewBtn: this.vaildData(this.permission.house_view, true),
-        delBtn: this.vaildData(this.permission.house_delete, true),
-        editBtn: this.vaildData(this.permission.house_edit, true)
       };
-    }
-  },
-  mounted() {
-  },
-  methods: {
-    handleHouseholdManager(row){
-      var that = this
-      this.householdManagerVisible = true
-      this.$nextTick(() => {
-        that.$refs.householdManager.init(row)
-        })
     },
-    rowSave(row, done, loading) {
-      add(row).then(() => {
-        this.initFlag = false;
-        this.onLoad(this.page);
-        this.$message({
-          type: "success",
-          message: "操作成功!"
-        });
-        done();
-      }, error => {
-        window.console.log(error);
-        loading();
-      });
-    },
-    rowUpdate(row, index, done, loading) {
-      update(row).then(() => {
-        this.initFlag = false;
-        this.onLoad(this.page);
-        this.$message({
-          type: "success",
-          message: "操作成功!"
-        });
-        done();
-      }, error => {
-        window.console.log(error);
-        loading();
-      });
-    },
-    rowDel(row) {
-      this.$confirm("确定将选择数据删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning"
-      })
-        .then(() => {
-          return remove(row.id);
-        })
-        .then(() => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!"
-          });
-        });
-    },
-    searchReset() {
-      this.query = {};
-      this.treeDeptId = '';
-      this.onLoad(this.page);
-    },
-    searchChange(params, done) {
-      this.query = params;
-      this.page.currentPage = 1;
-      this.onLoad(this.page, params);
-      done();
-    },
-    selectionChange(list) {
-      this.selectionList = list;
-    },
-    selectionClear() {
-      this.selectionList = [];
-      this.$refs.crud.toggleSelection();
-    },
-    handleDelete() {
-      if (this.selectionList.length === 0) {
-        this.$message.warning("请选择至少一条数据");
-        return;
+    watch: {},
+    computed: {
+      ...mapGetters(["userInfo", "permission"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.house_add, true),
+          viewBtn: this.vaildData(this.permission.house_view, true),
+          delBtn: this.vaildData(this.permission.house_delete, true),
+          editBtn: this.vaildData(this.permission.house_edit, true)
+        };
       }
-      this.$confirm("确定将选择数据删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning"
-      })
-        .then(() => {
-          return remove(this.ids);
-        })
-        .then(() => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!"
-          });
-          this.$refs.crud.toggleSelection();
-        });
     },
-    handleImport() {
-      this.excelBox = true;
-    },
-    uploadAfter(res, done, loading, column) {
-      window.console.log(column);
-      this.excelBox = false;
-      this.refreshChange();
-      done();
-    },
-    handleExport() {
-      this.$confirm("是否导出房屋数据?", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning"
-      }).then(() => {
-        NProgress.start();
-        var data = {
-          ...this.query
+    mounted() {},
+    methods: {
+
+      onsubmit() {
+        if (this.labelForm.color === '#EBEDF0') {
+          let params = {
+            householdId: this.currentRow.id,
+            labelId: this.currentLabel.id
+          }
+          removeHouseholdLabel(params).then(res => {
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.editLabelFlge = false
+            this.manageLabel(this.currentRow)
+            this.loading = false;
+          })
+        } else {
+          this.labelForm.houseCode = this.currentRow.houseCode
+          this.labelForm.householdId = this.currentRow.id
+          this.labelForm.labelId = this.currentLabel.id
+          this.labelForm.lableType = 2
+          saveOrUpdateHouseholdLabel(this.labelForm).then(res => {
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.editLabelFlge = false
+            this.manageLabel(this.currentRow)
+            this.loading = false;
+          })
         }
-        data = Qs.stringify(data);
-        exportBlob(
-          `/api/blade-house/house/export-house?${this.website.tokenHeader}=${getToken()}&` + data
-        ).then(res => {
-          downloadXls(res.data, `房屋数据表${dateNow()}.xlsx`);
-          NProgress.done();
+      },
+
+      changLabel(item) {
+        this.editLabelFlge = true
+        this.currentLabel = item;
+        this.labelForm.color = item.color
+        this.labelForm.remark = item.remark
+      },
+      manageLabel(item) {
+        this.currentRow = item
+        this.labelFlag = true
+        let params = {
+          parentId: 1001
+        }
+        // 查询标签
+        getLabelList(Object.assign(params)).then(res => {
+          const data = res.data.data;
+          this.loading = false;
+          // 查询详情
+          getDetatils({
+            houseCode: item.houseCode
+          }).then(res => {
+            if (res.data.data) {
+              this.userHouseLabelVOList = res.data.data.userHouseLabelVOList;
+              this.loading = false;
+              // 将细类放到一起
+              data.forEach(f => {
+                if (this.userHouseLabelVOList.length > 0) {
+                  this.userHouseLabelVOList.forEach(h => {
+                    if (Number(f.id) == h.labelId) {
+                      f['color'] = h.color
+                      f['remark'] = h.remark
+                    }
+                  })
+                }
+              })
+            }
+            this.labelData = data;
+          });
+        });
+      },
+      handleHouseholdManager(row) {
+        var that = this
+        this.householdManagerVisible = true
+        this.$nextTick(() => {
+          that.$refs.householdManager.init(row)
         })
-      });
-    },
-    handleTemplate() {
-      exportBlob(`/api/blade-system/user/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => {
-        downloadXls(res.data, "房屋数据模板.xlsx");
-      })
-    },
-    beforeOpen(done, type) {
-      if (["edit", "view"].includes(type)) {
-        getDetatil({
-          id: this.form.id
-        }).then(res => {
-          this.form = res.data.data;
+      },
+      rowSave(row, done, loading) {
+        add(row).then(() => {
+          this.initFlag = false;
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          window.console.log(error);
+          loading();
+        });
+      },
+      rowUpdate(row, index, done, loading) {
+        update(row).then(() => {
+          this.initFlag = false;
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          window.console.log(error);
+          loading();
+        });
+      },
+      rowDel(row) {
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning"
+          })
+          .then(() => {
+            return remove(row.id);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+          });
+      },
+      searchReset() {
+        this.query = {};
+        this.treeDeptId = '';
+        this.onLoad(this.page);
+      },
+      searchChange(params, done) {
+        this.query = params;
+        this.page.currentPage = 1;
+        this.onLoad(this.page, params);
+        done();
+      },
+      selectionChange(list) {
+        this.selectionList = list;
+      },
+      selectionClear() {
+        this.selectionList = [];
+        this.$refs.crud.toggleSelection();
+      },
+      handleDelete() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据删除?", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning"
+          })
+          .then(() => {
+            return remove(this.ids);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      handleImport() {
+        this.excelBox = true;
+      },
+      uploadAfter(res, done, loading, column) {
+        window.console.log(column);
+        this.excelBox = false;
+        this.refreshChange();
+        done();
+      },
+      handleExport() {
+        this.$confirm("是否导出房屋数据?", "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(() => {
+          NProgress.start();
+          var data = {
+            ...this.query
+          }
+          data = Qs.stringify(data);
+          exportBlob(
+            `/api/blade-house/house/export-house?${this.website.tokenHeader}=${getToken()}&` + data
+          ).then(res => {
+            downloadXls(res.data, `房屋数据表${dateNow()}.xlsx`);
+            NProgress.done();
+          })
+        });
+      },
+      handleTemplate() {
+        exportBlob(`/api/blade-system/user/export-template?${this.website.tokenHeader}=${getToken()}`).then(res => {
+          downloadXls(res.data, "房屋数据模板.xlsx");
+        })
+      },
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          getDetatil({
+            id: this.form.id
+          }).then(res => {
+            this.form = res.data.data;
+          });
+        }
+        this.initFlag = true;
+        done();
+      },
+      currentChange(currentPage) {
+        this.page.currentPage = currentPage;
+      },
+      sizeChange(pageSize) {
+        this.page.pageSize = pageSize;
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query);
+      },
+      onLoad(page, params = {}) {
+        this.loading = true;
+        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+          const data = res.data.data;
+          this.page.total = data.total;
+          this.data = data.records;
+          this.loading = false;
+          this.selectionClear();
         });
       }
-      this.initFlag = true;
-      done();
-    },
-    currentChange(currentPage) {
-      this.page.currentPage = currentPage;
-    },
-    sizeChange(pageSize) {
-      this.page.pageSize = pageSize;
-    },
-    refreshChange() {
-      this.onLoad(this.page, this.query);
-    },
-    onLoad(page, params = {}) {
-      this.loading = true;
-      getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
-        const data = res.data.data;
-        this.page.total = data.total;
-        this.data = data.records;
-        this.loading = false;
-        this.selectionClear();
-      });
     }
-  }
-};
+  };
 </script>
 
 <style>
-.box {
-  height: 800px;
-}
+  .box {
+    height: 800px;
+  }
 
-.el-scrollbar {
-  height: 100%;
-}
+  .el-scrollbar {
+    height: 100%;
+  }
 
-.box .el-scrollbar__wrap {
-  overflow: scroll;
-}
-</style>
+  .box .el-scrollbar__wrap {
+    overflow: scroll;
+  }
+</style>
\ No newline at end of file
diff --git a/vue.config.js b/vue.config.js
index 33c79c1..531d332 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -26,8 +26,8 @@
     proxy: {
       '/api': {
         //本地服务接口地址
-        // target: 'http://localhost:9528',
-        target: 'http://192.168.0.102:9528',
+        target: 'http://localhost:9528',
+        // target: 'http://192.168.0.102:9528',
         //远程演示服务地址,可用于直接启动项目
         //target: 'https://saber.bladex.cn/api',
         changeOrigin: true,

--
Gitblit v1.9.3