经理中心

This commit is contained in:
zhx 2026-06-24 15:39:37 +08:00
parent 5befd6297b
commit 7510dac801
2 changed files with 9 additions and 1 deletions

View File

@ -33,6 +33,7 @@ const saving = ref(false);
const form = reactive({
canAddBdLeader: true,
canBanUser: true,
canChangeCountry: true,
canGiftProps: true,
canUnbanUser: true,
contact: '',
@ -60,6 +61,7 @@ watch(
form.canGiftProps = props.row?.canGiftProps !== false;
form.canBanUser = props.row?.canBanUser !== false;
form.canUnbanUser = props.row?.canUnbanUser !== false;
form.canChangeCountry = props.row?.canChangeCountry !== false;
},
{ immediate: true },
);
@ -78,6 +80,7 @@ async function handleSubmit() {
const payload = {
canAddBdLeader: form.canAddBdLeader,
canBanUser: form.canBanUser,
canChangeCountry: form.canChangeCountry,
canGiftProps: form.canGiftProps,
canUnbanUser: form.canUnbanUser,
contact: form.contact.trim(),
@ -145,6 +148,10 @@ async function handleSubmit() {
<span>解封用户</span>
<Switch v-model:checked="form.canUnbanUser" />
</label>
<label class="feature-switch-row">
<span>改国家</span>
<Switch v-model:checked="form.canChangeCountry" />
</label>
</div>
</FormItem>
</Form>

View File

@ -56,7 +56,7 @@ const columns = [
{ dataIndex: 'userProfile', key: 'userProfile', title: '经理', width: 240 },
{ dataIndex: 'regionName', key: 'regionName', title: '区域', width: 140 },
{ dataIndex: 'contact', key: 'contact', title: '联系方式', width: 180 },
{ dataIndex: 'features', key: 'features', title: '功能开关', width: 280 },
{ dataIndex: 'features', key: 'features', title: '功能开关', width: 340 },
{ dataIndex: 'createUserName', key: 'createUserName', title: '创建人', width: 140 },
{ dataIndex: 'updateUserName', key: 'updateUserName', title: '修改人', width: 140 },
{ dataIndex: 'createTime', key: 'createTime', title: '创建时间', width: 180 },
@ -68,6 +68,7 @@ const managerFeatureSwitches = [
{ key: 'canGiftProps', label: '赠送道具' },
{ key: 'canBanUser', label: '封禁用户' },
{ key: 'canUnbanUser', label: '解封用户' },
{ key: 'canChangeCountry', label: '改国家' },
];
function hasPermission(code: string) {