| | |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" @search-change="searchChange" |
| | | @search-reset="searchReset" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template #scoreVal="{ row }"> |
| | | <el-tag effect="dark" :type="row.scoreVal === -1 ? 'warning' : 'success'"> |
| | | {{ row.scoreVal === -1 ? '暂未评分' : row.scoreVal }} |
| | | </el-tag> |
| | | </template> |
| | | <template #weight="{ row }"> |
| | | <el-tag effect="dark" :type="row.weight === -1 ? 'warning' : 'success'"> |
| | | {{ row.scoreVal === -1 ? '暂未设置权重' : row.scoreVal }} |
| | | </el-tag> |
| | | </template> |
| | | <template #menu="{ row }"> |
| | | <el-button type="warning" icon="el-icon-warning" text @click="sendBack(row)">驳回</el-button> |
| | | <el-button :disabled="row.scoreVal === -1" type="warning" icon="el-icon-warning" text @click="sendBack(row)">驳回</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-dialog> |
| | |
| | | label: "考核分", |
| | | prop: "scoreVal", |
| | | type: "input", |
| | | minWidth: 70 |
| | | slot: true, |
| | | minWidth: 120 |
| | | }, |
| | | { |
| | | label: "权值", |
| | | prop: "weight", |
| | | type: "input", |
| | | minWidth: 70 |
| | | slot: true, |
| | | minWidth: 120 |
| | | } |
| | | ], |
| | | sectionColumn: [ |
| | |
| | | label: "考核分", |
| | | prop: "scoreVal", |
| | | type: "input", |
| | | minWidth: 70 |
| | | slot: true, |
| | | minWidth: 120 |
| | | }, |
| | | { |
| | | label: "权值", |
| | | prop: "weight", |
| | | type: "input", |
| | | minWidth: 70 |
| | | slot: true, |
| | | minWidth: 120 |
| | | } |
| | | ], |
| | | detailParams: {} |