zhangdan 4 年之前
父節點
當前提交
5c370c530f
共有 2 個文件被更改,包括 5 次插入161 次删除
  1. 5 15
      src/config/router.config.js
  2. 0 146
      src/views/CouponStatistics/CouponStatisticsDetail.vue

+ 5 - 15
src/config/router.config.js

@@ -67,9 +67,9 @@ export const asyncRouterMap = [
       redirect: '/CouponStatistics/CouponStatistics',
       component: PageView,
       meta: {
-        title: '优惠券统计',
-        icon: 'setting'
-        // permission: 'M_setting_0'
+        title: '券统计',
+        icon: 'setting',
+        permission: 'M_CouponStatistics_0'
       },
       children: [{
         path: '/CouponStatistics/CouponStatisticsList',
@@ -77,18 +77,8 @@ export const asyncRouterMap = [
         component: () => import('@/views/CouponStatistics/CouponStatisticsList.vue'),
         meta: {
           title: '优惠券统计',
-          icon: 'setting'
-          // permission: 'M_sys_dataDictionary'
-        }
-      },
-      {
-        path: '/CouponStatistics/CouponStatisticsDetail',
-        name: 'CouponStatisticsDetail',
-        component: () => import('@/views/CouponStatistics/CouponStatisticsDetail.vue'),
-        meta: {
-          title: '优惠券领取详情',
-          icon: 'setting'
-          // permission: 'M_sys_dataDictionary'
+          icon: 'setting',
+          permission: 'M_CouponStatistics_List'
         }
       }
       ]

+ 0 - 146
src/views/CouponStatistics/CouponStatisticsDetail.vue

@@ -1,146 +0,0 @@
-<template>
-  <a-card :bordered="false">
-    <!-- 搜索条件 -->
-    <h3 class="coupon-detail-title" v-model="title">{{title}},领取详情</h3>
-    <a-divider />
-    <div class="CouponStatisticsDetail-searchForm">
-      <a-form ref="searchForm" labelAlign="left">
-        <a-row :gutter="48">
-          <a-col :span="6">
-            <a-form-item label="领券时间" :label-col="{ span:6 }" :wrapper-col="{ span:14 }">
-              <a-range-picker v-model="time" :format="dateFormat" :placeholder="['开始时间','结束时间']" @change="onChange" />
-            </a-form-item>
-          </a-col>
-          <a-col :span="6">
-            <a-form-item label="手机号码" :label-col="{ span:6 }" :wrapper-col="{ span:12}">
-              <a-input v-model.trim="searchForm.name" placeholder="请输入" allowClear/>
-            </a-form-item>
-          </a-col>
-          <a-col :span="6">
-            <a-form-item label="领券网点" :label-col="{ span:6 }" :wrapper-col="{ span:12}">
-              <a-input v-model.trim="searchForm.name" placeholder="请输入" allowClear/>
-            </a-form-item>
-          </a-col>
-        </a-row>
-        <a-row :gutter="48">
-          <a-col :span="6">
-            <a-form-item label="用券时间" :label-col="{ span:6 }" :wrapper-col="{ span:14 }">
-              <a-range-picker v-model="time" :format="dateFormat" :placeholder="['开始时间','结束时间']" @change="onChange" />
-            </a-form-item>
-          </a-col>
-          <a-col :span="6">
-            <a-form-item label="使用状态" :label-col="{ span:6 }" :wrapper-col="{ span:12}">
-              <v-select v-model="searchForm.couponType" placeholder="请选择" allowClear></v-select>
-            </a-form-item>
-          </a-col>
-          <a-col :span="6">
-            <a-form-item label="用券网点" :label-col="{ span:6 }" :wrapper-col="{ span:12}">
-              <a-input v-model.trim="searchForm.name" placeholder="请输入" allowClear/>
-            </a-form-item>
-          </a-col>
-          <a-col :span="6">
-            <a-button style="margin-right: 10px;" type="primary" @click="$refs.table.refresh(true)">查询</a-button>
-            <a-button type="" @click="resetForm">重置</a-button>
-          </a-col>
-        </a-row>
-      </a-form>
-    </div>
-    <!-- 列表 -->
-    <s-table ref="table" size="default" :rowKey="(record) => record.id" :columns="columns" :data="loadData" bordered>
-      <!-- 状态 -->
-      <span slot="status" slot-scope="text, record">
-        <template></template>
-      </span>
-    </s-table>
-  </a-card>
-</template>
-
-<script>
-  import {
-    STable,
-    VSelect
-  } from '@/components'
-  export default{
-    components:{ STable,VSelect },
-    data(){
-      return{
-        searchForm:{
-          name:'',
-        },
-        title:"3元代金券",
-        columns: [{
-            title: '序号',
-            dataIndex: 'no',
-            minWidth: '40',
-            align: 'center'
-          },
-        
-          {
-            title: '领券时间',
-            dataIndex: 'no',
-            minWidth: '40',
-            align: 'center'
-          },
-          {
-            title: '领券手机号码',
-            dataIndex: 'no',
-            minWidth: '40',
-            align: 'center'
-          },
-          {
-            title: '使用状态',
-            dataIndex: 'no',
-            minWidth: '40',
-            align: 'center'
-          },
-          {
-            title: '用券网点',
-            dataIndex: 'no',
-            minWidth: '40',
-            align: 'center'
-          },
-          {
-            title: '用券时间',
-            dataIndex: 'no',
-            minWidth: '40',
-            align: 'center'
-          },
-          {
-            title: '关联消费金额',
-            dataIndex: 'no',
-            minWidth: '40',
-            align: 'center'
-          }
-        ],
-        // 加载数据方法 必须为 Promise 对象
-        loadData: parameter => {
-          // return getTenantsList(Object.assign(parameter, this.searchForm)).then(res => {
-          //   if (res.status == 200) {
-          //     const no = (res.data.pageNo - 1) * res.data.pageSize
-          //     for (let i = 0; i < res.data.list.length; i++) {
-          //       const _item = res.data.list[i]
-          //       _item.no = no + i + 1
-          //       _item.status = _item.status + '' === '1'
-          //     }
-          //     return res.data
-          //   }
-          // })
-        }
-      }
-    },
-    methods:{
-      // 重置
-      resetForm(){
-        this.$refs.searchForm.resetFields()
-        this.$refs.table.refresh(true)
-      }
-    }
-  }
-</script>
-
-<style lang="less">
-  .coupon-detail-title{
-    margin-bottom: 20px;
-    margin-left: 20px;
-  }
-</style>