refactor: 〽️ 调整操作按钮大小

This commit is contained in:
bunny 2025-04-25 16:58:41 +08:00
parent 9a68eabcf2
commit 74fba9f0cd
14 changed files with 27 additions and 27 deletions

View File

@ -10,7 +10,7 @@ export const fetchGetDeptList = (data: any) => {
/** 部门管理---获取所有部门管理列表 */
export const fetchGetAllDeptList = () => {
return http.request<BaseResult<object>>('get', 'dept/noManage/getAllDeptList');
return http.request<BaseResult<object>>('get', 'dept/noManage/allDeptList');
};
/** 部门管理---添加部门管理 */

View File

@ -1,6 +1,6 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import { ElTag } from 'element-plus';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -35,7 +35,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, minWidth: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', minWidth: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', minWidth: 130 },
{ label: $t('table.operation'), fixed: 'right', minWidth: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,5 +1,5 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -23,7 +23,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, minWidth: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', minWidth: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', minWidth: 130 },
{ label: $t('table.operation'), fixed: 'right', minWidth: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,5 +1,5 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -13,7 +13,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', width: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', width: 130 },
{ label: $t('table.operation'), fixed: 'right', width: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', width: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,5 +1,5 @@
import { reactive, ref } from 'vue';
import { $t } from '@/plugins/i18n';
import { reactive, ref } from 'vue';
export const editMap = ref({});
@ -12,7 +12,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime' },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', width: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', width: 130 },
{ label: $t('table.operation'), fixed: 'right', width: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', width: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,6 +1,6 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import { ElTag, type FormRules } from 'element-plus';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -39,7 +39,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, minWidth: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', minWidth: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', minWidth: 130 },
{ label: $t('table.operation'), fixed: 'right', minWidth: 150, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,6 +1,6 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import type { FormRules } from 'element-plus';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -18,7 +18,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, width: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', width: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', width: 130 },
{ label: $t('table.operation'), fixed: 'right', width: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', width: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,5 +1,5 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -13,7 +13,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, width: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', width: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', width: 130 },
{ label: $t('table.operation'), fixed: 'right', width: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', width: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,5 +1,5 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -18,7 +18,7 @@ export const columns: TableColumnList = [
{ label: $t('schedulers_triggerState'), prop: 'triggerState' },
// corn表达式
{ label: $t('schedulers_cronExpression'), prop: 'cronExpression' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,7 +1,7 @@
import { computed, reactive, ref } from 'vue';
import { $t } from '@/plugins/i18n';
import type { FormRules } from 'element-plus';
import { REGEXP_PWD } from '@/views/login/utils/rule';
import type { FormRules } from 'element-plus';
import { computed, reactive, ref } from 'vue';
// 是否是更新用户信息
export const isAddUserinfo = ref(false);

View File

@ -15,7 +15,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, minWidth: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', minWidth: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', minWidth: 130 },
{ label: $t('table.operation'), fixed: 'right', minWidth: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,5 +1,5 @@
import { reactive } from 'vue';
import { $t } from '@/plugins/i18n';
import { reactive } from 'vue';
// 表格列
export const columns: TableColumnList = [
@ -17,7 +17,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, minWidth: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', minWidth: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', minWidth: 130 },
{ label: $t('table.operation'), fixed: 'right', minWidth: 210, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 160, slot: 'operation' },
];
// 添加规则

View File

@ -1,11 +1,11 @@
import { useRenderIcon } from '@/components/ReIcon/src/hooks';
import { $t } from '@/plugins/i18n';
import { userMenuStore } from '@/store/system/menu';
import { messageBox } from '@/utils/message';
import { mergeArgs } from '@/views/system/menu/utils';
import { isAllEmpty } from '@pureadmin/utils';
import { ElLink, ElTag, type FormRules } from 'element-plus';
import { h, reactive } from 'vue';
import { mergeArgs } from '@/views/system/menu/utils';
import { messageBox } from '@/utils/message';
import { userMenuStore } from '@/store/system/menu';
const menuStore = userMenuStore();
@ -104,7 +104,7 @@ export const columns: TableColumnList = [
{ label: $t('table.createTime'), prop: 'createTime', sortable: true, minWidth: 160 },
{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', minWidth: 130 },
{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', minWidth: 130 },
{ label: $t('table.operation'), fixed: 'right', minWidth: 150, slot: 'operation' },
{ label: $t('table.operation'), fixed: 'right', minWidth: 160, slot: 'operation' },
];
/** 自定义表单规则校验 */

View File

@ -51,7 +51,7 @@ function onAdd(parentId: any = 0) {
hiddenTag: false,
fixedTag: false,
showLink: true,
showParent: false,
showParent: true,
},
},
width: '45%',