Browse Source

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

许成详 6 years ago
parent
commit
3c62a90a22

+ 2
- 2
config/index.js View File

14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15
         // target: 'http://192.168.0.62:8080', //wf
15
         // target: 'http://192.168.0.62:8080', //wf
16
         // target: 'http://127.0.0.1:8080', 
16
         // target: 'http://127.0.0.1:8080', 
17
-        // target: 'http://192.168.0.62:8080', //wf
17
+        target: 'http://localhost:8080', //wf
18
         // target: 'http://192.168.0.11', //ys
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
         // target: 'http://dev.ycjcjy.com/', //frp
20
         // target: 'http://dev.ycjcjy.com/', //frp
21
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
21
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
22
         // pathRewrite: {
22
         // pathRewrite: {

+ 10
- 12
src/pages/system/cardAndCouponManager/givingRecords.vue View File

91
         page: 1, // 当前页码
91
         page: 1, // 当前页码
92
         pagesize: 10, // 请求数据量
92
         pagesize: 10, // 请求数据量
93
       },
93
       },
94
-      currentList: [{
95
-        xxx: 'xxx'
96
-      }]
94
+      currentList: []
97
     }
95
     }
98
   },
96
   },
99
   mounted () {
97
   mounted () {
100
     this.$nextTick(function () {
98
     this.$nextTick(function () {
101
-      // this.getList()
99
+      this.getList()
102
     })
100
     })
103
   },
101
   },
104
   computed: {
102
   computed: {
122
       this.getList()
120
       this.getList()
123
     },
121
     },
124
     getList () { // 获取列表
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
     handleCurrentChange (val) { // 跳转到分页
132
     handleCurrentChange (val) { // 跳转到分页
135
       this.getList()
133
       this.getList()

+ 10
- 2
src/pages/system/goodsManager/goodManager/edit.vue View File

76
           <span>商品类别:<em>*</em></span>
76
           <span>商品类别:<em>*</em></span>
77
           <div class="flex-item">
77
           <div class="flex-item">
78
             <div style="width:50%">
78
             <div style="width:50%">
79
-              <el-select v-model="detail.TypeId" placeholder="请选择商品类型">
79
+              <el-select v-model="TypeId" placeholder="请选择商品类型">
80
                 <el-option
80
                 <el-option
81
                   v-for="item in types.list"
81
                   v-for="item in types.list"
82
                   :key="item.TypeId"
82
                   :key="item.TypeId"
143
     },
143
     },
144
     Image () {
144
     Image () {
145
       return ((this.detail.Images || [])[0] || {}).ImgUrl
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
   methods: {
156
   methods: {
149
     ...mapGoodsActions([
157
     ...mapGoodsActions([

+ 1
- 1
src/pages/system/goodsManager/goodsTypeManager/add.vue View File

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

+ 1
- 1
src/pages/system/goodsManager/goodsTypeManager/edit.vue View File

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

+ 1
- 1
src/pages/system/newOrder/newOrderList/index.vue View File

231
       console.log(this.user)
231
       console.log(this.user)
232
       let caseid = this.caseid
232
       let caseid = this.caseid
233
       let id = this.userInfo.UserId
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
       // const wsuri = `ws://192.168.0.11/api/guest/MQ/websocket/${caseid}/${id}`
235
       // const wsuri = `ws://192.168.0.11/api/guest/MQ/websocket/${caseid}/${id}`
236
       try {
236
       try {
237
         this.websock = new WebSocket(wsuri)
237
         this.websock = new WebSocket(wsuri)