许成详 6 年前
父节点
当前提交
707c71ca77
共有 3 个文件被更改,包括 8 次插入8 次删除
  1. 2
    2
      config/index.js
  2. 3
    3
      src/pages/system/cardAndCouponManager/givingRecords.vue
  3. 3
    3
      src/util/api.js

+ 2
- 2
config/index.js 查看文件

@@ -12,10 +12,10 @@ module.exports = {
12 12
     proxyTable: {
13 13
       '/api': {
14 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 16
         // target: 'http://127.0.0.1:8080', 
17 17
         // target: 'http://192.168.0.11', //ys
18
-        target: 'http://192.168.0.125:8080', //hyq
18
+        // target: 'http://192.168.0.125:8080', //hyq
19 19
         // target: 'http://dev.ycjcjy.com/', //frp
20 20
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
21 21
         // pathRewrite: {

+ 3
- 3
src/pages/system/cardAndCouponManager/givingRecords.vue 查看文件

@@ -127,11 +127,11 @@ export default {
127 127
       this.getList()
128 128
     },
129 129
     getList () { // 获取列表
130
-      this.$ajax(this.$api.caseManager.getRecordList.url, {
131
-        method: this.$api.caseManager.getRecordList.method,
130
+      this.$ajax(this.$api.record.getRecordList.url, {
131
+        method: this.$api.record.getRecordList.method,
132 132
         queryData: { ...this.postData, caseid: this.CaseId }
133 133
       }).then(res => {
134
-        console.log(JSON.stringify(res))
134
+        // console.log(JSON.stringify(res))
135 135
         this.currentList = res.list
136 136
         this.postData.page = res.page
137 137
         this.total = res.pagenum

+ 3
- 3
src/util/api.js 查看文件

@@ -1,5 +1,5 @@
1
-const baseUrl = '/api-v2'
2
-// const baseUrl = '/api'
1
+// const baseUrl = '/api-v2'
2
+const baseUrl = '/api'
3 3
 const common = '/common/:org'
4 4
 const guest = '/guest/:org'
5 5
 
@@ -821,7 +821,7 @@ const $api = {
821 821
   record: {
822 822
     getRecordList: {
823 823
       method: 'get',
824
-      url: `${baseUrl}${common}/card/record`
824
+      url: `${baseUrl}${common}/record`
825 825
     }
826 826
   }
827 827
 }