干预列表增加结果详情
This commit is contained in:
parent
609d26295a
commit
8a37bbf483
|
@ -113,8 +113,12 @@
|
|||
{{ handleSituation(scope.row.situation) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
||||
<template #default="scope">
|
||||
<el-tooltip content="查看测评结果" placement="top">
|
||||
<el-button link type="primary" icon="View" @click="handleResult(scope.row)"
|
||||
v-hasPermi="['evaluation:conclusion:list']">查看测评结果</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip content="导出" placement="top">
|
||||
<el-button link type="primary" icon="View" @click="handleExport(scope.row)"
|
||||
v-hasPermi="['evaluation:record:export']">导出</el-button>
|
||||
|
@ -141,11 +145,22 @@
|
|||
</el-tab-pane> -->
|
||||
</el-tabs>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="记录详情" v-model="dialogResult" width="900px" append-to-body>
|
||||
<el-card v-for="des in currentResult">
|
||||
<el-descriptions title="测评详情" :column="1">
|
||||
<el-descriptions-item label="总分:">{{ des.score }}</el-descriptions-item>
|
||||
<el-descriptions-item label="测评项:">{{ des.factorName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="测评结果:">{{ des.evalDesc }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<p v-html="des.evalPropose"></p>
|
||||
</el-card>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="WarnRecord" lang="ts">
|
||||
import { listWarnRecord } from '@/api/archive/warnRecord';
|
||||
import { listWarnRecord, getEvaluationList } from '@/api/archive/warnRecord';
|
||||
import { WarnRecordVO, WarnRecordQuery, WarnRecordForm } from '@/api/archive/warnRecord/types';
|
||||
import { listStatistic } from '@/api/archive/information';
|
||||
import { addInterveneRecord, listInterveneTimes } from '@/api/archive/interveneRecord';
|
||||
|
@ -324,6 +339,14 @@ async function getStaticList() {
|
|||
staticTotal.value = res.total
|
||||
}
|
||||
|
||||
const dialogResult = ref(false)
|
||||
const currentResult = ref([])
|
||||
async function handleResult(row: any) {
|
||||
dialogResult.value = true
|
||||
const result = await getEvaluationList({ recordId: row.recordId, status: 1 })
|
||||
currentResult.value = result.data
|
||||
}
|
||||
|
||||
function handleExport(row: any) {
|
||||
proxy?.download('scale/evaluation/record/export', {
|
||||
scaleId: row.scaleId,
|
||||
|
|
|
@ -71,7 +71,6 @@
|
|||
<el-descriptions-item label="测评项:">{{ des.factorName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="测评结果:">{{ des.evalDesc }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
||||
<p v-html="des.evalPropose"></p>
|
||||
</el-card>
|
||||
</el-tab-pane>
|
||||
|
|
Loading…
Reference in New Issue