😎优化页面显示

This commit is contained in:
zuohuaijun 2025-09-14 16:48:48 +08:00
parent c5a87e9292
commit 06dc9ba23d
8 changed files with 12 additions and 12 deletions

View File

@ -291,7 +291,7 @@ const openDialog = async (row: any) => {
state.loading = true;
state.activeTab = '0';
ruleFormRef.value?.resetFields();
state.title = (row.id ? '编辑' : '新增') + '代码生成';
state.title = (row.id ? '编辑' : '添加') + '代码生成';
store.ruleForm = row?.id ? await store.getDetail(row.id) : row;
store.ruleForm.nameSpace ??= store.namespaceList?.[0] as any;
state.isShowDialog = true;

View File

@ -42,7 +42,7 @@
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<vxe-grid ref="xGrid" class="xGrid-style" v-bind="options" v-on="gridEvents">
<template #toolbar_buttons>
<el-button type="primary" icon="ele-Plus" @click="showUpload" v-auth="'sysFile/uploadFile'"> 上传 </el-button>
<el-button type="primary" icon="ele-UploadFilled" @click="showUpload" v-auth="'sysFile/uploadFile'"> 上传 </el-button>
</template>
<template #toolbar_tools> </template>
<template #empty>
@ -117,8 +117,8 @@
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="state.visible = false">取消</el-button>
<el-button type="primary" @click="handleUpload">确定</el-button>
<el-button icon="ele-CircleCloseFilled" @click="state.visible = false">取消</el-button>
<el-button icon="ele-CircleCheckFilled" type="primary" @click="handleUpload">确定</el-button>
</span>
</template>
</el-dialog>

View File

@ -115,7 +115,7 @@ const options = useVxeTable<SysMenu>(
{ field: 'orderNo', title: '排序', width: 80, showOverflow: 'tooltip' },
{ field: 'status', title: '状态', width: 100, showOverflow: 'tooltip', slots: { default: 'row_status' } },
{ field: 'record', title: '修改记录', width: 100, showOverflow: 'tooltip', slots: { default: 'row_record' } },
{ field: 'buttons', title: '操作', fixed: 'right', width: 210, showOverflow: true, slots: { default: 'row_buttons' } },
{ field: 'buttons', title: '操作', fixed: 'right', width: 200, showOverflow: true, slots: { default: 'row_buttons' } },
],
},
// vxeGrid()vxe-table

View File

@ -131,7 +131,7 @@ const options = useVxeTable<SysOrg>(
{ field: 'orderNo', title: i18n.t('message.list.orderNo'), width: 80, showOverflow: 'tooltip' },
{ field: 'status', title: i18n.t('message.list.status'), width: 80, showOverflow: 'tooltip', slots: { default: 'row_status' } },
{ field: 'record', title: i18n.t('message.list.record'), width: 100, showOverflow: 'tooltip', slots: { default: 'row_record' } },
{ field: 'buttons', title: i18n.t('message.list.operation'), fixed: 'right', width: 210, showOverflow: true, slots: { default: 'row_buttons' } },
{ field: 'buttons', title: i18n.t('message.list.operation'), fixed: 'right', width: 200, showOverflow: true, slots: { default: 'row_buttons' } },
],
},
// vxeGrid()vxe-table

View File

@ -152,8 +152,8 @@ const options = useVxeTable<PagePosOutput>(
{ field: 'seq', type: 'seq', title: i18n.t('message.list.seq'), width: 60, fixed: 'left' },
{ field: 'name', title: i18n.t('message.list.jobTitle'), minWidth: 200, showOverflow: 'tooltip' },
{ field: 'code', title: i18n.t('message.list.positionCode'), minWidth: 200, showOverflow: 'tooltip' },
{ field: 'userCount', title: i18n.t('message.list.staffCount'), width: 100, showOverflow: 'tooltip', slots: { default: 'row_userCount' } },
{ field: 'userList', title: i18n.t('message.list.staffDetails'), width: 100, showOverflow: 'tooltip', slots: { default: 'row_userList' } },
{ field: 'userCount', title: i18n.t('message.list.staffCount'), showOverflow: 'tooltip', slots: { default: 'row_userCount' } },
{ field: 'userList', title: i18n.t('message.list.staffDetails'), showOverflow: 'tooltip', slots: { default: 'row_userList' } },
{ field: 'orderNo', title: i18n.t('message.list.orderNo'), width: 80, showOverflow: 'tooltip' },
{ field: 'status', title: i18n.t('message.list.status'), width: 80, showOverflow: 'tooltip', slots: { default: 'row_status' } },
{ field: 'record', title: i18n.t('message.list.record'), width: 100, showOverflow: 'tooltip', slots: { default: 'row_record' } },

View File

@ -98,7 +98,7 @@ watch(filterText, (val) => {
//
const initTreeData = async () => {
state.loading = true;
var res = await getAPI(SysCommonApi).apiSysCommonApiListGet();
var res = await getAPI(SysCommonApi).apiSysCommonSysAllApiListGet();
var tData = res.data.result ?? [];
treeRef.value?.setCheckedKeys([]); //
state.allApiData = tData;

View File

@ -136,7 +136,7 @@ const options = useVxeTable<TenantOutput>(
{ field: 'slaveConnections', title: '从库连接', minWidth: 300, showOverflow: 'tooltip' },
{ field: 'orderNo', title: '排序', width: 80, showOverflow: 'tooltip' },
{ field: 'record', title: '修改记录', width: 100, showOverflow: 'tooltip', slots: { default: 'row_record' } },
{ field: 'buttons', title: '操作', fixed: 'right', width: 400, showOverflow: true, slots: { default: 'row_buttons' } },
{ field: 'buttons', title: '操作', fixed: 'right', width: 380, showOverflow: true, slots: { default: 'row_buttons' } },
],
},
// vxeGrid()vxe-table

View File

@ -24,7 +24,7 @@
<el-button type="primary" icon="ele-Search" @click="handleQuery()"> {{ $t('message.list.query') }} </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> {{ $t('message.list.reset') }} </el-button>
</el-button-group>
<el-button type="primary" icon="ele-Plus" @click="openAddDialog" style="margin-left: 10px">新增模拟数据</el-button>
<el-button type="primary" icon="ele-Plus" @click="openAddDialog" style="margin-left: 10px">添加模拟数据</el-button>
</el-col>
</el-row>
</el-card>
@ -84,7 +84,7 @@
<template #header>
<div style="color: #fff">
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"> <ele-Edit /> </el-icon>
<span> 新增模拟数据 </span>
<span> 添加模拟数据 </span>
</div>
</template>
<el-form ref="ruleFormRef" :model="addData" label-width="auto">