| | |
| | | <avue-crud v-model:page="page" :option="option" :table-loading="loading" :data="data" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template #menu="{row}"> |
| | | <referrerPopover :params="{ userId: row.id, evaluateTaskId: params.data.id }"> |
| | | <referrerPopover :params="{ userId: row.user_id, evaluateTaskId: params.data.id }"> |
| | | <el-button type="success" icon="el-icon-view" text>推荐人预览</el-button> |
| | | </referrerPopover> |
| | | </template> |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: 'id', |
| | | prop: 'user_id', |
| | | type: 'input' |
| | | }, |
| | | { |
| | | label: '姓名', |
| | | prop: 'user_name', |
| | | type: 'input' |
| | | }, |
| | | { |
| | | label: '部门', |
| | | prop: 'user_name', |
| | | prop: 'dept_name', |
| | | type: 'input' |
| | | }, |
| | | { |
| | | label: '职位', |
| | | prop: 'dept_name', |
| | | prop: 'post_name', |
| | | type: 'input' |
| | | }, |
| | | { |
| | |
| | | { |
| | | label: '推荐人', |
| | | type: 'input', |
| | | prop: 'scoreUserName', |
| | | prop: 'userName', |
| | | width: 150, |
| | | isSlot: true |
| | | }, |
| | | { |
| | | label: '职位', |
| | | type: 'input', |
| | | prop: 'scorePostName', |
| | | prop: 'postName', |
| | | }, |
| | | { |
| | | label: '部门', |
| | | type: 'input', |
| | | prop: 'scoreDeptName', |
| | | prop: 'deptName', |
| | | }, |
| | | { |
| | | label: '推荐理由', |
| | | type: 'input', |
| | | prop: 'remark' |
| | | } |
| | | // { |
| | | // label: '推荐理由', |
| | | // type: 'input', |
| | | // prop: 'remark' |
| | | // } |
| | | ] |
| | | }) |
| | | const tableData = ref([]) |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | layout: "total,prev, pager, next", |
| | | }) |
| | | |
| | | const init = () => { |
| | | const { userId, evaluateTaskId } = props.params |
| | | getReferrer(page.currentPage, page.pageSize, evaluateTaskId, userId).then(res => { |
| | | const { data } = res |
| | | const referrerRes = _.cloneDeep(data.data.records) |
| | | const referrerRes = _.cloneDeep(data.data) |
| | | tableData.value = referrerRes |
| | | page.value.total = data.data.total |
| | | }) |