提交5
This commit is contained in:
parent
c16c4f80f5
commit
67b1c5db2e
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询vip模块列表
|
||||
export function listVip(query) {
|
||||
return request({
|
||||
url: '/system/vip/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询vip模块详细
|
||||
export function getVip(id) {
|
||||
return request({
|
||||
url: '/system/vip/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增vip模块
|
||||
export function addVip(data) {
|
||||
return request({
|
||||
url: '/system/vip',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改vip模块
|
||||
export function updateVip(data) {
|
||||
return request({
|
||||
url: '/system/vip',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除vip模块
|
||||
export function delVip(id) {
|
||||
return request({
|
||||
url: '/system/vip/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
|
@ -60,17 +60,17 @@
|
|||
<el-table v-loading="loading" :data="twodimensionList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="二维码id" align="center" prop="id" />
|
||||
<el-table-column label="二维码1" align="center" prop="twodimension1" width="100">
|
||||
<el-table-column label="提货二维码" align="center" prop="twodimension1" width="100">
|
||||
<template #default="scope">
|
||||
<image-preview :src="scope.row.twodimension1" :width="50" :height="50"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label=" 二维码2" align="center" prop="twodimension2" width="100">
|
||||
<el-table-column label="邀请二维码" align="center" prop="twodimension2" width="100">
|
||||
<template #default="scope">
|
||||
<image-preview :src="scope.row.twodimension2" :width="50" :height="50"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label=" 二维码3" align="center" prop="twodimension3" width="100">
|
||||
<el-table-column label="关注二维码" align="center" prop="twodimension3" width="100">
|
||||
<template #default="scope">
|
||||
<image-preview :src="scope.row.twodimension3" :width="50" :height="50"/>
|
||||
</template>
|
||||
|
@ -95,18 +95,81 @@
|
|||
<!-- 添加或修改提货二维码对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||
<el-form ref="twodimensionRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="二维码1" prop="twodimension1">
|
||||
<el-form-item label="提货二维码" prop="twodimension1">
|
||||
<image-upload v-model="form.twodimension1"/>
|
||||
</el-form-item>
|
||||
<el-form-item label=" 二维码2" prop="twodimension2">
|
||||
<el-form-item label="邀请二维码" prop="twodimension2">
|
||||
<image-upload v-model="form.twodimension2"/>
|
||||
</el-form-item>
|
||||
<el-form-item label=" 二维码3" prop="twodimension3">
|
||||
<el-form-item label="关注二维码" prop="twodimension3">
|
||||
<image-upload v-model="form.twodimension3"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="客户id" prop="customerid">
|
||||
<el-input v-model="form.customerid" placeholder="请输入客户id" />
|
||||
</el-form-item>
|
||||
<el-divider content-position="center">vip模块信息</el-divider>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" icon="Plus" @click="handleAddVip">添加</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" icon="Delete" @click="handleDeleteVip">删除</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-table :data="vipList" :row-class-name="rowVipIndex" @selection-change="handleVipSelectionChange" ref="vip">
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column label="序号" align="center" prop="index" width="50"/>
|
||||
<el-table-column label="总人数" prop="totalallpeople" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.totalallpeople" placeholder="请输入总人数" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="直系团长" prop="zhixituanzhang" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.zhixituanzhang" placeholder="请输入直系团长" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="新增团长" prop="xinzengtuanzhang" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.xinzengtuanzhang" placeholder="请输入新增团长" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="新增用户" prop="xinzengyonghu" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.xinzengyonghu" placeholder="请输入新增用户" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="订单总数" prop="dingdanzongshu" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.dingdanzongshu" placeholder="请输入订单总数" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="今日订单" prop="jinridingdan" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.jinridingdan" placeholder="请输入今日订单" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="售后订单" prop="shouhoudingdan" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.shouhoudingdan" placeholder="请输入售后订单" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="总收益" prop="allshouyi" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.allshouyi" placeholder="请输入总收益" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="今日佣金" prop="todayyongjin" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.todayyongjin" placeholder="请输入今日佣金" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="今日拉新" prop="todaylaxin" width="150">
|
||||
<template #default="scope">
|
||||
<el-input v-model="scope.row.todaylaxin" placeholder="请输入今日拉新" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
|
@ -124,10 +187,12 @@ import { listTwodimension, getTwodimension, delTwodimension, addTwodimension, up
|
|||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const twodimensionList = ref([]);
|
||||
const vipList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const checkedVip = ref([]);
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
|
@ -174,6 +239,7 @@ function reset() {
|
|||
twodimension3: null,
|
||||
customerid: null
|
||||
};
|
||||
vipList.value = [];
|
||||
proxy.resetForm("twodimensionRef");
|
||||
}
|
||||
|
||||
|
@ -209,6 +275,7 @@ function handleUpdate(row) {
|
|||
const _id = row.id || ids.value
|
||||
getTwodimension(_id).then(response => {
|
||||
form.value = response.data;
|
||||
vipList.value = response.data.vipList;
|
||||
open.value = true;
|
||||
title.value = "修改提货二维码";
|
||||
});
|
||||
|
@ -218,6 +285,7 @@ function handleUpdate(row) {
|
|||
function submitForm() {
|
||||
proxy.$refs["twodimensionRef"].validate(valid => {
|
||||
if (valid) {
|
||||
form.value.vipList = vipList.value;
|
||||
if (form.value.id != null) {
|
||||
updateTwodimension(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
|
@ -246,6 +314,45 @@ function handleDelete(row) {
|
|||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** vip模块序号 */
|
||||
function rowVipIndex({ row, rowIndex }) {
|
||||
row.index = rowIndex + 1;
|
||||
}
|
||||
|
||||
/** vip模块添加按钮操作 */
|
||||
function handleAddVip() {
|
||||
let obj = {};
|
||||
obj.totalallpeople = "";
|
||||
obj.zhixituanzhang = "";
|
||||
obj.xinzengtuanzhang = "";
|
||||
obj.xinzengyonghu = "";
|
||||
obj.dingdanzongshu = "";
|
||||
obj.jinridingdan = "";
|
||||
obj.shouhoudingdan = "";
|
||||
obj.allshouyi = "";
|
||||
obj.todayyongjin = "";
|
||||
obj.todaylaxin = "";
|
||||
vipList.value.push(obj);
|
||||
}
|
||||
|
||||
/** vip模块删除按钮操作 */
|
||||
function handleDeleteVip() {
|
||||
if (checkedVip.value.length == 0) {
|
||||
proxy.$modal.msgError("请先选择要删除的vip模块数据");
|
||||
} else {
|
||||
const vips = vipList.value;
|
||||
const checkedVips = checkedVip.value;
|
||||
vipList.value = vips.filter(function(item) {
|
||||
return checkedVips.indexOf(item.index) == -1
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/** 复选框选中数据 */
|
||||
function handleVipSelectionChange(selection) {
|
||||
checkedVip.value = selection.map(item => item.index)
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('system/twodimension/export', {
|
||||
|
|
|
@ -0,0 +1,367 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="总人数" prop="totalallpeople">
|
||||
<el-input
|
||||
v-model="queryParams.totalallpeople"
|
||||
placeholder="请输入总人数"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="直系团长" prop="zhixituanzhang">
|
||||
<el-input
|
||||
v-model="queryParams.zhixituanzhang"
|
||||
placeholder="请输入直系团长"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="新增团长" prop="xinzengtuanzhang">
|
||||
<el-input
|
||||
v-model="queryParams.xinzengtuanzhang"
|
||||
placeholder="请输入新增团长"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="新增用户" prop="xinzengyonghu">
|
||||
<el-input
|
||||
v-model="queryParams.xinzengyonghu"
|
||||
placeholder="请输入新增用户"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单总数" prop="dingdanzongshu">
|
||||
<el-input
|
||||
v-model="queryParams.dingdanzongshu"
|
||||
placeholder="请输入订单总数"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="今日订单" prop="jinridingdan">
|
||||
<el-input
|
||||
v-model="queryParams.jinridingdan"
|
||||
placeholder="请输入今日订单"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="售后订单" prop="shouhoudingdan">
|
||||
<el-input
|
||||
v-model="queryParams.shouhoudingdan"
|
||||
placeholder="请输入售后订单"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="总收益" prop="allshouyi">
|
||||
<el-input
|
||||
v-model="queryParams.allshouyi"
|
||||
placeholder="请输入总收益"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="今日佣金" prop="todayyongjin">
|
||||
<el-input
|
||||
v-model="queryParams.todayyongjin"
|
||||
placeholder="请输入今日佣金"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="今日拉新" prop="todaylaxin">
|
||||
<el-input
|
||||
v-model="queryParams.todaylaxin"
|
||||
placeholder="请输入今日拉新"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="二维码id" prop="twodimensionid">
|
||||
<el-input
|
||||
v-model="queryParams.twodimensionid"
|
||||
placeholder="请输入二维码id"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:vip:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:vip:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:vip:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:vip:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="vipList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="vipid" align="center" prop="id" />
|
||||
<el-table-column label="总人数" align="center" prop="totalallpeople" />
|
||||
<el-table-column label="直系团长" align="center" prop="zhixituanzhang" />
|
||||
<el-table-column label="新增团长" align="center" prop="xinzengtuanzhang" />
|
||||
<el-table-column label="新增用户" align="center" prop="xinzengyonghu" />
|
||||
<el-table-column label="订单总数" align="center" prop="dingdanzongshu" />
|
||||
<el-table-column label="今日订单" align="center" prop="jinridingdan" />
|
||||
<el-table-column label="售后订单" align="center" prop="shouhoudingdan" />
|
||||
<el-table-column label="总收益" align="center" prop="allshouyi" />
|
||||
<el-table-column label="今日佣金" align="center" prop="todayyongjin" />
|
||||
<el-table-column label="今日拉新" align="center" prop="todaylaxin" />
|
||||
<el-table-column label="二维码id" align="center" prop="twodimensionid" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:vip:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:vip:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改vip模块对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||
<el-form ref="vipRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="总人数" prop="totalallpeople">
|
||||
<el-input v-model="form.totalallpeople" placeholder="请输入总人数" />
|
||||
</el-form-item>
|
||||
<el-form-item label="直系团长" prop="zhixituanzhang">
|
||||
<el-input v-model="form.zhixituanzhang" placeholder="请输入直系团长" />
|
||||
</el-form-item>
|
||||
<el-form-item label="新增团长" prop="xinzengtuanzhang">
|
||||
<el-input v-model="form.xinzengtuanzhang" placeholder="请输入新增团长" />
|
||||
</el-form-item>
|
||||
<el-form-item label="新增用户" prop="xinzengyonghu">
|
||||
<el-input v-model="form.xinzengyonghu" placeholder="请输入新增用户" />
|
||||
</el-form-item>
|
||||
<el-form-item label="订单总数" prop="dingdanzongshu">
|
||||
<el-input v-model="form.dingdanzongshu" placeholder="请输入订单总数" />
|
||||
</el-form-item>
|
||||
<el-form-item label="今日订单" prop="jinridingdan">
|
||||
<el-input v-model="form.jinridingdan" placeholder="请输入今日订单" />
|
||||
</el-form-item>
|
||||
<el-form-item label="售后订单" prop="shouhoudingdan">
|
||||
<el-input v-model="form.shouhoudingdan" placeholder="请输入售后订单" />
|
||||
</el-form-item>
|
||||
<el-form-item label="总收益" prop="allshouyi">
|
||||
<el-input v-model="form.allshouyi" placeholder="请输入总收益" />
|
||||
</el-form-item>
|
||||
<el-form-item label="今日佣金" prop="todayyongjin">
|
||||
<el-input v-model="form.todayyongjin" placeholder="请输入今日佣金" />
|
||||
</el-form-item>
|
||||
<el-form-item label="今日拉新" prop="todaylaxin">
|
||||
<el-input v-model="form.todaylaxin" placeholder="请输入今日拉新" />
|
||||
</el-form-item>
|
||||
<el-form-item label="二维码id" prop="twodimensionid">
|
||||
<el-input v-model="form.twodimensionid" placeholder="请输入二维码id" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Vip">
|
||||
import { listVip, getVip, delVip, addVip, updateVip } from "@/api/system/vip";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const vipList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
const title = ref("");
|
||||
|
||||
const data = reactive({
|
||||
form: {},
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
totalallpeople: null,
|
||||
zhixituanzhang: null,
|
||||
xinzengtuanzhang: null,
|
||||
xinzengyonghu: null,
|
||||
dingdanzongshu: null,
|
||||
jinridingdan: null,
|
||||
shouhoudingdan: null,
|
||||
allshouyi: null,
|
||||
todayyongjin: null,
|
||||
todaylaxin: null,
|
||||
twodimensionid: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询vip模块列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listVip(queryParams.value).then(response => {
|
||||
vipList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
totalallpeople: null,
|
||||
zhixituanzhang: null,
|
||||
xinzengtuanzhang: null,
|
||||
xinzengyonghu: null,
|
||||
dingdanzongshu: null,
|
||||
jinridingdan: null,
|
||||
shouhoudingdan: null,
|
||||
allshouyi: null,
|
||||
todayyongjin: null,
|
||||
todaylaxin: null,
|
||||
twodimensionid: null
|
||||
};
|
||||
proxy.resetForm("vipRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
// 多选框选中数据
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map(item => item.id);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
open.value = true;
|
||||
title.value = "添加vip模块";
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
const _id = row.id || ids.value
|
||||
getVip(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改vip模块";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["vipRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateVip(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addVip(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("新增成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const _ids = row.id || ids.value;
|
||||
proxy.$modal.confirm('是否确认删除vip模块编号为"' + _ids + '"的数据项?').then(function() {
|
||||
return delVip(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('system/vip/export', {
|
||||
...queryParams.value
|
||||
}, `vip_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
Loading…
Reference in New Issue