Jelajahi Sumber

Merge branch 'master' of http://47.100.3.209:3000/gongdecai/wangluohuoyun-htqd

zhongtianhaoyuan 1 tahun lalu
induk
melakukan
cc484a2208

+ 17 - 8
src/router/officialWebsiteManagement/index.js

@@ -33,6 +33,7 @@ const officialWebsiteManagement = {
             meta: {
                 title: '公告信息新增',
                 icon: '',
+                module: 'changyuntong.sijiguanli.view'
 
             },
             hidden: true
@@ -44,7 +45,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/newsLook'),
             meta: {
                 title: '公告信息查看',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view'
             },
             hidden: true
         },
@@ -55,7 +57,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/newsEdit'),
             meta: {
                 title: '公告信息编辑',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view'
             },
             hidden: true
         },
@@ -77,7 +80,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/noticeAdd'),
             meta: {
                 title: '处理公示新增',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view'
             },
             hidden: true
         },
@@ -88,7 +92,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/noticeLook'),
             meta: {
                 title: '处理公示查看',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view'
             },
             hidden: true
         },
@@ -99,7 +104,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/noticeEdit'),
             meta: {
                 title: '处理公示编辑',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view'
             },
             hidden: true
         },
@@ -122,7 +128,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/publicityAdd'),
             meta: {
                 title: '行业资讯新增',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view',
             },
             hidden: true
         },
@@ -133,7 +140,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/publicityLook'),
             meta: {
                 title: '行业资讯查看',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view',
             },
             hidden: true
         },
@@ -144,7 +152,8 @@ const officialWebsiteManagement = {
                 import ('@/views/officialWebsiteManagement/publicityEdit'),
             meta: {
                 title: '行业资讯编辑',
-                icon: ''
+                icon: '',
+                module: 'changyuntong.sijiguanli.view',
             },
             hidden: true
         },

+ 5 - 1
src/views/officialWebsiteManagement/publicityAdd.vue

@@ -30,7 +30,7 @@
               @blur="onEditorBlur($event)" @focus="onEditorFocus($event)" @ready="onEditorReady($event)"
               ref="QuillEditor">
             </quill-editor>
-            <div v-html="form.releaseContent" />
+            <!-- <div v-html="form.releaseContent" /> -->
           </div>
           <!--            <quill-editor v-model="form.releaseContent" res="myQuillEditor" :options="editorOption" id="editor">
             </quill-editor> -->
@@ -163,6 +163,10 @@ export default {
     },
 
     submit() {
+      if(!this.form.cover){
+        this.$message.error('请上传封面图片!')
+        return
+      }
       this.listLoading = true
       this.form.contentType = '资讯'
       addFormData(this.form).then(response => {

+ 1 - 1
vue.config.js

@@ -56,7 +56,7 @@ module.exports = {
         },
         proxy: {
             '/pb': {
-                target: 'http://192.168.110.82:8099/',
+                target: 'https://api.changyuntong56.com',
                 // target: 'http://192.168.110.9:8099/',       
                 // target: 'https://apitest.changyuntong56.com',
                 changeOrigin: true, // 开启代理:在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题