【修改】部门的bug
This commit is contained in:
@@ -219,7 +219,7 @@
|
||||
<el-table-column v-if="maxSelected && maxSelected == 1" label="" width="35" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-radio class="tableRadio" v-model="tableChecked" @change="radioChange(scope.row)"
|
||||
:label="scope.row.departmentCode">{{ null }}
|
||||
:label="scope.row.id">{{ null }}
|
||||
</el-radio>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<el-input v-model="form.leveL" maxlength="10" show-word-limit placeholder="请输入部门级别"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="父部门编码:" >
|
||||
<el-input readonly @click.native="handleClick" v-model="form.parentID" maxlength="50" show-word-limit placeholder="请输入父部门编码"></el-input>
|
||||
<el-input readonly @click.native="handleClick" v-model="form.parentCode" maxlength="50" show-word-limit placeholder="请输入父部门编码"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="部门简称:" >
|
||||
<el-input v-model="form.shortName" maxlength="50" show-word-limit placeholder="请输入部门简称"></el-input>
|
||||
@@ -142,6 +142,7 @@ export default {
|
||||
mode: '',
|
||||
dialogUser: false,
|
||||
form: {
|
||||
parentCode:'',
|
||||
longName: '', // 部门名称
|
||||
departmentCode: '', // 部门编码
|
||||
leveL: '', // 部门级别
|
||||
@@ -157,24 +158,23 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
isTreeOk(checkedList) {
|
||||
|
||||
const parts = []
|
||||
const partsName = []
|
||||
checkedList.map((item, index) => {
|
||||
parts.push(item.departmentCode)
|
||||
// partsName.push(item.longName)
|
||||
parts.push(item.id)
|
||||
partsName.push(item.departmentCode)
|
||||
})
|
||||
|
||||
this.qcrList = checkedList
|
||||
this.form.parentID = parts.toString()
|
||||
// this.form.departmentName = partsName.toString()
|
||||
this.form.parentCode = partsName.toString()
|
||||
|
||||
},
|
||||
handleClick() {
|
||||
if (this.dialogTitle == '查看') return
|
||||
if (this.form.parentID) {
|
||||
this.orgTableVal = this.form.parentID
|
||||
this.orgTableValName = ''
|
||||
this.orgTableValName = this.form.parentCode?this.form.parentCode:''
|
||||
}
|
||||
this.visibleOrgTable = true
|
||||
},
|
||||
@@ -235,6 +235,7 @@ export default {
|
||||
departmentCode: '', // 部门编码
|
||||
leveL: '', // 部门级别
|
||||
parentID: '', // 父部门编码
|
||||
parentCode:'',
|
||||
shortName: '', // 部门简称
|
||||
attribution: '', //归属地
|
||||
bmdm14: '', // 部门14位码
|
||||
@@ -298,6 +299,7 @@ export default {
|
||||
leveL: row.leveL, // 部门级别
|
||||
departmentCode: row.departmentCode, // 部门级别
|
||||
parentID: row.parentID, // 父部门编码
|
||||
parentCode:row.parentCode,
|
||||
shortName: row.shortName, // 部门简称
|
||||
id: row.id, // ID
|
||||
attribution: row.attribution, // 归属地
|
||||
|
||||
Reference in New Issue
Block a user