[update] 部门管理修改-新增‘添加部门,添加下级,批量删除,保存’

This commit is contained in:
zhaomeijing
2022-05-24 12:03:56 +08:00
parent c147fe5078
commit c2134f4b25
+12 -10
View File
@@ -4,13 +4,13 @@
<a-card :bordered="false" style="padding: 12px 0;">
<!-- 按钮操作区域 -->
<a-row style="margin-left: 14px">
<!-- <a-button @click="handleAdd(1)" type="primary">{{$t('AddDepartment')}}</a-button>-->
<!-- <a-button @click="handleAdd(2)" type="primary">{{$t('AddSubordinate')}}</a-button>-->
<a-button @click="handleAdd(1)" type="primary">{{$t('AddDepartment')}}</a-button>
<a-button @click="handleAdd(2)" type="primary">{{$t('AddSubordinate')}}</a-button>
<!-- <a-button type="primary" icon="download" @click="handleExportXls($t('DepartmentInformation'))">{{$t('export')}}</a-button>-->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">{{$t('import')}}</a-button>-->
<!-- </a-upload>-->
<!-- <a-button :title="$t('DeleteMultiplePiecesData')" @click="batchDel" type="default">{{$t('BatchDelete')}}</a-button>-->
<a-button :title="$t('DeleteMultiplePiecesData')" @click="batchDel" type="default">{{$t('BatchDelete')}}</a-button>
<!--<a-button @click="refresh" type="default" icon="reload" :loading="loading">刷新</a-button>-->
</a-row>
<div style="padding-left:16px;height: 100%;">
@@ -36,6 +36,7 @@
:selectedKeys="selectedKeys"
:checkedKeys="checkedKeys"
:treeData="departTree"
checkable
:checkStrictly="checkStrictly"
:autoExpandParent="false"
@expand="onExpand"/>
@@ -95,7 +96,7 @@
:labelCol="labelCol"
:wrapperCol="wrapperCol"
:label="$t('OrganizationCode')">
<a-input :disabled="disable"
<a-input :disabled="disablecode"
:placeholder="$t('enterOrganizationCode')"
v-decorator="['orgCode', validatorRules.orgCode ]"/>
</a-form-item>
@@ -159,11 +160,11 @@
<!-- v-decorator="['memo', {'initialValue':''}]"/>-->
<!-- </a-form-item>-->
</a-form>
<!-- <div class="anty-form-btn">-->
<!-- <a-button @click="emptyCurrForm" type="default" htmlType="button" icon="sync">{{$t('reset')}}</a-button>-->
<!-- <a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">{{$t('preservation')}}-->
<!-- </a-button>-->
<!-- </div>-->
<div class="anty-form-btn">
<!-- <a-button @click="emptyCurrForm" type="default" htmlType="button" icon="sync">{{$t('reset')}}</a-button>-->
<a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">{{$t('preservation')}}
</a-button>
</div>
</a-card>
<a-card v-else :bordered="false" style="height:248px !important;">
<a-empty>
@@ -206,7 +207,8 @@
loading: false,
currFlowId: '',
currFlowName: '',
disable: true,
disable: false,
disablecode: true,
treeData: [],
visible: false,
departTree: [],