|
|
@@ -0,0 +1,112 @@
|
|
|
+<template>
|
|
|
+ <div class="edit-view">
|
|
|
+<!-- <page-title>
|
|
|
+ <el-button
|
|
|
+ @click="download"
|
|
|
+ icon="el-icon-upload2"
|
|
|
+ :loading="downloading"
|
|
|
+ :disabled="fetchingData"
|
|
|
+ class="filter-item"
|
|
|
+ >
|
|
|
+ 导出
|
|
|
+ </el-button>
|
|
|
+ </page-title>
|
|
|
+ <div class="filters-container">
|
|
|
+ <el-input
|
|
|
+ placeholder="搜索..."
|
|
|
+ v-model="search"
|
|
|
+ clearable
|
|
|
+ class="filter-item search"
|
|
|
+ @keyup.enter.native="getData"
|
|
|
+ >
|
|
|
+ <el-button @click="getData" slot="append" icon="el-icon-search"></el-button>
|
|
|
+ </el-input>
|
|
|
+ </div>-->
|
|
|
+
|
|
|
+ <el-table
|
|
|
+ :data="formData"
|
|
|
+ style="width: 100%">
|
|
|
+ <el-table-column prop="userId" label="用户ID"></el-table-column>
|
|
|
+ <el-table-column prop="nickname" label="姓名"></el-table-column>
|
|
|
+ <el-table-column prop="phone" label="手机"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import {mapState} from 'vuex';
|
|
|
+import pageableTable from '@/mixins/pageableTable';
|
|
|
+import VueQrcode from '@chenfengyuan/vue-qrcode';
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'SubscribeList',
|
|
|
+ created() {
|
|
|
+ if (this.$route.query.id) {
|
|
|
+ this.$http
|
|
|
+ .get('subscribe/qualificationsFilterNameList/' + this.$route.query.id)
|
|
|
+ .then(res => {
|
|
|
+ this.formData = res;
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.$message.error(e.error);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ // multipleMode: false,
|
|
|
+ // search: '',
|
|
|
+ // downloading: false,
|
|
|
+ // showDialog: false,
|
|
|
+ formData: [],
|
|
|
+ /* rules: {
|
|
|
+ userId: "",
|
|
|
+ nickname: "",
|
|
|
+ phone: "",
|
|
|
+ }*/
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ /* selection() {
|
|
|
+ return this.$refs.table.selection.map(i => i.id);
|
|
|
+ }*/
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ /* beforeGetData() {
|
|
|
+ return {search: this.search, query: {del: false}};
|
|
|
+ },*/
|
|
|
+ /* toggleMultipleMode(multipleMode) {
|
|
|
+ this.multipleMode = multipleMode;
|
|
|
+ if (!multipleMode) {
|
|
|
+ this.$refs.table.clearSelection();
|
|
|
+ }
|
|
|
+ },*/
|
|
|
+ /* download() {
|
|
|
+ this.downloading = true;
|
|
|
+ this.$axios
|
|
|
+ .get('/invite/excel', {
|
|
|
+ responseType: 'blob',
|
|
|
+ params: {size: 10000}
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.downloading = false;
|
|
|
+ const downloadUrl = window.URL.createObjectURL(new Blob([res.data]));
|
|
|
+ const link = document.createElement('a');
|
|
|
+ link.href = downloadUrl;
|
|
|
+ link.setAttribute('download', res.headers['content-disposition'].split('filename=')[1]);
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ link.remove();
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.downloading = false;
|
|
|
+ this.$message.error(e.error);
|
|
|
+ });
|
|
|
+ },*/
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="less" scoped>
|
|
|
+</style>
|