|
|
@@ -68,6 +68,7 @@
|
|
|
import DutyApi from '@/api/duty'
|
|
|
import itemDetailApi from '@/api/sysadmin/itemdetail'
|
|
|
import { searchmanagingroomdata } from '@/api/instrumentroom'
|
|
|
+import PersonnelApi from '@/api/personnel'
|
|
|
export default {
|
|
|
name: 'informationDialog',
|
|
|
props: {
|
|
|
@@ -149,12 +150,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // // 获取字典表值班人员
|
|
|
+ // getPeople () {
|
|
|
+ // let _this = this
|
|
|
+ // itemDetailApi.getItemDetailByItemCode({ ItemCode: 'People' })
|
|
|
+ // .then(res => {
|
|
|
+ // _this.PeopleList = res
|
|
|
+ // })
|
|
|
+ // .catch(err => {
|
|
|
+ // console.error(err)
|
|
|
+ // })
|
|
|
+ // },
|
|
|
// 获取字典表值班人员
|
|
|
getPeople () {
|
|
|
let _this = this
|
|
|
- itemDetailApi.getItemDetailByItemCode({ ItemCode: 'People' })
|
|
|
+ PersonnelApi.getAllPersonnel({ current: 1, size: 999 })
|
|
|
.then(res => {
|
|
|
- _this.PeopleList = res
|
|
|
+ _this.PeopleList = res.records
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -163,8 +175,8 @@ export default {
|
|
|
formatPerson (row, column, cellValue, index) {
|
|
|
let label = '休息'
|
|
|
for (var i = 0; i < this.PeopleList.length; i++) {
|
|
|
- if (this.PeopleList[i].ItemValue == cellValue) {
|
|
|
- return this.PeopleList[i].ItemName
|
|
|
+ if (this.PeopleList[i].Id == cellValue) {
|
|
|
+ return this.PeopleList[i].PersonnelName
|
|
|
}
|
|
|
}
|
|
|
return label
|