Bladeren bron

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/admin into dev

许成详 6 jaren geleden
bovenliggende
commit
3c62a90a22

+ 2
- 2
config/index.js Bestand weergeven

@@ -14,9 +14,9 @@ module.exports = {
14 14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15 15
         // target: 'http://192.168.0.62:8080', //wf
16 16
         // target: 'http://127.0.0.1:8080', 
17
-        // target: 'http://192.168.0.62:8080', //wf
17
+        target: 'http://localhost:8080', //wf
18 18
         // target: 'http://192.168.0.11', //ys
19
-        target: 'http://192.168.0.125:8080', //hyq
19
+        // target: 'http://192.168.0.125:8080', //hyq
20 20
         // target: 'http://dev.ycjcjy.com/', //frp
21 21
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
22 22
         // pathRewrite: {

+ 10
- 12
src/pages/system/cardAndCouponManager/givingRecords.vue Bestand weergeven

@@ -91,14 +91,12 @@ export default {
91 91
         page: 1, // 当前页码
92 92
         pagesize: 10, // 请求数据量
93 93
       },
94
-      currentList: [{
95
-        xxx: 'xxx'
96
-      }]
94
+      currentList: []
97 95
     }
98 96
   },
99 97
   mounted () {
100 98
     this.$nextTick(function () {
101
-      // this.getList()
99
+      this.getList()
102 100
     })
103 101
   },
104 102
   computed: {
@@ -122,14 +120,14 @@ export default {
122 120
       this.getList()
123 121
     },
124 122
     getList () { // 获取列表
125
-      // this.$ajax(this.$api.channelManager.getChannelList.url, {
126
-      //   method: this.$api.channelManager.getChannelList.method,
127
-      //   queryData: { ...this.postData, caseid: this.CaseId }
128
-      // }).then(res => {
129
-      //   this.currentList = res.list
130
-      //   this.postData.page = res.page
131
-      //   this.total = res.pagenum
132
-      // })
123
+      this.$ajax(this.$api.channelManager.getChannelList.url, {
124
+        method: this.$api.channelManager.getChannelList.method,
125
+        queryData: { ...this.postData, caseid: this.CaseId }
126
+      }).then(res => {
127
+        this.currentList = res.list
128
+        this.postData.page = res.page
129
+        this.total = res.pagenum
130
+      })
133 131
     },
134 132
     handleCurrentChange (val) { // 跳转到分页
135 133
       this.getList()

+ 10
- 2
src/pages/system/goodsManager/goodManager/edit.vue Bestand weergeven

@@ -76,7 +76,7 @@
76 76
           <span>商品类别:<em>*</em></span>
77 77
           <div class="flex-item">
78 78
             <div style="width:50%">
79
-              <el-select v-model="detail.TypeId" placeholder="请选择商品类型">
79
+              <el-select v-model="TypeId" placeholder="请选择商品类型">
80 80
                 <el-option
81 81
                   v-for="item in types.list"
82 82
                   :key="item.TypeId"
@@ -143,7 +143,15 @@ export default {
143 143
     },
144 144
     Image () {
145 145
       return ((this.detail.Images || [])[0] || {}).ImgUrl
146
-    }
146
+    },
147
+    TypeId: {
148
+      get () {
149
+        return this.detail.TypeId
150
+      },
151
+      set (val) {
152
+        this.UpdateInfo({ ...this.detail, TypeId: val })
153
+      },
154
+    },
147 155
   },
148 156
   methods: {
149 157
     ...mapGoodsActions([

+ 1
- 1
src/pages/system/goodsManager/goodsTypeManager/add.vue Bestand weergeven

@@ -9,7 +9,7 @@
9 9
               <el-input
10 10
                 placeholder="请输入商品种类"
11 11
                 v-model="postData.TypeName"
12
-                maxlength="10"
12
+                maxlength="6"
13 13
                 clearable>
14 14
               </el-input>
15 15
             </div>

+ 1
- 1
src/pages/system/goodsManager/goodsTypeManager/edit.vue Bestand weergeven

@@ -9,7 +9,7 @@
9 9
               <el-input
10 10
                 placeholder="请输入商品种类"
11 11
                 v-model="postData.TypeName"
12
-                maxlength="10"
12
+                maxlength="6"
13 13
                 clearable>
14 14
               </el-input>
15 15
             </div>

+ 1
- 1
src/pages/system/newOrder/newOrderList/index.vue Bestand weergeven

@@ -231,7 +231,7 @@ export default {
231 231
       console.log(this.user)
232 232
       let caseid = this.caseid
233 233
       let id = this.userInfo.UserId
234
-      const wsuri = `${window.location.origin.replace('http', 'ws')}/api-v2/common/MQ/websocket/${caseid}/${id}`
234
+      const wsuri = `${window.location.origin.replace('http', 'ws')}/api-v2/common/MQ/websocket/${caseid}/${id}?token=${localStorage.getItem('JWT')}`
235 235
       // const wsuri = `ws://192.168.0.11/api/guest/MQ/websocket/${caseid}/${id}`
236 236
       try {
237 237
         this.websock = new WebSocket(wsuri)