|
@@ -93,7 +93,7 @@
|
|
|
:key="item.id"
|
|
|
:label="item.name"
|
|
|
:value="item.id">
|
|
|
- <span style="float: left;display:inline-block;width:100px">{{ item.name }}</span>
|
|
|
+ <span style="float: left;display:inline-block;width:100px">{{ item.userName }}</span>
|
|
|
<span style="float: right;color: #909399;font-size: 13px;" >{{ item.no }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -124,7 +124,7 @@ import seachs from '../seachGroup.vue'
|
|
|
import addW from '../../assets/btnIcon/addW.png'
|
|
|
import addIcon from '../../assets/btnIcon/add.png'
|
|
|
import {apiGetEvaluationDeptList, apiGetevaluationdeptSave, apiGetevaluationdeptremoveAll, apiGetorganizationstructureFromTree,
|
|
|
-apiGetuserPageList} from '../../api/api'
|
|
|
+apiGetDepartmentallocationLeader} from '../../api/api'
|
|
|
export default {
|
|
|
components: { importDailog, btns, seachs },
|
|
|
data() {
|
|
@@ -175,7 +175,6 @@ export default {
|
|
|
created() {
|
|
|
this.getEvalCompanyData()
|
|
|
this.getDepartmentFromTreeData()
|
|
|
- this.getuserPageList()
|
|
|
this.indicatorCategorys = [
|
|
|
{
|
|
|
label: '指标计划',
|
|
@@ -228,15 +227,19 @@ export default {
|
|
|
apiGetorganizationstructureFromTree(params).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
|
that.depart2Data = datas.data[0].children
|
|
|
+ that.getuserPageList(val)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 查询人员
|
|
|
getuserPageList(val) {
|
|
|
let that = this
|
|
|
- apiGetuserPageList(val).then(datas =>{
|
|
|
+ let params = {
|
|
|
+ id: val
|
|
|
+ }
|
|
|
+ apiGetDepartmentallocationLeader(params).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
|
- that.deptLeaderOption = datas.data.records
|
|
|
+ that.deptLeaderOption = datas.data
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -297,7 +300,7 @@ export default {
|
|
|
})
|
|
|
that.deptLeaderOption.forEach(item =>{
|
|
|
if (item.id === that.ruleForm.departmentLeader) {
|
|
|
- deptLeaderNameS = item.name
|
|
|
+ deptLeaderNameS = item.userName
|
|
|
}
|
|
|
})
|
|
|
let yjzbjhTypeIn = '0'
|