| | |
| | | @tree-load="treeLoad" @on-load="onLoad"> |
| | | <template #menu="{ size, row, index }"> |
| | | <el-button type="primary" size="small" @click="handleWeight(row)"> |
| | | 考核权重 |
| | | 添加考核人 |
| | | </el-button> |
| | | </template> |
| | | <template #assessmentPerson="{ row }"> |
| | | <popoverTable :params="{...row, type: defaultTaskType}"> |
| | | <template #content> |
| | | xxxx |
| | | </template> |
| | | </popoverTable> |
| | | </template> |
| | | <template #deptCategory="{ row }"> |
| | | <el-tag>{{ row.deptCategoryName }}</el-tag> |
| | |
| | | |
| | | <script> |
| | | import assessmentWeight from './components/assessmentWeight.vue' |
| | | import popoverTable from '@/views/assessment/components/popoverTable.vue' |
| | | import { getList } from '@/api/system/user.js' |
| | | import { getLazyList } from '@/api/system/dept'; |
| | | import _ from 'lodash' |
| | | |
| | | export default { |
| | | components: { |
| | | assessmentWeight |
| | | assessmentWeight, |
| | | popoverTable, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | editBtn: false, |
| | | delBtn: false, |
| | | menuWidth: 200, |
| | | menuFixed: 'right', |
| | | column: [ |
| | | { |
| | | label: "主键", |
| | |
| | | // prop: "userName", |
| | | type: "input", |
| | | search: true, |
| | | minWidth: 70 |
| | | }, |
| | | { |
| | | label: "工号", |
| | | prop: 'code', |
| | | type: "input", |
| | | minWidth: 70 |
| | | }, |
| | | { |
| | | label: "部门", |
| | | prop: "deptName", |
| | | type: "tree", |
| | | search: true, |
| | | minWidth: 120, |
| | | dicUrl: `/blade-system/dept/tree?tenantId=${this.website.tenantId}`, |
| | | dicFormatter: (res) => { |
| | | this.selectGroup.depts = res.data |
| | |
| | | prop: "postName", |
| | | type: "select", |
| | | search: true, |
| | | minWidth: 100, |
| | | dicUrl: `/blade-system/post/select?tenantId=${this.website.tenantId}`, |
| | | dicFormatter: (res) => { |
| | | this.selectGroup.posts = res.data |
| | |
| | | label: "人员类型", |
| | | prop: "personnelType", |
| | | type: "input", |
| | | minWidth: 70 |
| | | }, |
| | | { |
| | | label: "合伙类型", |
| | | prop: "partnerType", |
| | | type: "input", |
| | | minWidth: 70 |
| | | }, |
| | | { |
| | | label: "联系方式", |
| | | prop: "phone", |
| | | type: "input", |
| | | minWidth: 150, |
| | | }, |
| | | { |
| | | label: "考核人", |
| | | minWidth: 120, |
| | | prop: "assessmentPerson", |
| | | slot: true, |
| | | }, |
| | | ] |
| | | }, |
| | |
| | | prop: 'deptCategory', |
| | | slot: true, |
| | | }, |
| | | { |
| | | label: '考核人', |
| | | prop: 'assessmentPerson', |
| | | slot: true |
| | | } |
| | | ], |
| | | }, |
| | | page: { |