1、隐藏部门管理-新增、添加下级按钮

2、部门管理:名称、编码改为readonly
This commit is contained in:
1378012178@qq.com 2026-02-24 17:22:12 +08:00
parent 5a66fdb8c9
commit 786b7a5ae1
2 changed files with 4 additions and 3 deletions

View File

@ -65,7 +65,8 @@ onMounted(() => {
//
updateSchema([
{ field: 'parentId', componentProps: { disabled: true } },
{ field: 'orgCode', componentProps: { disabled: true } },
{ field: 'departName', componentProps: { readonly: true } },
{ field: 'orgCode', componentProps: { readonly: true } },
]);
// data
watch(

View File

@ -1,8 +1,8 @@
<template>
<a-card :bordered="false" style="height: 100%">
<div class="j-table-operator" style="width: 100%">
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="onAddDepart">新增</a-button>
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="onAddChildDepart()">添加下级</a-button>
<!-- <a-button type="primary" preIcon="ant-design:plus-outlined" @click="onAddDepart">新增</a-button>
<a-button type="primary" preIcon="ant-design:plus-outlined" @click="onAddChildDepart()">添加下级</a-button> -->
<a-upload name="file" :showUploadList="false" :customRequest="onImportXls">
<a-button type="primary" preIcon="ant-design:import-outlined">导入</a-button>
</a-upload>