签约用户切割为两份

This commit is contained in:
lai
2024-06-20 18:34:58 +08:00
parent 0b64302b54
commit 440dc81182
2 changed files with 2565 additions and 31 deletions

View File

@@ -1211,14 +1211,6 @@ onMounted(() => {
}
})
.finally(() => {
if (useUserStore().roles.includes('tenant')) {
const operateColumnIndex = tableColumns.findIndex(
column => column.key === 'tenantName'
);
if (operateColumnIndex !== -1) {
tableColumns.splice(operateColumnIndex, 1);
}
}
// 获取列表数据
fnGetList();
});
@@ -1235,7 +1227,7 @@ onMounted(() => {
<!-- 表格搜索栏 -->
<a-form :model="queryParams" name="queryParams" layout="horizontal">
<a-row :gutter="16">
<a-col :lg="6" :md="12" :xs="24" v-roles:has="['administrator']">
<a-col :lg="6" :md="12" :xs="24">
<a-form-item :label="t('views.neUser.sub.neType')" name="neId ">
<a-select
v-model:value="queryParams.neId"
@@ -1274,7 +1266,7 @@ onMounted(() => {
</a-col>
</a-row>
<a-row :gutter="16" v-roles:has="['administrator']">
<a-row :gutter="16">
<a-col :lg="6" :md="12" :xs="24">
<a-form-item
:label="t('views.neUser.sub.tenantName')"
@@ -1294,22 +1286,14 @@ onMounted(() => {
<!-- 插槽-卡片左侧侧 -->
<template #title>
<div class="button-container">
<a-button
type="primary"
@click.prevent="fnModalVisibleByEdit()"
v-perms:has="['neUser:subs:add']"
>
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()">
<template #icon>
<PlusOutlined />
</template>
{{ t('common.addText') }}
</a-button>
<a-button
type="primary"
@click.prevent="fnModalVisibleByBatch(1)"
v-perms:has="['neUser:subs:batchAdd']"
>
<a-button type="primary" @click.prevent="fnModalVisibleByBatch(1)">
<template #icon>
<PlusOutlined />
</template>
@@ -1322,7 +1306,6 @@ onMounted(() => {
:disabled="tableState.selectedRowKeys.length <= 0"
:loading="modalState.loadDataLoading"
@click.prevent="fnRecordDelete('0')"
v-perms:has="['neUser:subs:checkDel']"
>
<template #icon><DeleteOutlined /></template>
{{ t('views.neUser.sub.checkDel') }}
@@ -1333,7 +1316,6 @@ onMounted(() => {
danger
ghost
@click.prevent="fnModalVisibleByBatch(0)"
v-perms:has="['neUser:subs:batchDel']"
>
<template #icon>
<DeleteOutlined />
@@ -1353,7 +1335,6 @@ onMounted(() => {
danger
:disabled="modalState.loadDataLoading"
:loading="modalState.loadDataLoading"
v-perms:has="['neUser:subs:load']"
>
<template #icon>
<SyncOutlined />
@@ -1362,11 +1343,7 @@ onMounted(() => {
</a-button>
</a-popconfirm>
<a-button
type="dashed"
@click.prevent="fnModalUploadImportOpen"
v-perms:has="['neUser:subs:import']"
>
<a-button type="dashed" @click.prevent="fnModalUploadImportOpen">
<template #icon>
<ImportOutlined />
</template>
@@ -1383,7 +1360,7 @@ onMounted(() => {
cancel-text="CSV"
@cancel="fnExportList('csv')"
>
<a-button type="dashed" v-perms:has="['neUser:subs:export']">
<a-button type="dashed">
<template #icon>
<ExportOutlined />
</template>
@@ -1405,7 +1382,6 @@ onMounted(() => {
<a-button
type="default"
:disabled="tableState.selectedRowKeys.length <= 0"
v-perms:has="['neUser:subs:checkExport']"
>
<template #icon><ExportOutlined /></template>
{{ t('views.neUser.sub.checkExport') }}
@@ -1484,7 +1460,7 @@ onMounted(() => {
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'imsi'">
<a-space :size="8" align="center" v-roles:has="['administrator']">
<a-space :size="8" align="center">
<a-tooltip>
<template #title>{{ t('common.editText') }}</template>
<a-button

File diff suppressed because it is too large Load Diff