瀏覽代碼

修改发布公告详情样式

long 3 年之前
父節點
當前提交
668921eef3

+ 2 - 1
operationSupport/src/views/propertyManagement/common/previeInform.vue

@@ -541,7 +541,8 @@ export default {
         }
         .html-content {
             display: flex;
-            width: 100%;
+            // width: 100%;
+            width: 630px;
             max-height: 200px;
         }
         // 弹框自定义滚动条

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

@@ -247,12 +247,13 @@
                                         :houseDataNames="houseDataNames"
                                         :houseDataNamesPeople="houseDataNamesPeople"
                                         :userType="userType"
+                                        :showrightPhone="true"
                                         ref="previeInform"
                                     ></previe-inform>
                                 </div>
                             </div>
 
-                            <div class="dialog-right">
+                            <div class="dialog-right" v-if="showDetail">
                                 <div class="dialog-right-top">
                                     <img src="../../assets/img/phoneHeader.png" alt="" />
                                 </div>
@@ -283,12 +284,12 @@
                                         <div class="dialog-right-time" v-else>{{ new Date() | filterTime }}</div>
                                         <div></div>
                                         <div class="content">
-                                            <div class="content-text" v-if="showDetail">
+                                            <div class="content-text">
                                                 <div v-html="ruleForm.editorContents" id="content" />
                                             </div>
-                                            <div class="content-text" v-else>
+                                            <!-- <div class="content-text" v-else>
                                                 <div v-html="contentHtml" id="content" />
-                                            </div>
+                                            </div> -->
                                             <div class="content-inform">
                                                 <!-- <div>{{ !showDetail ? rowDetail.communityName : popCommunityName }}</div>
                                                 <div v-if="rowDetail">{{ rowDetail.pubDate }}</div>
@@ -531,6 +532,7 @@ export default {
     methods: {
         // 弹框关闭事件
         handleDialogClose(e) {
+            this.showDetail = false;
             // console.log('handleDialogClose=========', e);
             if (!!this.$refs.previeInform) {
                 this.$refs.previeInform.closeDialog();
@@ -722,7 +724,7 @@ export default {
             this.showUploadImage = false;
             this.ruleForm.issueRoom.staff = false;
             this.ruleForm.issueRoom.checkAll = false;
-            // this.showDetail = false;
+            this.showDetail = false;
             this.filePath = '';
             this.uploadFileUrl = [];
             this.fileList = [];
@@ -1047,6 +1049,7 @@ export default {
 
         /** 查看详情*/
         clickDatail(row) {
+            this.showDetail = false;
             // 弹框关闭事件
             // this.rowDetail = [];
             this.$http.get('/sc-community-web/notice/find/' + row.id).then((res) => {
@@ -1085,7 +1088,7 @@ export default {
                     this.successImageLists = JSON.parse(res.data.themePictrue);
                     this.contentHtml = res.data.content;
                     this.centerDialogVisible = true;
-                    this.showDetail = false;
+                    // this.showDetail = false;
                     if (!!this.$refs.previeInform) {
                         this.$refs.previeInform.closeDialog();
                     }

+ 8 - 8
operationSupport/vue.config.js

@@ -34,9 +34,9 @@ module.exports = {
                 viewportWidth: 1920 //传参
             });
 
-        // // 配置每次打包浏览器缓存文件名的随机性
-        const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`);
-        config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename);
+        // // // 配置每次打包浏览器缓存文件名的随机性
+        // const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`);
+        // config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename);
     },
     // 配置全局样式变量
     css: {
@@ -59,12 +59,12 @@ module.exports = {
             //         resources: path.relative(__dirname, '../src/assets/css/punlic-style.scss')
             //     }
             // })
-        },
-        extract: {
-            // 打包后css文件名称添加时间戳
-            filename: `css/[name].${new Date().getTime()}.css`,
-            chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
         }
+        // extract: {
+        //     // 打包后css文件名称添加时间戳
+        //     filename: `css/[name].${new Date().getTime()}.css`,
+        //     chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
+        // }
     },
     configureWebpack: {
         externals: {