yuantianjiao 6 年之前
父節點
當前提交
37bf9ec5a1

+ 2
- 0
src/components/material.vue 查看文件

@@ -167,6 +167,8 @@ export default {
167 167
             })
168 168
           }
169 169
         })
170
+      }).catch(() => {
171
+        this.isLoading = false
170 172
       })
171 173
     }
172 174
   }

+ 6
- 3
src/pages/main/menuConfig/menuConfig.vue 查看文件

@@ -92,7 +92,7 @@ export default {
92 92
           console.log('检查修改')
93 93
           this.$Modal.confirm({
94 94
             title: '警告',
95
-            content: `<p style='font-size:18px;'>您已编辑过此菜单,确认放弃编辑?<p>`,
95
+            content: `<p style='font-size:16px;'>您已编辑过此菜单,确认放弃编辑?<p>`,
96 96
             onOk: () => {
97 97
               this.formActive = false
98 98
               this.hasContent = hasContent
@@ -115,16 +115,19 @@ export default {
115 115
     checkForm (data) {
116 116
       if (this.chooseTag.type === 0) {
117 117
         this.addMainMenu(data)
118
+        this.clear({ type: 0 })
118 119
       } else if (this.chooseTag.type === 1) {
119 120
         this.setMainMenu(data, this.chooseTag.index)
121
+        this.clear({ type: 1, index: this.chooseTag.index })
120 122
       } else if (this.chooseTag.type === 2) {
121 123
         this.addSubMenu(data, this.chooseTag.parentIndex)
124
+        this.clear({ type: 2, parentIndex: this.chooseTag.parentIndex })
122 125
       } else if (this.chooseTag.type === 3) {
123 126
         this.setSubMenu(data, this.chooseTag.index, this.chooseTag.parentIndex)
127
+        this.clear({ type: 3, index: this.chooseTag.index, parentIndex: this.chooseTag.parentIndex })
124 128
       }
125 129
       this.Changed(false)
126 130
       this.$Message.success('设置成功')
127
-      this.clear()
128 131
       // this.formActive = false
129 132
     },
130 133
     addMainMenuClick () {
@@ -222,7 +225,7 @@ export default {
222 225
       if (this.changed) {
223 226
         this.$Modal.confirm({
224 227
           title: '警告',
225
-          content: `<p style='font-size:18px;'>当前编辑的菜单未保存,若确认发布,当前未保存菜单不会生效,是否确认发布?<p>`,
228
+          content: `<p style='font-size:16px;'>当前编辑的菜单未保存,若确认发布,当前未保存菜单不会生效,是否确认发布?<p>`,
226 229
           onOk: () => {
227 230
             this.setWechatMenu().then(() => {
228 231
               this.$Message.success('发布成功')

+ 4
- 4
src/pages/main/reply/editReply.vue 查看文件

@@ -54,12 +54,12 @@ export default {
54 54
           this.menuData.value = this.MessageParagraph
55 55
         } else if (this.MessageType === 'img') {
56 56
           this.menuData.type = 'media_id'
57
-          this.menuData.media_id = ''
58
-          this.menuData.url = this.MessageImg
57
+          this.menuData.media_id = this.MessageImg
58
+          this.menuData.url = this.Url
59 59
         } else if (this.MessageType === 'content') {
60 60
           this.menuData.type = 'view'
61
-          this.menuData.media_id = ''
62
-          this.menuData.url = this.MessageContent
61
+          this.menuData.media_id = this.MessageContent
62
+          this.menuData.url = this.Url
63 63
         }
64 64
         this.showMenu = true
65 65
       })

+ 7
- 5
src/pages/main/reply/reply.vue 查看文件

@@ -47,7 +47,9 @@ export default {
47 47
         {
48 48
           title: '回复内容',
49 49
           align: 'center',
50
-          key: 'MessageParagraph'
50
+          render: (h, params) => {
51
+            return params.row.MessageType === 'paragraph' ? h('span', {}, params.row.MessageParagraph) : h('img', { attrs: { src: params.row.Url }, style: { 'width': '60px', 'padding': '5px' } }, '')
52
+          }
51 53
         },
52 54
         {
53 55
           title: '匹配',
@@ -104,12 +106,12 @@ export default {
104 106
         this.menuData.value = this.Subscribe.MessageParagraph
105 107
       } else if (this.Subscribe.MessageType === 'img') {
106 108
         this.menuData.type = 'media_id'
107
-        this.menuData.media_id = ''
108
-        this.menuData.url = this.Subscribe.MessageImg
109
+        this.menuData.media_id = this.Subscribe.MessageImg
110
+        this.menuData.url = this.Subscribe.Url
109 111
       } else if (this.Subscribe.MessageType === 'content') {
110 112
         this.menuData.type = 'view'
111
-        this.menuData.media_id = ''
112
-        this.menuData.url = this.Subscribe.MessageContent
113
+        this.menuData.media_id = this.Subscribe.MessageContent
114
+        this.menuData.url = this.Subscribe.MessageImg
113 115
       }
114 116
       this.showMenu = true
115 117
     })

+ 12
- 2
src/store/menuConfig.js 查看文件

@@ -158,8 +158,18 @@ export default {
158 158
         }).catch(reject)
159 159
       })
160 160
     },
161
-    clear (context) {
162
-      context.commit('clearMenu')
161
+    clear (context, data) {
162
+      if (data.type === 0) {
163
+        data.index = context.state.menuJson.button.length - 1
164
+        context.commit('updateMainActive', data)
165
+      } else if (data.type === 1) {
166
+        context.commit('updateMainActive', data)
167
+      } else if (data.type === 2) {
168
+        data.index = context.state.menuJson.button[data.parentIndex].sub_button.length - 1
169
+        context.commit('updateSubActive', data)
170
+      } else if (data.type === 3) {
171
+        context.commit('updateSubActive', data)
172
+      }
163 173
     },
164 174
     AddMainMenu (context, data) {
165 175
       context.commit('updateAddMain', data)

+ 1
- 1
src/store/reply.js 查看文件

@@ -60,7 +60,7 @@ export default {
60 60
           }
61 61
         }).then((res) => {
62 62
           context.commit('updateSubscribe', res)
63
-          resolve()
63
+          resolve() 
64 64
         }).catch(reject)
65 65
       })
66 66
     },

+ 3
- 3
vue.config.js 查看文件

@@ -6,10 +6,10 @@ module.exports = {
6 6
   devServer: {
7 7
     proxy: {
8 8
       '/api': {
9
-        target: 'http://wechatconfig.ycjcjy.com',
9
+        // target: 'http:///wechatconfig-dev.ycjcjy.com',
10 10
         // target: 'http://192.168.0.62:8080', // wf
11
-        // target: 'http://192.168.0.102:8080', // hyq
12
-        // target: 'http://192.168.0.11', // ys
11
+        target: 'http://192.168.0.102:8080', // hyq
12
+        // target: 'http://192.168.0.11', // zys
13 13
         // target: 'http://dev.ycjcjy.com', // frp
14 14
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
15 15
         // pathRewrite: {