Browse Source

bug修改

wangfei 6 years ago
parent
commit
2513504d04

+ 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
33
     poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
33
     poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
34
 
34
 
35
     // Use Eslint Loader?
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
     // linting errors and warnings will be shown in the console.
37
     // linting errors and warnings will be shown in the console.
38
     useEslint: true,
38
     useEslint: true,
39
     // If true, eslint errors and warnings will also be shown in the error overlay
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
             <el-table-column
321
             <el-table-column
322
               prop="BeginDate"
322
               prop="BeginDate"
323
               label="开始时间">
323
               label="开始时间">
324
+              <template slot-scope="scope">
325
+                <span>{{toolClass.dateFormat(scope.row.BeginDate, 'yyyy-MM-dd')}}</span>
326
+              </template>
324
             </el-table-column>
327
             </el-table-column>
325
             <el-table-column
328
             <el-table-column
326
               prop="EndDate"
329
               prop="EndDate"
327
               label="结束时间">
330
               label="结束时间">
331
+              <template slot-scope="scope">
332
+                <span>{{toolClass.dateFormat(scope.row.EndDate, 'yyyy-MM-dd')}}</span>
333
+              </template>
328
             </el-table-column>
334
             </el-table-column>
329
             <el-table-column
335
             <el-table-column
330
               prop="CourseType"
336
               prop="CourseType"

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

49
           label="有效期"
49
           label="有效期"
50
           width="150">
50
           width="150">
51
           <template slot-scope="scope">
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
             <span v-if="scope.row.StartDate.substr(0, 4) !== '0001'" style="width:100%;display:block;text-align:center;white-space: nowrap;">至</span>
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
             <span v-else>-</span>
55
             <span v-else>-</span>
56
           </template>
56
           </template>
57
         </el-table-column>
57
         </el-table-column>

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

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

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

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