|
@@ -2,8 +2,8 @@
|
|
|
<div class="app-container">
|
|
|
<el-card class="box-card" shadow="never">
|
|
|
<el-form :model="queryParams" ref="queryForm" @submit.native.prevent :inline="true" v-show="showSearch" label-width="80px">
|
|
|
- <el-form-item label="规则名称" prop="title">
|
|
|
- <el-input v-model="queryParams.title" placeholder="请输入规则名称" clearable prefix-icon="el-icon-search" style="width: 240px" @keyup.enter.native="handleQuery" />
|
|
|
+ <el-form-item label="套餐名称" prop="title">
|
|
|
+ <el-input v-model="queryParams.title" placeholder="请输入套餐名称" clearable prefix-icon="el-icon-search" style="width: 240px" @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
@@ -16,15 +16,15 @@
|
|
|
<div slot="header" class="clearfix">
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" plain icon="el-icon-plus" @click="handleAdd" v-hasPermi="['recharge:type:add']">新增规则</el-button>
|
|
|
+ <el-button type="primary" plain icon="el-icon-plus" @click="handleAdd" v-hasPermi="['recharge:type:add']">新增套餐</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
|
|
|
<Page uri="/mapi/recharge/type/list" :request-params="queryParams" ref="pagination">
|
|
|
- <el-table-column label="规则编号" align="center" prop="id" min-width="100" />
|
|
|
- <el-table-column label="规则名称" align="center" prop="title" min-width="160" :show-overflow-tooltip="true" />
|
|
|
+ <el-table-column label="套餐编号" align="center" prop="id" min-width="100" />
|
|
|
+ <el-table-column label="套餐名称" align="center" prop="title" min-width="160" :show-overflow-tooltip="true" />
|
|
|
<el-table-column label="充值金额" align="center" min-width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="amount">¥{{ scope.row.rechargeAmount }}</span>
|
|
@@ -71,8 +71,8 @@
|
|
|
</div>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="规则名称" prop="title">
|
|
|
- <el-input v-model="form.title" placeholder="请输入规则名称" />
|
|
|
+ <el-form-item label="套餐名称" prop="title">
|
|
|
+ <el-input v-model="form.title" placeholder="请输入套餐名称" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -189,7 +189,7 @@ export default {
|
|
|
showSearch: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
- // 充值规则管理表格数据
|
|
|
+ // 充值套餐管理表格数据
|
|
|
typeList: [],
|
|
|
// 弹出层标题
|
|
|
title: '',
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
- /** 查询充值规则管理列表 */
|
|
|
+ /** 查询充值套餐管理列表 */
|
|
|
getList() {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.pagination.handleSearch(true)
|
|
@@ -269,7 +269,7 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset()
|
|
|
this.open = true
|
|
|
- this.title = '添加充值规则管理'
|
|
|
+ this.title = '添加充值套餐管理'
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
@@ -278,7 +278,7 @@ export default {
|
|
|
getType(id).then((response) => {
|
|
|
this.form = response.data
|
|
|
this.open = true
|
|
|
- this.title = '修改充值规则管理'
|
|
|
+ this.title = '修改充值套餐管理'
|
|
|
})
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids
|
|
|
this.$modal
|
|
|
- .confirm('是否确认删除充值规则管理编号为"' + ids + '"的数据项?')
|
|
|
+ .confirm('是否确认删除充值套餐管理编号为"' + ids + '"的数据项?')
|
|
|
.then(function () {
|
|
|
return delType(ids)
|
|
|
})
|