部门管理修改

This commit is contained in:
fengachen
2021-08-24 10:11:50 +08:00
parent dc009ac3b4
commit b237c799c0
3 changed files with 23 additions and 21 deletions
+10 -7
View File
@@ -154,9 +154,9 @@
</a-empty>
</a-card>
</a-tab-pane>
<a-tab-pane tab="部门权限" key="2" forceRender>
<depart-auth-modal ref="departAuth"/>
</a-tab-pane>
<!-- <a-tab-pane tab="部门权限" key="2" forceRender>-->
<!-- <depart-auth-modal ref="departAuth"/>-->
<!-- </a-tab-pane>-->
<a-tab-pane tab="用户信息" key="3">
<Dept-User-Info ref="DeptUserInfo"></Dept-User-Info>
</a-tab-pane>
@@ -426,10 +426,12 @@ export default {
this.selectedKeys = [record.key]
this.model.parentId = record.parentId
this.setValuesToForm(record)
this.$refs.departAuth.show(record.id);
// 暂时注释(部门权限组件)没用 2021-08-24
// this.$refs.departAuth.show(record.id);
// 传用户信息参数
this.$refs.DeptUserInfo.open(record)
if( this.$refs.DeptUserInfo !== undefined){
this.$refs.DeptUserInfo.open(record)
}
},
// 部门名称判断重复
validateDepartName(rule, value, callback){
@@ -465,7 +467,8 @@ export default {
this.currSelected = {}
this.form.resetFields()
this.selectedKeys = []
this.$refs.departAuth.departId = ''
// 暂时注释(部门权限组件)没用 2021-08-24
// this.$refs.departAuth.departId = ''
},
handleNodeTypeChange(val) {
this.currSelected.nodeType = val
+6 -6
View File
@@ -58,12 +58,12 @@
label="电话">
<a-input placeholder="请输入电话" @change="event => event.target.value = event.target.value.trim()" :maxLength="50" v-decorator="['mobile',validatorRules.mobile]" />
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="传真">
<a-input placeholder="请输入传真" @change="event => event.target.value = event.target.value.trim()" :maxLength="50" v-decorator="['fax', {}]" />
</a-form-item>
<!-- <a-form-item-->
<!-- :labelCol="labelCol"-->
<!-- :wrapperCol="wrapperCol"-->
<!-- label="传真">-->
<!-- <a-input placeholder="请输入传真" @change="event => event.target.value = event.target.value.trim()" :maxLength="50" v-decorator="['fax', {}]" />-->
<!-- </a-form-item>-->
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
+7 -8
View File
@@ -45,12 +45,12 @@
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{
selectedRowKeys.length
}}</a>
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
</div>
<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">-->
<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{-->
<!-- selectedRowKeys.length-->
<!-- }}</a>-->
<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>-->
<!-- </div>-->
<a-table
ref="table"
@@ -70,7 +70,7 @@
<span slot="action" slot-scope="text, record" class="action-span-cell">
<a @click="handleEdit(record)">编辑</a>
<a href="javascript:;" @click="handleDeptRole(record)">分配部门角色</a>
<!-- <a href="javascript:;" @click="handleDeptRole(record)">分配部门角色</a>-->
<a href="javascript:;" @click="handleDetail(record)">用户详情</a>
<a href="javascript:;" @click="handleDelete(record.id)">取消关联</a>
</span>
@@ -274,7 +274,6 @@ export default {
},
open(record) {
//console.log(record);
this.currentDeptId = record.id;
this.currentDept = record;
this.loadData(1);