init
This commit is contained in:
@@ -1,122 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
||||||
<el-form-item>
|
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="accountBusinessList" @selection-change="handleSelectionChange">
|
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
|
||||||
<!-- 1.充值 , 2 :提现 3:视频 4 礼物 5 系统 6 兑换 7.私信-->
|
|
||||||
<el-table-column label="业务编码" align="center" prop="businessCode" />
|
|
||||||
<el-table-column label="业务名称" align="center" prop="businessName" />
|
|
||||||
<!-- <el-table-column label="业务分类" align="center" prop="cateId" />-->
|
|
||||||
<el-table-column label="账户类型" align="center" prop="accountType" />
|
|
||||||
<el-table-column label="描述" align="center" prop="remark" />
|
|
||||||
<el-table-column label="状态标识" align="center" prop="status" />
|
|
||||||
</el-table>
|
|
||||||
|
|
||||||
<pagination
|
|
||||||
v-show="total>0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="queryParams.pageNum"
|
|
||||||
:limit.sync="queryParams.pageSize"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import { listAccountBusiness, getAccountBusiness, delAccountBusiness, addAccountBusiness, updateAccountBusiness } from "@/api/cai/accountBusiness";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: "AccountBusiness",
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// 遮罩层
|
|
||||||
loading: true,
|
|
||||||
// 选中数组
|
|
||||||
ids: [],
|
|
||||||
// 非单个禁用
|
|
||||||
single: true,
|
|
||||||
// 非多个禁用
|
|
||||||
multiple: true,
|
|
||||||
// 显示搜索条件
|
|
||||||
showSearch: true,
|
|
||||||
// 总条数
|
|
||||||
total: 0,
|
|
||||||
// 账户业务表格数据
|
|
||||||
accountBusinessList: [],
|
|
||||||
// 查询参数
|
|
||||||
queryParams: {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
cateId: undefined,
|
|
||||||
businessName: undefined,
|
|
||||||
businessCode: undefined,
|
|
||||||
businessDesc: undefined,
|
|
||||||
accountType: undefined,
|
|
||||||
accountTypeCode: undefined,
|
|
||||||
status: undefined,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getList();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
/** 查询账户业务列表 */
|
|
||||||
getList() {
|
|
||||||
this.loading = true;
|
|
||||||
listAccountBusiness(this.queryParams).then(response => {
|
|
||||||
this.accountBusinessList = response.rows;
|
|
||||||
this.total = response.total;
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/** 搜索按钮操作 */
|
|
||||||
handleQuery() {
|
|
||||||
this.queryParams.pageNum = 1;
|
|
||||||
this.getList();
|
|
||||||
},
|
|
||||||
/** 重置按钮操作 */
|
|
||||||
resetQuery() {
|
|
||||||
this.resetForm("queryForm");
|
|
||||||
this.handleQuery();
|
|
||||||
},
|
|
||||||
// 多选框选中数据
|
|
||||||
handleSelectionChange(selection) {
|
|
||||||
this.ids = selection.map(item => item.id)
|
|
||||||
this.single = selection.length!==1
|
|
||||||
this.multiple = !selection.length
|
|
||||||
},
|
|
||||||
/** 新增按钮操作 */
|
|
||||||
handleAdd() {
|
|
||||||
},
|
|
||||||
/** 修改按钮操作 */
|
|
||||||
handleUpdate(row) {
|
|
||||||
},
|
|
||||||
/** 删除按钮操作 */
|
|
||||||
handleDelete(row) {
|
|
||||||
const ids = row.id || this.ids;
|
|
||||||
this.$modal.confirm('是否确认删除账户业务编号为"' + ids + '"的数据项?').then(() => {
|
|
||||||
this.loading = true;
|
|
||||||
return delAccountBusiness(ids);
|
|
||||||
}).then(() => {
|
|
||||||
this.loading = false;
|
|
||||||
this.getList();
|
|
||||||
this.$modal.msgSuccess("删除成功");
|
|
||||||
}).catch(() => {
|
|
||||||
}).finally(() => {
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<image-avatar :src="info.avatar"/>
|
<image-avatar :src="info.avatar"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
注意:若用户已是会员,再次设置时将会使用最新的会员信息
|
注意:只有女用户可以成为主播
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog title="技师信息" :close-on-click-modal="false" :visible.sync="open" width="1200px" append-to-body>
|
<el-dialog title="分销详情" :close-on-click-modal="false" :visible.sync="open" width="1200px" append-to-body>
|
||||||
<el-collapse v-model="activeName" >
|
<el-collapse v-model="activeName" >
|
||||||
<el-collapse-item title="基本信息" name="base">
|
<el-collapse-item title="基本信息" name="base">
|
||||||
<el-descriptions :contentStyle="CS" :label-style="LS " class="margin-top" :column="3" size="medium" border>
|
<el-descriptions :contentStyle="CS" :label-style="LS " class="margin-top" :column="3" size="medium" border>
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
init () {
|
init () {
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "新增工会"
|
this.title = "新增会员"
|
||||||
this.info = {};
|
this.info = {};
|
||||||
this.form.usercode = undefined
|
this.form.usercode = undefined
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user