feat: 合并Gin_Vue
This commit is contained in:
@@ -183,7 +183,7 @@ function fnTableSize({ key }: MenuInfo) {
|
||||
}
|
||||
|
||||
/**表格斑马纹 */
|
||||
function fnTableStriped(_record: unknown, index: number):any {
|
||||
function fnTableStriped(_record: unknown, index: number): any {
|
||||
return tableState.striped && index % 2 === 1 ? 'table-striped' : undefined;
|
||||
}
|
||||
|
||||
@@ -624,18 +624,20 @@ function fnRecordDelete(roleId: string = '0') {
|
||||
title: '提示',
|
||||
content: `确认删除角色编号为 【${roleId}】 的数据项?`,
|
||||
onOk() {
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const key = 'delRole';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
delRole(roleId).then(res => {
|
||||
hide();
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
content: `删除成功`,
|
||||
key,
|
||||
duration: 2,
|
||||
});
|
||||
fnGetList();
|
||||
} else {
|
||||
message.error({
|
||||
content: `${res.msg}`,
|
||||
key,
|
||||
duration: 2,
|
||||
});
|
||||
}
|
||||
@@ -650,17 +652,20 @@ function fnExportList() {
|
||||
title: '提示',
|
||||
content: `确认根据搜索条件导出xlsx表格文件吗?`,
|
||||
onOk() {
|
||||
const hide = message.loading('请稍等...', 0);
|
||||
const key = 'exportRole';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
exportRole(toRaw(queryParams)).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
content: `已完成导出`,
|
||||
key,
|
||||
duration: 2,
|
||||
});
|
||||
saveAs(res.data, `role_${Date.now()}.xlsx`);
|
||||
} else {
|
||||
message.error({
|
||||
content: `${res.msg}`,
|
||||
key,
|
||||
duration: 2,
|
||||
});
|
||||
}
|
||||
@@ -838,9 +843,9 @@ onMounted(() => {
|
||||
<template #icon><ReloadOutlined /></template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip>
|
||||
<a-tooltip placement="topRight">
|
||||
<template #title>密度</template>
|
||||
<a-dropdown trigger="click">
|
||||
<a-dropdown placement="bottomRight" trigger="click">
|
||||
<a-button type="text">
|
||||
<template #icon><ColumnHeightOutlined /></template>
|
||||
</a-button>
|
||||
@@ -928,7 +933,7 @@ onMounted(() => {
|
||||
<template #icon><DeleteOutlined /></template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<!-- <a-tooltip v-if="record.roleId !== '1'">
|
||||
<a-tooltip v-if="record.roleId !== '1'">
|
||||
<template #title>分配数据权限</template>
|
||||
<a-button
|
||||
type="link"
|
||||
@@ -937,7 +942,7 @@ onMounted(() => {
|
||||
>
|
||||
<template #icon><SecurityScanOutlined /></template>
|
||||
</a-button>
|
||||
</a-tooltip> -->
|
||||
</a-tooltip>
|
||||
<a-tooltip v-if="record.roleId !== '1'">
|
||||
<template #title>分配用户</template>
|
||||
<a-button
|
||||
@@ -1099,7 +1104,7 @@ onMounted(() => {
|
||||
<a-input-number
|
||||
v-model:value="modalState.from.roleSort"
|
||||
:min="0"
|
||||
:max="9999"
|
||||
:max="65535"
|
||||
:step="1"
|
||||
placeholder="排序值"
|
||||
></a-input-number>
|
||||
|
||||
Reference in New Issue
Block a user