合并代码
This commit is contained in:
@@ -44,14 +44,9 @@
|
||||
</template>
|
||||
<template v-if="column.key === 'action'">
|
||||
<a-space v-if="record.status === 1">
|
||||
<ThinkSelectUsers :id="record.id" @done="changeBindCard" />
|
||||
<a-divider type="vertical" />
|
||||
<template v-if="record.uid">
|
||||
<a-popconfirm
|
||||
title="确定要解绑吗?"
|
||||
@confirm="release(record)"
|
||||
>
|
||||
<a class="text-green-600">解绑</a>
|
||||
</a-popconfirm>
|
||||
<a-divider type="vertical" />
|
||||
<a-popconfirm
|
||||
title="确定要退卡吗?"
|
||||
@confirm="remove(record)"
|
||||
@@ -106,6 +101,7 @@ import type {
|
||||
ThinkUsersVipParam
|
||||
} from "@/api/think/thinkUsersVip/model";
|
||||
import ThinkUsersVipLog from "@/views/think/thinkUsersVip/components/thinkUsersVipLog.vue";
|
||||
import { ThinkUsers } from "@/api/think/thinkUsers/model";
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -391,6 +387,18 @@ const query = () => {
|
||||
loading.value = true;
|
||||
};
|
||||
|
||||
const changeBindCard = (row: ThinkUsers, id: number) => {
|
||||
updateThinkUsersVip({
|
||||
id,
|
||||
uid: row.id,
|
||||
username: row.truename ?? row.username,
|
||||
phone: row.phone
|
||||
}).then(() => {
|
||||
message.success("操作成功");
|
||||
reload();
|
||||
});
|
||||
};
|
||||
|
||||
/* 自定义行属性 */
|
||||
const customRow = (record: ThinkUsersVip) => {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user