部门管理修改

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