解决所有bug 优化table内容
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
<el-button
|
||||
icon="Plus"
|
||||
type="primary"
|
||||
class="ml10"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新增
|
||||
</el-button>
|
||||
@@ -44,13 +43,52 @@
|
||||
border
|
||||
:cell-style="tableStyle.cellStyle"
|
||||
:header-cell-style="tableStyle.headerCellStyle">
|
||||
<el-table-column type="index" label="序号" width="60" align="center" />
|
||||
<el-table-column prop="categoryName" label="考核项" show-overflow-tooltip align="center" min-width="150" />
|
||||
<el-table-column prop="pointName" label="指标名称" show-overflow-tooltip align="center" min-width="200" />
|
||||
<el-table-column prop="standard" label="评分标准" show-overflow-tooltip align="center" min-width="200" />
|
||||
<el-table-column prop="score" label="默认扣分值" show-overflow-tooltip align="center" width="120" />
|
||||
<el-table-column prop="remarks" label="备注" show-overflow-tooltip align="center" min-width="200" />
|
||||
<el-table-column type="index" label="序号" width="60" align="center">
|
||||
<template #header>
|
||||
<el-icon><List /></el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="categoryName" label="考核项" show-overflow-tooltip align="center" min-width="150">
|
||||
<template #header>
|
||||
<el-icon><Document /></el-icon>
|
||||
<span style="margin-left: 4px">考核项</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="pointName" label="指标名称" show-overflow-tooltip align="center" min-width="200">
|
||||
<template #header>
|
||||
<el-icon><Trophy /></el-icon>
|
||||
<span style="margin-left: 4px">指标名称</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="standard" label="评分标准" show-overflow-tooltip align="center" min-width="200">
|
||||
<template #header>
|
||||
<el-icon><Reading /></el-icon>
|
||||
<span style="margin-left: 4px">评分标准</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="score" label="默认扣分值" show-overflow-tooltip align="center" width="120">
|
||||
<template #header>
|
||||
<el-icon><Minus /></el-icon>
|
||||
<span style="margin-left: 4px">默认扣分值</span>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.score !== undefined && scope.row.score !== null" size="small" type="danger" effect="plain">
|
||||
{{ scope.row.score }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="remarks" label="备注" show-overflow-tooltip align="center" min-width="200">
|
||||
<template #header>
|
||||
<el-icon><EditPen /></el-icon>
|
||||
<span style="margin-left: 4px">备注</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150" align="center" fixed="right">
|
||||
<template #header>
|
||||
<el-icon><Setting /></el-icon>
|
||||
<span style="margin-left: 4px">操作</span>
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
icon="Edit"
|
||||
@@ -88,6 +126,7 @@ import { BasicTableProps, useTable } from "/@/hooks/table";
|
||||
import { fetchList, delObj } from "/@/api/stuwork/assessmentpoint";
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message";
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Document, Trophy, Reading, Minus, EditPen, Setting } from '@element-plus/icons-vue'
|
||||
|
||||
// 定义变量内容
|
||||
const formDialogRef = ref()
|
||||
|
||||
Reference in New Issue
Block a user