230320a303 1 year ago
parent
commit
e5e95f6e22

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-0168461c.7ac35520.css → dist/static/css/chunk-6ca808bc.7ac35520.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.4cc4475c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-6ca808bc.6d6f6d0e.js


+ 53 - 0
src/views/activity/components/searchForm/Dtl.vue

@@ -0,0 +1,53 @@
+<template>
+    <base-form slot="content" ref="ruleForm" :data="searchData">
+      <div slot="footer">
+        <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询</el-button>
+        <el-button :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc2" @click="toExportExcel">导出</el-button>
+        <!-- <el-button :loading="listLoading" icon="el-icon-plus" class="xl-form-btn bgc2" @click="addHandle">添加客户</el-button> -->
+      </div>
+    </base-form>
+</template>
+<script>
+export default {
+  name: 'custIndex',
+  mixins: [],
+  props: {
+    listLoading: Boolean
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      searchData: [
+        { label: '时间', label2: '开始时间', label3: '结束时间', key: 'startEndTime', type: 'datePicker'},
+      ]
+    }
+  },
+  methods: {
+    searchHandle() {
+      const oldform = this.$refs.ruleForm.baseForm
+      const newForm = { ...oldform }
+      if (newForm.startEndTime) {
+        newForm.start_at = newForm.startEndTime[0]
+        newForm.end_at = newForm.startEndTime[1]
+      }
+      delete newForm.startEndTime
+      this.$emit('change', newForm)
+    },
+    toExportExcel () {
+      const oldform = this.$refs.ruleForm.baseForm
+      const newForm = { ...oldform }
+      const q = this.$route.query || {}
+      if (newForm.startEndTime) {
+        newForm.start_at = newForm.startEndTime[0]
+        newForm.end_at = newForm.startEndTime[1]
+        delete newForm.startEndTime
+      } else {
+        this.$msgw('请选择导出的时间范围')
+        return
+      }
+      const token = window.sessionStorage.getItem('fp_token')
+      window.open(`https://api.fangpiaovip.com/adm/activity/enrol/export?token=${encodeURIComponent(token)}&start_at=${newForm.start_at}&end_at=${newForm.end_at}&activity_id=${q.id}`)
+    }
+  }
+}
+</script>

+ 3 - 3
src/views/activity/dtl.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <!-- <search-form/> -->
+    <search-form/>
     <table-list
       :listLoading="listLoading"
       :data="tableData2"
@@ -19,13 +19,13 @@
 </template>
 <script>
 // import { arrToObj } from '@/utils'
-// import SearchForm from './components/searchForm/DictDtl'
+import SearchForm from './components/searchForm/Dtl'
 // import DictEdit from './components/popup/DictDtlEdit'
 import baseTable from '_m/baseTable.js'
 export default {
   // name: 'basePublicDictSys',
   components: {
-    // SearchForm,
+    SearchForm,
     // DictEdit
   },
   provide () {

Some files were not shown because too many files changed in this diff