| | |
| | | <template> |
| | | <el-dialog title="详情" v-model="params.visible" width="60%" destroy-on-close> |
| | | <avue-crud :data="data" v-model:page="page" :option="option" @on-load="onLoad" > |
| | | <!-- <template #menu="{row}"> |
| | | <el-button type="warning" icon="el-icon-info-filled" text @click="sendBack(row)">驳回</el-button> |
| | | </template> --> |
| | | </avue-crud> |
| | | </el-dialog> |
| | | </template> |
| | |
| | | menu: false, |
| | | menuLeft: false, |
| | | header: false, |
| | | menuWidth: 120, |
| | | column: [ |
| | | { |
| | | label: '参与考核人', |
| | | type: 'input', |
| | | prop: 'scoreUserName' |
| | | prop: 'scoreUserName', |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | label: '职务', |
| | | type: 'input', |
| | | prop: 'scorePostName' |
| | | prop: 'scorePostName', |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | label: '部门', |
| | | type: 'input', |
| | | prop: 'scoreDeptName' |
| | | prop: 'scoreDeptName', |
| | | minWidth: 130 |
| | | }, |
| | | { |
| | | label: '权值', |
| | | type: 'input', |
| | | prop: 'weight' |
| | | prop: 'weight', |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | label: '考核分数', |
| | | type: 'input', |
| | | prop: 'scoreVal' |
| | | prop: 'scoreVal', |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | label: '考核评语', |
| | | type: 'input', |
| | | prop: 'remark' |
| | | prop: 'remark', |
| | | overHidden: true, |
| | | minWidth: 100 |
| | | }, |
| | | { |
| | | label: '考核状态', |
| | | type: 'input', |
| | | minWidth: 100, |
| | | formatter: () => { |
| | | return '评分完成' |
| | | } |
| | |
| | | default: () => { |
| | | return { |
| | | visible: false, |
| | | isSendBack: false |
| | | } |
| | | } |
| | | } |
| | | }) |
| | | |
| | | const sendBack = (row) => { |
| | | console.log(row); |
| | | } |
| | | |
| | | const onLoad = () => { |
| | | const { beId, assessmentTaskId, visible } = $props.params |
| | | visible && getDetailList(beId, assessmentTaskId).then(res => { |
| | | data.value = res.data.data.records |
| | | console.log(res.data.data); |
| | | }) |
| | | } |
| | | |