parent
5a66fdb8c9
commit
786b7a5ae1
|
|
@ -65,7 +65,8 @@ onMounted(() => {
|
||||||
// 禁用字段
|
// 禁用字段
|
||||||
updateSchema([
|
updateSchema([
|
||||||
{ field: 'parentId', componentProps: { disabled: true } },
|
{ field: 'parentId', componentProps: { disabled: true } },
|
||||||
{ field: 'orgCode', componentProps: { disabled: true } },
|
{ field: 'departName', componentProps: { readonly: true } },
|
||||||
|
{ field: 'orgCode', componentProps: { readonly: true } },
|
||||||
]);
|
]);
|
||||||
// data 变化,重填表单
|
// data 变化,重填表单
|
||||||
watch(
|
watch(
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false" style="height: 100%">
|
<a-card :bordered="false" style="height: 100%">
|
||||||
<div class="j-table-operator" style="width: 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="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="onAddChildDepart()">添加下级</a-button> -->
|
||||||
<a-upload name="file" :showUploadList="false" :customRequest="onImportXls">
|
<a-upload name="file" :showUploadList="false" :customRequest="onImportXls">
|
||||||
<a-button type="primary" preIcon="ant-design:import-outlined">导入</a-button>
|
<a-button type="primary" preIcon="ant-design:import-outlined">导入</a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue