|
@@ -85,11 +85,11 @@
|
|
|
<el-button type="primary" @click="getList">查询</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-table v-loading="isLoading" :data="tableData" height="550" border style="width: 100%">
|
|
|
- <el-table-column prop="clubName" label="机构名称" width="180" />
|
|
|
- <el-table-column prop="linkMan" label="联系人" width="180" />
|
|
|
- <el-table-column prop="mobile" label="手机号" />
|
|
|
- <el-table-column prop="status" label="会员状态">
|
|
|
+ <el-table v-loading="isLoading" :data="tableData" border style="width: 100%" :height="580">
|
|
|
+ <el-table-column prop="clubName" label="机构名称" align="center" />
|
|
|
+ <el-table-column prop="linkMan" label="联系人" align="center" />
|
|
|
+ <el-table-column prop="mobile" label="手机号" align="center" />
|
|
|
+ <el-table-column prop="status" label="会员状态" align="center" width="180">
|
|
|
<template slot-scope="{ row }">
|
|
|
<span v-if="row.status === '1'" class="el-span-status">
|
|
|
已生效
|
|
@@ -102,9 +102,9 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="75">
|
|
|
+ <el-table-column label="操作" align="center" width="180">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button type="text" size="mini" @click="handleTagsList(row)">购买记录</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="handleTagsList(row)">购买记录</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -120,43 +120,45 @@
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <div class="filter-container">
|
|
|
- <div class="filter-control">
|
|
|
- <el-form :model="form" label-width="120px">
|
|
|
- <el-form-item label="机构" :hidden="!hiddenItem">
|
|
|
- <el-button type="text" size="mini" @click="getclubList()">请选择机构</el-button>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="机构" :hidden="hiddenItem">
|
|
|
- <el-table :data="clubData" border>
|
|
|
- <el-table-column prop="clubId" label="机构Id" />
|
|
|
- <el-table-column prop="name" label="机构名称" width="150px" />
|
|
|
- <el-table-column prop="linkMan" label="联系人" />
|
|
|
- <el-table-column prop="contractMobile" label="手机号" width="120px" />
|
|
|
- <el-table-column label="操作">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <el-button type="text" @click="deleteClub(row)">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="赠送会员">
|
|
|
- <el-input v-model="form.month" size="mini" style="width: 150px">
|
|
|
- <template slot="append">个月</template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" size="mini" @click="save()">保存</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <div class="club-container" style="width: 100%;height: 600px;padding-top: 40px;">
|
|
|
+ <div class="filter-container">
|
|
|
+ <div class="filter-control">
|
|
|
+ <el-form :model="form" label-width="120px">
|
|
|
+ <el-form-item label="机构" :hidden="!hiddenItem">
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-plus" @click="handleDialogVisible">请选择机构</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="机构" :hidden="hiddenItem">
|
|
|
+ <el-table :data="clubData" border width="1000">
|
|
|
+ <el-table-column prop="clubId" label="机构ID" align="center" width="120" />
|
|
|
+ <el-table-column prop="name" label="机构名称" align="center" width="250" />
|
|
|
+ <el-table-column prop="linkMan" label="联系人" align="center" width="120" />
|
|
|
+ <el-table-column prop="contractMobile" label="手机号" align="center" width="120" />
|
|
|
+ <el-table-column label="操作" align="center" width="120">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-button type="danger" size="mini" @click="deleteClub(row)">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="赠送会员">
|
|
|
+ <el-input v-model="form.month" style="width: 150px">
|
|
|
+ <template slot="append">个月</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="save()">保存</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-tabs>
|
|
|
<!-- 机构弹框 -->
|
|
|
- <el-dialog title="选择机构" :visible.sync="dialogTableVisible" width="50%">
|
|
|
+ <el-dialog title="选择机构" :visible.sync="dialogTableVisible" width="1000px">
|
|
|
<div class="filter-container">
|
|
|
<div class="filter-control">
|
|
|
- <span>机构Id:</span>
|
|
|
+ <span>机构ID:</span>
|
|
|
<el-input
|
|
|
v-model="clubForm.clubId"
|
|
|
placeholder="机构Id"
|
|
@@ -183,17 +185,17 @@
|
|
|
<el-button type="primary">搜索</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-table ref="table" :data="clubTableData" height="350px" @select="handleSelect">
|
|
|
+ <el-table ref="table" :data="clubTableData" height="350px" border @select="handleSelect">
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
- <el-table-column property="clubId" label="机构Id" width="150" />
|
|
|
- <el-table-column property="name" label="机构名称" width="150" />
|
|
|
- <el-table-column property="shortName" label="机构简称" width="200" />
|
|
|
- <el-table-column property="linkMan" label="联系人" />
|
|
|
- <el-table-column property="contractMobile" label="手机号" />
|
|
|
+ <el-table-column property="clubId" label="机构Id" align="center" width="150" />
|
|
|
+ <el-table-column property="name" label="机构名称" align="center" width="150" />
|
|
|
+ <el-table-column property="shortName" label="机构简称" align="center" width="200" />
|
|
|
+ <el-table-column property="linkMan" label="联系人" align="center" />
|
|
|
+ <el-table-column property="contractMobile" label="手机号" align="center" />
|
|
|
</el-table>
|
|
|
<div slot="footer">
|
|
|
- <el-button type="primary" @click="pushClub()">确定</el-button>
|
|
|
- <el-button type="primary" @click="dialogTableVisible = false">取消</el-button>
|
|
|
+ <el-button @click="dialogTableVisible = false">取消</el-button>
|
|
|
+ <el-button type="primary" :disabled="disabled" @click="pushClub()">确定</el-button>
|
|
|
</div>
|
|
|
<!-- 页码 -->
|
|
|
<pagination
|
|
@@ -210,7 +212,7 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import { fetchMemberList, fetchClubList, saveSvip } from '@/api/member/manage/manage'
|
|
|
+import { fetchMemberList, fetchClubList, saveSvip } from '@/api/member/member'
|
|
|
|
|
|
const defaultListQuery = {
|
|
|
clubName: '', // 机构名称
|
|
@@ -352,14 +354,16 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 20
|
|
|
},
|
|
|
- // 机构选择
|
|
|
- radio: 1,
|
|
|
hiddenItem: true,
|
|
|
clubTableData: [],
|
|
|
- // 选择机构
|
|
|
- rows: [],
|
|
|
- // 机构数据
|
|
|
- clubData: []
|
|
|
+ clubRadio: null,
|
|
|
+ rows: [], // 选择机构
|
|
|
+ clubData: []// 机构数据
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ disabled() {
|
|
|
+ return this.clubRadio === null
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -370,8 +374,9 @@ export default {
|
|
|
handleSelect(selection, row) {
|
|
|
this.$refs.table.clearSelection()
|
|
|
this.$refs.table.toggleRowSelection(row)
|
|
|
+ this.clubRadio = row.clubId
|
|
|
this.rows = row
|
|
|
- console.log('row', this.rows)
|
|
|
+ console.log('clubRadio', this.clubRadio)
|
|
|
},
|
|
|
// 会员列表数据
|
|
|
async getList() {
|
|
@@ -381,9 +386,13 @@ export default {
|
|
|
this.total = res.data.totalRecord
|
|
|
this.isLoading = false
|
|
|
},
|
|
|
+ handleDialogVisible() {
|
|
|
+ // 宣誓弹窗
|
|
|
+ this.dialogTableVisible = true
|
|
|
+ this.getclubList()
|
|
|
+ },
|
|
|
// 机构数据
|
|
|
async getclubList() {
|
|
|
- this.dialogTableVisible = true
|
|
|
const res = await fetchClubList(this.clubForm)
|
|
|
this.clubTableData = res.data.results
|
|
|
this.clubTotal = res.data.totalRecord
|
|
@@ -418,7 +427,10 @@ export default {
|
|
|
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+::v-deep{
|
|
|
+ thead .el-checkbox{display: none !important;}
|
|
|
+}
|
|
|
.el-span-status {
|
|
|
color: rgb(16, 230, 8);
|
|
|
}
|