干预列表增加结果详情
This commit is contained in:
parent
609d26295a
commit
8a37bbf483
|
@ -113,8 +113,12 @@
|
||||||
{{ handleSituation(scope.row.situation) }}
|
{{ handleSituation(scope.row.situation) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<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-tooltip content="导出" placement="top">
|
||||||
<el-button link type="primary" icon="View" @click="handleExport(scope.row)"
|
<el-button link type="primary" icon="View" @click="handleExport(scope.row)"
|
||||||
v-hasPermi="['evaluation:record:export']">导出</el-button>
|
v-hasPermi="['evaluation:record:export']">导出</el-button>
|
||||||
|
@ -141,11 +145,22 @@
|
||||||
</el-tab-pane> -->
|
</el-tab-pane> -->
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</el-dialog>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="WarnRecord" lang="ts">
|
<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 { WarnRecordVO, WarnRecordQuery, WarnRecordForm } from '@/api/archive/warnRecord/types';
|
||||||
import { listStatistic } from '@/api/archive/information';
|
import { listStatistic } from '@/api/archive/information';
|
||||||
import { addInterveneRecord, listInterveneTimes } from '@/api/archive/interveneRecord';
|
import { addInterveneRecord, listInterveneTimes } from '@/api/archive/interveneRecord';
|
||||||
|
@ -324,6 +339,14 @@ async function getStaticList() {
|
||||||
staticTotal.value = res.total
|
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) {
|
function handleExport(row: any) {
|
||||||
proxy?.download('scale/evaluation/record/export', {
|
proxy?.download('scale/evaluation/record/export', {
|
||||||
scaleId: row.scaleId,
|
scaleId: row.scaleId,
|
||||||
|
|
|
@ -71,7 +71,6 @@
|
||||||
<el-descriptions-item label="测评项:">{{ des.factorName }}</el-descriptions-item>
|
<el-descriptions-item label="测评项:">{{ des.factorName }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="测评结果:">{{ des.evalDesc }}</el-descriptions-item>
|
<el-descriptions-item label="测评结果:">{{ des.evalDesc }}</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
|
||||||
<p v-html="des.evalPropose"></p>
|
<p v-html="des.evalPropose"></p>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
Loading…
Reference in New Issue