Browse Source

bug修改

wangfei 6 years ago
parent
commit
2513504d04

+ 2
- 2
config/index.js View File

@@ -14,7 +14,7 @@ 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 19
         // target: 'http://192.168.0.125:8080', //hyq
20 20
         // target: 'http://dev.ycjcjy.com/', //frp
@@ -33,7 +33,7 @@ module.exports = {
33 33
     poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
34 34
 
35 35
     // Use Eslint Loader?
36
-    // If true, your code will be linted during bundling and
36
+    // If true, your code will be linted during bundling aynd
37 37
     // linting errors and warnings will be shown in the console.
38 38
     useEslint: true,
39 39
     // If true, eslint errors and warnings will also be shown in the error overlay

+ 6
- 0
src/pages/system/cardAndCouponManager/couponManager/edit.vue View File

@@ -321,10 +321,16 @@
321 321
             <el-table-column
322 322
               prop="BeginDate"
323 323
               label="开始时间">
324
+              <template slot-scope="scope">
325
+                <span>{{toolClass.dateFormat(scope.row.BeginDate, 'yyyy-MM-dd')}}</span>
326
+              </template>
324 327
             </el-table-column>
325 328
             <el-table-column
326 329
               prop="EndDate"
327 330
               label="结束时间">
331
+              <template slot-scope="scope">
332
+                <span>{{toolClass.dateFormat(scope.row.EndDate, 'yyyy-MM-dd')}}</span>
333
+              </template>
328 334
             </el-table-column>
329 335
             <el-table-column
330 336
               prop="CourseType"

+ 2
- 2
src/pages/system/cardAndCouponManager/couponManager/index.vue View File

@@ -49,9 +49,9 @@
49 49
           label="有效期"
50 50
           width="150">
51 51
           <template slot-scope="scope">
52
-            <span v-if="scope.row.StartDate.substr(0, 4) !== '0001'" style="width:100%;display:block;text-align:center;white-space: nowrap;">{{toolClass.dateFormat(scope.row.StartDate)}}</span>
52
+            <span v-if="scope.row.StartDate.substr(0, 4) !== '0001'" style="width:100%;display:block;text-align:center;white-space: nowrap;">{{toolClass.dateFormat(scope.row.StartDate, 'yyyy-MM-dd')}}</span>
53 53
             <span v-if="scope.row.StartDate.substr(0, 4) !== '0001'" style="width:100%;display:block;text-align:center;white-space: nowrap;">至</span>
54
-            <span v-if="scope.row.StartDate.substr(0, 4) !== '0001'" style="width:100%;display:block;text-align:center;white-space: nowrap;">{{toolClass.dateFormat(scope.row.EndDate)}}</span>
54
+            <span v-if="scope.row.StartDate.substr(0, 4) !== '0001'" style="width:100%;display:block;text-align:center;white-space: nowrap;">{{toolClass.dateFormat(scope.row.EndDate, 'yyyy-MM-dd')}}</span>
55 55
             <span v-else>-</span>
56 56
           </template>
57 57
         </el-table-column>

+ 5
- 4
src/pages/system/marketingActivities/addActivities/index.vue View File

@@ -62,8 +62,8 @@
62 62
           </div>
63 63
         </li>
64 64
         <li style="text-align:center">
65
-          <el-button type="warning" size="mini" @click="redirection('activitiesList')">返回</el-button>
66 65
           <el-button type="primary" size="mini" @click="submitData">提交</el-button>
66
+          <el-button type="warning" size="mini" @click="redirection('activitiesList')">返回</el-button>
67 67
         </li>
68 68
       </ul>
69 69
     </form>
@@ -153,10 +153,11 @@ export default {
153 153
     getCouponList () {
154 154
       this.$ajax(this.$api.marketingActivities.getCouponList.url, {
155 155
         method: this.$api.marketingActivities.getCouponList.method,
156
-        queryData: {}
156
+        urlData: {
157
+          type: 'system',
158
+        },
157 159
       }).then(res => {
158
-        // console.log(res)
159
-        this.giftList = res.list
160
+        this.giftList = res
160 161
         this.giftOptions = this.giftData
161 162
       })
162 163
     },

+ 1
- 1
src/util/api.js View File

@@ -707,7 +707,7 @@ const $api = {
707 707
     },
708 708
     getCouponList: { // 获取赠券卡券类型
709 709
       method: 'get',
710
-      url: `${baseUrl}${common}/coupon`
710
+      url: `${baseUrl}${common}/coupon/type/:type`
711 711
     }
712 712
   },
713 713
   statistics: {