This commit is contained in:
孟帅
2024-03-07 20:08:56 +08:00
parent 6dd8cbadad
commit 0fbc1ad47c
246 changed files with 9441 additions and 2293 deletions

View File

@@ -20,7 +20,7 @@
ref="actionRef"
:actionColumn="actionColumn"
@update:checked-row-keys="onCheckedRow"
:scroll-x="1800"
:scroll-x="1280"
>
<template #tableTitle>
<n-button
@@ -288,7 +288,7 @@
});
const actionColumn = reactive({
width: 220,
width: 240,
title: '操作',
key: 'action',
fixed: 'right',

View File

@@ -6,6 +6,7 @@ import { getPostOption } from '@/api/org/post';
import { FormSchema, useForm } from '@/components/Form';
import { statusOptions } from '@/enums/optionsiEnum';
import { defRangeShortcuts } from '@/utils/dateUtil';
import {Dicts} from "@/api/dict/dict";
// 增加余额/积分.
@@ -213,14 +214,10 @@ export async function loadOptions() {
treeDataToCompressed(role.list);
}
const post = await getPostOption();
if (post.list && post.list.length > 0) {
for (let i = 0; i < post.list.length; i++) {
post.list[i].label = post.list[i].name;
post.list[i].value = post.list[i].id;
}
options.value.post = post.list;
}
const tmpOptions = await Dicts({
types: ['adminPostOption'],
});
options.value.post =tmpOptions?.adminPostOption;
}
function treeDataToCompressed(source) {