Selaa lähdekoodia

修改物业管理切换标签栏小区数据丢失问题和工作台字体大小

DESKTOP-4G80JF4\long 3 vuotta sitten
vanhempi
commit
a7407a2c59

+ 21 - 24
operationSupport/src/views/propertyManagement/index.vue

@@ -78,7 +78,7 @@
                             <span>
                                 <span class="complaint-content-left">地址:</span>
                                 <span class="complaint-content-right"
-                                    >{{rowData.buildingName}}{{ rowData.unitName }}{{ rowData.roomNumber }}</span
+                                    >{{ rowData.buildingName }}{{ rowData.unitName }}{{ rowData.roomNumber }}</span
                                 >
                             </span>
                         </p>
@@ -110,7 +110,7 @@
                         </div>
                         <div class="complaint-images complaint-content">
                             <span class="complaint-content-left">图片/视频:</span>
-                            <span v-if="srcList.length ">
+                            <span v-if="srcList.length">
                                 <span v-for="(item, index) in imgList" :key="index">
                                     <el-image class="images" :src="item" :preview-src-list="imgList"> </el-image
                                 ></span>
@@ -210,7 +210,7 @@ export default {
             // 处理记录
             recordData: [],
             // 投诉人
-            complaintName:'',
+            complaintName: '',
             // 视频获得焦点
             videoControls: false,
             // 弹框显示图片
@@ -330,9 +330,7 @@ export default {
         };
     },
     created() {
-        if (this.$store.getters['getAreaSelect'].length === 0) {
-            this.getCommunityList();
-        }
+        this.getCommunityList();
         this.mixins_dataUrl = '/sc-community-web/feedback/page';
         this.mixins_query = {};
         this.mixins_search();
@@ -414,27 +412,26 @@ export default {
         },
         /** 查看处理详情*/
         clickEdit(row) {
-
             // 获取处理内容
             this.$http.post(`/sc-community-web/feedback/find/${row.id}`).then((res) => {
-                if(res.status===0){
-                this.rowData = res.data;
-                 this.centerDialogVisible = true;
-                this.complaintName = row.userName;
-                if(res.data.imageUrl){
-                let file = res.data.imageUrl;
-                let files = file.split(',');
-                this.srcList = files;
-                this.imgList = files.filter((item) => {
-                    return item.substr(-3) == 'png' || item.substr(-3) == 'jpg'||item.substr(-4)=='jpeg';
-                });
-                this.videoList = files.filter((item) => {
-                    return item.substr(-3) == 'mp4';
-                });
-                }
-                }else{
+                if (res.status === 0) {
+                    this.rowData = res.data;
+                    this.centerDialogVisible = true;
+                    this.complaintName = row.userName;
+                    if (res.data.imageUrl) {
+                        let file = res.data.imageUrl;
+                        let files = file.split(',');
+                        this.srcList = files;
+                        this.imgList = files.filter((item) => {
+                            return item.substr(-3) == 'png' || item.substr(-3) == 'jpg' || item.substr(-4) == 'jpeg';
+                        });
+                        this.videoList = files.filter((item) => {
+                            return item.substr(-3) == 'mp4';
+                        });
+                    }
+                } else {
                     this.rowData = row;
-                    this.$message('获取详情失败!请稍后重试')
+                    this.$message('获取详情失败!请稍后重试');
                 }
 
                 console.log('查看处理详情返回rowData', this.rowData);

+ 6 - 5
operationSupport/src/views/propertyManagement/inform.vue

@@ -62,7 +62,7 @@
                                     <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="101px" class="demo-ruleForm">
                                         <el-form-item label="所属社区" prop="popCommunityId">
                                             <el-select
-                                                placeholder="请选择所属区"
+                                                placeholder="请选择所属区"
                                                 v-model="ruleForm.popCommunityId"
                                                 clearable
                                                 class="dialog-select"
@@ -465,10 +465,9 @@ export default {
         };
     },
     created() {
+        this.getCommunityList();
+
         this.mixins_post;
-        if (this.$store.getters['getAreaSelect'].length === 0) {
-            this.getCommunityList();
-        }
         this.mixins_dataUrl = '/sc-community-web/notice/page';
         this.mixins_query = {};
         this.mixins_search();
@@ -808,8 +807,10 @@ export default {
         /** 获取社区列表*/
         getCommunityList() {
             this.communityList = [];
-            let onOption = '';
+            var onOption = '';
             this.$http.get('/sc-community/assets/community/list', {}).then((res) => {
+                // this.$store.commit('setAreaSelect', res.data);
+
                 console.log('获取社区列表', res);
                 res.data.map((res) => {
                     onOption = {

+ 1 - 3
operationSupport/src/views/propertyManagement/neighbor.vue

@@ -243,9 +243,7 @@ export default {
     },
 
     created() {
-        if (this.$store.getters['getAreaSelect'].length === 0) {
-            this.getCommunityList();
-        }
+        this.getCommunityList();
         this.mixins_dataUrl = '/sc-community-web/neighbourhood/page';
         this.mixins_query = {};
         this.mixins_search();

+ 1 - 3
operationSupport/src/views/propertyManagement/phone.vue

@@ -179,9 +179,7 @@ export default {
     },
 
     created() {
-        if (this.$store.getters['getAreaSelect'].length === 0) {
-            this.getCommunityList();
-        }
+        this.getCommunityList();
         this.mixins_dataUrl = '/sc-community-web/property/telephone/page';
         this.mixins_query = {};
         this.mixins_search();

+ 1 - 1
operationSupport/src/views/workbench/index.vue

@@ -167,7 +167,7 @@
                 <ul v-if="informData.length > 0">
                     <li v-for="(item, index) in informData" :key="index" @click="goPath('/propertyManagement/inform', item.id)">
                         <div class="footer-content">
-                            <div>[{{ item.title }}]{{ item.id }}</div>
+                            <div>[{{ item.title }}]</div>
                             <div v-html="item.content"></div>
                         </div>
                         <div>{{ item.pubDate }}</div>

+ 12 - 0
operationSupport/src/views/workbench/style.scss

@@ -179,6 +179,18 @@
 
                     .footer-content {
                         display: flex;
+                        font-size: 12px;
+                        /deep/ div,
+                        p,
+                        h1,
+                        h2,
+                        h3,
+                        h4,
+                        h5,
+                        h6,
+                        span {
+                            font-size: 12px;
+                        }
                         :last-child {
                             margin-left: 5px;
                             width: 467px;