feat: dept add i18n
This commit is contained in:
parent
e8c83e6bc6
commit
37070381d5
@ -396,13 +396,18 @@ const local: App.I18n.Schema = {
|
|||||||
dept: {
|
dept: {
|
||||||
empty: 'No department information',
|
empty: 'No department information',
|
||||||
title: 'Department List',
|
title: 'Department List',
|
||||||
|
parentId: 'Parent Department',
|
||||||
deptName: 'Department Name',
|
deptName: 'Department Name',
|
||||||
|
orderNum: 'Order Num',
|
||||||
|
deptCategory: 'Department Category',
|
||||||
leader: 'Leader',
|
leader: 'Leader',
|
||||||
phone: 'Phone',
|
phone: 'Phone',
|
||||||
email: 'Email',
|
email: 'Email',
|
||||||
status: 'Status',
|
status: 'Status',
|
||||||
sort: 'Sort',
|
sort: 'Sort',
|
||||||
createTime: 'Create Time',
|
createTime: 'Create Time',
|
||||||
|
expandAll: 'Expand All',
|
||||||
|
collapseAll: 'Collapse All',
|
||||||
form: {
|
form: {
|
||||||
parentId: {
|
parentId: {
|
||||||
required: 'Please select Parent Department',
|
required: 'Please select Parent Department',
|
||||||
@ -412,6 +417,14 @@ const local: App.I18n.Schema = {
|
|||||||
required: 'Please enter Department Name',
|
required: 'Please enter Department Name',
|
||||||
invalid: 'Department Name cannot be empty'
|
invalid: 'Department Name cannot be empty'
|
||||||
},
|
},
|
||||||
|
orderNum: {
|
||||||
|
required: 'Please enter Order Num',
|
||||||
|
invalid: 'Order num cannot be empty'
|
||||||
|
},
|
||||||
|
deptCategory: {
|
||||||
|
required: 'Please enter Department Category',
|
||||||
|
invalid: 'Department category cannot be empty'
|
||||||
|
},
|
||||||
leader: {
|
leader: {
|
||||||
required: 'Please enter Leader',
|
required: 'Please enter Leader',
|
||||||
invalid: 'Leader cannot be empty'
|
invalid: 'Leader cannot be empty'
|
||||||
@ -431,8 +444,21 @@ const local: App.I18n.Schema = {
|
|||||||
sort: {
|
sort: {
|
||||||
required: 'Please enter Sort',
|
required: 'Please enter Sort',
|
||||||
invalid: 'Sort cannot be empty'
|
invalid: 'Sort cannot be empty'
|
||||||
|
},
|
||||||
|
deptId: {
|
||||||
|
required: 'Please enter deptId',
|
||||||
|
invalid: 'Dept Id cannot be empty'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
error: {
|
||||||
|
getDeptDataFail: 'Get dept data fail',
|
||||||
|
getDeptUserDataFail: 'Get dept user data fail'
|
||||||
|
},
|
||||||
|
placeholder: {
|
||||||
|
defaultLeaderPlaceHolder: 'Please select leader',
|
||||||
|
addDataLeaderPlaceHolder: 'Department leader can be selected only when updating',
|
||||||
|
deptUserIsEmptyLeaderPlaceHolder: 'Current dept no leader'
|
||||||
|
},
|
||||||
addDept: 'Add Department',
|
addDept: 'Add Department',
|
||||||
editDept: 'Edit Department'
|
editDept: 'Edit Department'
|
||||||
},
|
},
|
||||||
|
@ -396,13 +396,18 @@ const local: App.I18n.Schema = {
|
|||||||
dept: {
|
dept: {
|
||||||
empty: '暂无部门信息',
|
empty: '暂无部门信息',
|
||||||
title: '部门列表',
|
title: '部门列表',
|
||||||
|
parentId: '上级部门',
|
||||||
deptName: '部门名称',
|
deptName: '部门名称',
|
||||||
|
orderNum: '排序',
|
||||||
|
deptCategory: '类别编码',
|
||||||
leader: '负责人',
|
leader: '负责人',
|
||||||
phone: '联系电话',
|
phone: '联系电话',
|
||||||
email: '邮箱',
|
email: '邮箱',
|
||||||
status: '状态',
|
status: '状态',
|
||||||
sort: '排序',
|
sort: '排序',
|
||||||
createTime: '创建时间',
|
createTime: '创建时间',
|
||||||
|
expandAll: '全部展开',
|
||||||
|
collapseAll: '全部收起',
|
||||||
form: {
|
form: {
|
||||||
parentId: {
|
parentId: {
|
||||||
required: '请选择上级部门',
|
required: '请选择上级部门',
|
||||||
@ -412,6 +417,14 @@ const local: App.I18n.Schema = {
|
|||||||
required: '请输入部门名称',
|
required: '请输入部门名称',
|
||||||
invalid: '部门名称不能为空'
|
invalid: '部门名称不能为空'
|
||||||
},
|
},
|
||||||
|
orderNum: {
|
||||||
|
required: '请输入排序',
|
||||||
|
invalid: '排序不能为空'
|
||||||
|
},
|
||||||
|
deptCategory: {
|
||||||
|
required: '请输入类别编码',
|
||||||
|
invalid: '类别编码不能为空'
|
||||||
|
},
|
||||||
leader: {
|
leader: {
|
||||||
required: '请输入负责人',
|
required: '请输入负责人',
|
||||||
invalid: '负责人不能为空'
|
invalid: '负责人不能为空'
|
||||||
@ -431,8 +444,21 @@ const local: App.I18n.Schema = {
|
|||||||
sort: {
|
sort: {
|
||||||
required: '请输入排序',
|
required: '请输入排序',
|
||||||
invalid: '排序不能为空'
|
invalid: '排序不能为空'
|
||||||
|
},
|
||||||
|
deptId: {
|
||||||
|
required: '请输入部门id',
|
||||||
|
invalid: '部门id不能为空'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
error: {
|
||||||
|
getDeptDataFail: '获取部门用户数据失败',
|
||||||
|
getDeptUserDataFail: '获取部门用户数据失败'
|
||||||
|
},
|
||||||
|
placeholder: {
|
||||||
|
defaultLeaderPlaceHolder: '请选择负责人',
|
||||||
|
addDataLeaderPlaceHolder: '仅在更新时可选择部门负责人',
|
||||||
|
deptUserIsEmptyLeaderPlaceHolder: '该部门没有负责人'
|
||||||
|
},
|
||||||
addDept: '新增部门',
|
addDept: '新增部门',
|
||||||
editDept: '编辑部门'
|
editDept: '编辑部门'
|
||||||
},
|
},
|
||||||
|
25
src/typings/app.d.ts
vendored
25
src/typings/app.d.ts
vendored
@ -568,21 +568,38 @@ declare namespace App {
|
|||||||
dept: {
|
dept: {
|
||||||
empty: string;
|
empty: string;
|
||||||
title: string;
|
title: string;
|
||||||
|
parentId: string;
|
||||||
deptName: string;
|
deptName: string;
|
||||||
|
orderNum: string;
|
||||||
|
deptCategory: string;
|
||||||
leader: string;
|
leader: string;
|
||||||
phone: string;
|
phone: string;
|
||||||
email: string;
|
email: string;
|
||||||
status: string;
|
status: string;
|
||||||
sort: string;
|
sort: string;
|
||||||
createTime: string;
|
createTime: string;
|
||||||
|
expandAll: string;
|
||||||
|
collapseAll: string;
|
||||||
form: {
|
form: {
|
||||||
parentId: FormMsg;
|
parentId: FormMsg;
|
||||||
deptName: FormMsg;
|
deptName: FormMsg;
|
||||||
|
orderNum: FormMsg;
|
||||||
|
deptCategory: FormMsg;
|
||||||
leader: FormMsg;
|
leader: FormMsg;
|
||||||
phone: FormMsg;
|
phone: FormMsg;
|
||||||
email: FormMsg;
|
email: FormMsg;
|
||||||
status: FormMsg;
|
status: FormMsg;
|
||||||
sort: FormMsg;
|
sort: FormMsg;
|
||||||
|
deptId: FormMsg;
|
||||||
|
};
|
||||||
|
error: {
|
||||||
|
getDeptDataFail: string;
|
||||||
|
getDeptUserDataFail: string;
|
||||||
|
};
|
||||||
|
placeholder: {
|
||||||
|
defaultLeaderPlaceHolder: string;
|
||||||
|
addDataLeaderPlaceHolder: string;
|
||||||
|
deptUserIsEmptyLeaderPlaceHolder: string;
|
||||||
};
|
};
|
||||||
addDept: string;
|
addDept: string;
|
||||||
editDept: string;
|
editDept: string;
|
||||||
@ -896,13 +913,21 @@ declare namespace App {
|
|||||||
|
|
||||||
interface $T {
|
interface $T {
|
||||||
(key: I18nKey): string;
|
(key: I18nKey): string;
|
||||||
|
|
||||||
(key: I18nKey, plural: number, options?: TranslateOptions<LangType>): string;
|
(key: I18nKey, plural: number, options?: TranslateOptions<LangType>): string;
|
||||||
|
|
||||||
(key: I18nKey, defaultMsg: string, options?: TranslateOptions<I18nKey>): string;
|
(key: I18nKey, defaultMsg: string, options?: TranslateOptions<I18nKey>): string;
|
||||||
|
|
||||||
(key: I18nKey, list: unknown[], options?: TranslateOptions<I18nKey>): string;
|
(key: I18nKey, list: unknown[], options?: TranslateOptions<I18nKey>): string;
|
||||||
|
|
||||||
(key: I18nKey, list: unknown[], plural: number): string;
|
(key: I18nKey, list: unknown[], plural: number): string;
|
||||||
|
|
||||||
(key: I18nKey, list: unknown[], defaultMsg: string): string;
|
(key: I18nKey, list: unknown[], defaultMsg: string): string;
|
||||||
|
|
||||||
(key: I18nKey, named: Record<string, unknown>, options?: TranslateOptions<LangType>): string;
|
(key: I18nKey, named: Record<string, unknown>, options?: TranslateOptions<LangType>): string;
|
||||||
|
|
||||||
(key: I18nKey, named: Record<string, unknown>, plural: number): string;
|
(key: I18nKey, named: Record<string, unknown>, plural: number): string;
|
||||||
|
|
||||||
(key: I18nKey, named: Record<string, unknown>, defaultMsg: string): string;
|
(key: I18nKey, named: Record<string, unknown>, defaultMsg: string): string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,25 +44,25 @@ const {
|
|||||||
columns: () => [
|
columns: () => [
|
||||||
{
|
{
|
||||||
key: 'deptName',
|
key: 'deptName',
|
||||||
title: '部门名称',
|
title: $t('page.system.dept.deptName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'deptCategory',
|
key: 'deptCategory',
|
||||||
title: '类别编码',
|
title: $t('page.system.dept.deptCategory'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'orderNum',
|
key: 'orderNum',
|
||||||
title: '排序',
|
title: $t('page.system.dept.sort'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 60
|
minWidth: 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'status',
|
key: 'status',
|
||||||
title: '部门状态',
|
title: $t('page.system.dept.status'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
render(row) {
|
render(row) {
|
||||||
@ -71,7 +71,7 @@ const {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'createTime',
|
key: 'createTime',
|
||||||
title: '创建时间',
|
title: $t('page.system.dept.createTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
minWidth: 120
|
minWidth: 120
|
||||||
},
|
},
|
||||||
@ -163,7 +163,7 @@ async function addInRow(row: TableDataWithIndex<Api.System.Dept>) {
|
|||||||
<template>
|
<template>
|
||||||
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
|
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
|
||||||
<DeptSearch v-model:model="searchParams" @reset="resetSearchParams" @search="getData" />
|
<DeptSearch v-model:model="searchParams" @reset="resetSearchParams" @search="getData" />
|
||||||
<NCard title="部门列表" :bordered="false" size="small" class="sm:flex-1-hidden card-wrapper">
|
<NCard :title="$t('page.system.dept.title')" :bordered="false" size="small" class="sm:flex-1-hidden card-wrapper">
|
||||||
<template #header-extra>
|
<template #header-extra>
|
||||||
<TableHeaderOperation
|
<TableHeaderOperation
|
||||||
v-model:columns="columnChecks"
|
v-model:columns="columnChecks"
|
||||||
@ -178,13 +178,13 @@ async function addInRow(row: TableDataWithIndex<Api.System.Dept>) {
|
|||||||
<template #icon>
|
<template #icon>
|
||||||
<icon-quill:expand />
|
<icon-quill:expand />
|
||||||
</template>
|
</template>
|
||||||
全部展开
|
{{ $t('page.system.dept.expandAll') }}
|
||||||
</NButton>
|
</NButton>
|
||||||
<NButton v-if="isCollapse" :disabled="!data.length" size="small" @click="collapseAll">
|
<NButton v-if="isCollapse" :disabled="!data.length" size="small" @click="collapseAll">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<icon-quill:collapse />
|
<icon-quill:collapse />
|
||||||
</template>
|
</template>
|
||||||
全部收起
|
{{ $t('page.system.dept.collapseAll') }}
|
||||||
</NButton>
|
</NButton>
|
||||||
</template>
|
</template>
|
||||||
</TableHeaderOperation>
|
</TableHeaderOperation>
|
||||||
|
@ -38,13 +38,13 @@ const { loading: deptLoading, startLoading: startDeptLoading, endLoading: endDep
|
|||||||
const { loading: userLoading, startLoading: startUserLoading, endLoading: endUserLoading } = useLoading();
|
const { loading: userLoading, startLoading: startUserLoading, endLoading: endUserLoading } = useLoading();
|
||||||
const deptData = ref<Api.System.Dept[]>([]);
|
const deptData = ref<Api.System.Dept[]>([]);
|
||||||
const userOptions = ref<CommonType.Option<CommonType.IdType>[]>([]);
|
const userOptions = ref<CommonType.Option<CommonType.IdType>[]>([]);
|
||||||
const placeholder = ref<string>('请选择负责人');
|
const placeholder = ref<string>($t('page.system.dept.placeholder.defaultLeaderPlaceHolder'));
|
||||||
const disabled = ref<boolean>(false);
|
const disabled = ref<boolean>(false);
|
||||||
|
|
||||||
const title = computed(() => {
|
const title = computed(() => {
|
||||||
const titles: Record<NaiveUI.TableOperateType, string> = {
|
const titles: Record<NaiveUI.TableOperateType, string> = {
|
||||||
add: '新增部门',
|
add: $t('page.system.dept.addDept'),
|
||||||
edit: '编辑部门'
|
edit: $t('page.system.dept.editDept')
|
||||||
};
|
};
|
||||||
return titles[props.operateType];
|
return titles[props.operateType];
|
||||||
});
|
});
|
||||||
@ -69,10 +69,10 @@ function createDefaultModel(): Model {
|
|||||||
type RuleKey = Extract<keyof Model, 'deptId' | 'parentId' | 'orderNum' | 'deptName' | 'phone' | 'email'>;
|
type RuleKey = Extract<keyof Model, 'deptId' | 'parentId' | 'orderNum' | 'deptName' | 'phone' | 'email'>;
|
||||||
|
|
||||||
const rules: Record<RuleKey, App.Global.FormRule> = {
|
const rules: Record<RuleKey, App.Global.FormRule> = {
|
||||||
deptId: createRequiredRule('部门id不能为空'),
|
deptId: createRequiredRule($t('page.system.dept.form.deptId.invalid')),
|
||||||
parentId: createRequiredRule('上级部门不能为空'),
|
parentId: createRequiredRule($t('page.system.dept.form.parentId.invalid')),
|
||||||
orderNum: createRequiredRule('显示顺序不能为空'),
|
orderNum: createRequiredRule($t('page.system.dept.form.orderNum.invalid')),
|
||||||
deptName: createRequiredRule('部门名称不能为空'),
|
deptName: createRequiredRule($t('page.system.dept.form.deptName.invalid')),
|
||||||
phone: patternRules.phone,
|
phone: patternRules.phone,
|
||||||
email: patternRules.email
|
email: patternRules.email
|
||||||
};
|
};
|
||||||
@ -137,7 +137,7 @@ async function getDeptData() {
|
|||||||
props.operateType === 'add' ? await fetchGetDeptList() : await fetchGetExcludeDeptList(props.rowData?.deptId);
|
props.operateType === 'add' ? await fetchGetDeptList() : await fetchGetExcludeDeptList(props.rowData?.deptId);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
window.$message?.error(error.message || '获取部门数据失败');
|
window.$message?.error(error.message || $t('page.system.dept.error.getDeptDataFail'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,18 +149,18 @@ async function getDeptData() {
|
|||||||
|
|
||||||
async function getUserData() {
|
async function getUserData() {
|
||||||
if (props.operateType === 'add' || !props.rowData?.deptId) {
|
if (props.operateType === 'add' || !props.rowData?.deptId) {
|
||||||
placeholder.value = '仅在更新时可选择部门负责人';
|
placeholder.value = $t('page.system.dept.placeholder.addDataLeaderPlaceHolder');
|
||||||
disabled.value = true;
|
disabled.value = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
startUserLoading();
|
startUserLoading();
|
||||||
const { data, error } = await fetchGetDeptUserList(props.rowData.deptId);
|
const { data, error } = await fetchGetDeptUserList(props.rowData.deptId);
|
||||||
if (error) {
|
if (error) {
|
||||||
window.$message?.error(error.message || '获取部门用户数据失败');
|
window.$message?.error(error.message || $t('page.system.dept.error.getDeptUserDataFail'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (data.length === 0) {
|
if (data.length === 0) {
|
||||||
placeholder.value = '该部门没有负责人';
|
placeholder.value = $t('page.system.dept.placeholder.deptUserIsEmptyLeaderPlaceHolder');
|
||||||
disabled.value = true;
|
disabled.value = true;
|
||||||
}
|
}
|
||||||
userOptions.value = data.map(item => ({
|
userOptions.value = data.map(item => ({
|
||||||
@ -185,7 +185,7 @@ watch(visible, () => {
|
|||||||
<NDrawer v-model:show="visible" :title="title" display-directive="show" :width="800" class="max-w-90%">
|
<NDrawer v-model:show="visible" :title="title" display-directive="show" :width="800" class="max-w-90%">
|
||||||
<NDrawerContent :title="title" :native-scrollbar="false" closable>
|
<NDrawerContent :title="title" :native-scrollbar="false" closable>
|
||||||
<NForm ref="formRef" :model="model" :rules="rules">
|
<NForm ref="formRef" :model="model" :rules="rules">
|
||||||
<NFormItem label="上级部门" path="parentId">
|
<NFormItem :label="$t('page.system.dept.parentId')" path="parentId">
|
||||||
<NTreeSelect
|
<NTreeSelect
|
||||||
v-model:value="model.parentId"
|
v-model:value="model.parentId"
|
||||||
:loading="deptLoading"
|
:loading="deptLoading"
|
||||||
@ -194,20 +194,24 @@ watch(visible, () => {
|
|||||||
label-field="deptName"
|
label-field="deptName"
|
||||||
key-field="deptId"
|
key-field="deptId"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
placeholder="请选择上级部门"
|
:placeholder="$t('page.system.dept.form.parentId.required')"
|
||||||
/>
|
/>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem label="部门名称" path="deptName">
|
<NFormItem :label="$t('page.system.dept.deptName')" path="deptName">
|
||||||
<NInput v-model:value="model.deptName" placeholder="请输入部门名称" />
|
<NInput v-model:value="model.deptName" :placeholder="$t('page.system.dept.form.deptName.required')" />
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem label="显示顺序" path="orderNum">
|
<NFormItem :label="$t('page.system.dept.orderNum')" path="orderNum">
|
||||||
<NInputNumber v-model:value="model.orderNum" class="w-full" placeholder="请输入显示顺序" />
|
<NInputNumber
|
||||||
|
v-model:value="model.orderNum"
|
||||||
|
class="w-full"
|
||||||
|
:placeholder="$t('page.system.dept.form.orderNum.required')"
|
||||||
|
/>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem label="部门类别编码" path="deptCategory">
|
<NFormItem :label="$t('page.system.dept.deptCategory')" path="deptCategory">
|
||||||
<NInput v-model:value="model.deptCategory" placeholder="请输入部门类别编码" />
|
<NInput v-model:value="model.deptCategory" :placeholder="$t('page.system.dept.form.deptCategory.required')" />
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
|
|
||||||
<NFormItem label="负责人" path="leader">
|
<NFormItem :label="$t('page.system.dept.leader')" path="leader">
|
||||||
<NSelect
|
<NSelect
|
||||||
v-model:value="model.leader"
|
v-model:value="model.leader"
|
||||||
:loading="userLoading"
|
:loading="userLoading"
|
||||||
@ -217,13 +221,13 @@ watch(visible, () => {
|
|||||||
/>
|
/>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
|
|
||||||
<NFormItem label="联系电话" path="phone">
|
<NFormItem :label="$t('page.system.dept.phone')" path="phone">
|
||||||
<NInput v-model:value="model.phone" placeholder="请输入联系电话" />
|
<NInput v-model:value="model.phone" :placeholder="$t('page.system.dept.form.phone.required')" />
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem label="邮箱" path="email">
|
<NFormItem :label="$t('page.system.dept.email')" path="email">
|
||||||
<NInput v-model:value="model.email" placeholder="请输入邮箱" />
|
<NInput v-model:value="model.email" :placeholder="$t('page.system.dept.form.email.required')" />
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem label="部门状态" path="status">
|
<NFormItem :label="$t('page.system.dept.status')" path="status">
|
||||||
<DictRadio v-model:value="model.status" dict-code="sys_normal_disable" />
|
<DictRadio v-model:value="model.status" dict-code="sys_normal_disable" />
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
</NForm>
|
</NForm>
|
||||||
|
@ -36,13 +36,13 @@ async function search() {
|
|||||||
<NCollapseItem :title="$t('common.search')" name="user-search">
|
<NCollapseItem :title="$t('common.search')" name="user-search">
|
||||||
<NForm ref="formRef" :model="model" label-placement="left" :label-width="80">
|
<NForm ref="formRef" :model="model" label-placement="left" :label-width="80">
|
||||||
<NGrid responsive="screen" item-responsive>
|
<NGrid responsive="screen" item-responsive>
|
||||||
<NFormItemGi span="8" label="部门名称" path="deptName" class="pr-24px">
|
<NFormItemGi span="8" :label="$t('page.system.dept.deptName')" path="deptName" class="pr-24px">
|
||||||
<NInput v-model:value="model.deptName" placeholder="请输入部门名称" />
|
<NInput v-model:value="model.deptName" :placeholder="$t('page.system.dept.form.deptName.required')" />
|
||||||
</NFormItemGi>
|
</NFormItemGi>
|
||||||
<NFormItemGi span="8 " label="部门状态" path="status" class="pr-24px">
|
<NFormItemGi span="8 " :label="$t('page.system.dept.status')" path="status" class="pr-24px">
|
||||||
<NSelect
|
<NSelect
|
||||||
v-model:value="model.status"
|
v-model:value="model.status"
|
||||||
placeholder="请选择部门状态"
|
:placeholder="$t('page.system.dept.form.status.required')"
|
||||||
:options="sysNormalDisableOptions"
|
:options="sysNormalDisableOptions"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user