|
|
@@ -69,11 +69,15 @@
|
|
|
<el-button size="mini" type="text" @click="handelQtInfo(scope.row)">答题详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
-
|
|
|
+ <el-table-column label="编号" align="center" prop="id" width="50px"/>
|
|
|
<el-table-column label="测试日期" align="center" prop="createTime" />
|
|
|
+ <el-table-column label="正确数量" align="center" prop="totalRight" />
|
|
|
+ <el-table-column label="错误数量" align="center" prop="totalWrong" />
|
|
|
+ <el-table-column label="超时数量" align="center" prop="totalTimeout" />
|
|
|
+ <el-table-column label="所有题目数量" align="center" prop="totalQuestion" />
|
|
|
<el-table-column label="百分比正确率" align="center" prop="score" >
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.score}}%
|
|
|
+ <el-button type="text" @click="handelDetectDetail(scope.row.id)">{{scope.row.score}}%</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="平均反应时间" align="center" prop="aveTime" >
|
|
|
@@ -82,6 +86,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="访问来源" align="center" prop="sourceCode" />
|
|
|
+
|
|
|
</el-table>
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.limit"
|
|
|
@pagination="getList" />
|
|
|
@@ -184,12 +189,69 @@
|
|
|
<el-button v-print="'#printMe'" type="primary" v-if="!conclusionShow">打印</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="答题详情" :visible.sync="DetectDetailOpen" append-to-body>
|
|
|
+ <el-table :data="eaDetectDetailList">
|
|
|
+ <el-table-column label="题目" align="center" prop="stageLevel" />
|
|
|
+ <el-table-column label="题目开始时间" align="center" prop="topicStartTime" />
|
|
|
+ <el-table-column label="题目结束时间" align="center" prop="topicEndTime" />
|
|
|
+ <el-table-column label="患者操作耗时" align="center" prop="userTime" />
|
|
|
+ <el-table-column label="操作结果(正确/错误/超时)" align="center" prop="results" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-if="scope.row.results === 0">正确</el-tag>
|
|
|
+ <el-tag type="danger" v-if="scope.row.results === 1">错误</el-tag>
|
|
|
+ <el-tag type="warning" v-if="scope.row.results === 2">超时</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="题目项图片名称" align="center" prop="topicMainPic" />
|
|
|
+ <el-table-column label="题目题目图片" align="center" prop="topicMainPic" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-image
|
|
|
+ style="width: 100px; height: 100px"
|
|
|
+ :src="getTuliImageUrl(scope.row)"
|
|
|
+ :preview-src-list="[getTuliImageUrl(scope.row)]"
|
|
|
+ >
|
|
|
+ </el-image>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="正确选项图片名称" align="center" prop="topicRightPic" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.topicRightPic}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="正确选项图片" align="center" prop="topicRightPic" >
|
|
|
+ <template slot-scope="scope" >
|
|
|
+ <el-image
|
|
|
+ style="width: 100px; height: 100px"
|
|
|
+ :src="getImageUrl(scope.row,0)"
|
|
|
+ :preview-src-list="[getImageUrl(scope.row,0)]"
|
|
|
+ >
|
|
|
+ </el-image>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="【如果选择错误】选择错误选项名称" align="center" prop="userChosePic" >
|
|
|
+ <template slot-scope="scope" v-if="scope.row.results === 1">
|
|
|
+ {{scope.row.userChosePic}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="选择错误选项图片" align="center" prop="userChosePic" >
|
|
|
+ <template slot-scope="scope" v-if="scope.row.results === 1">
|
|
|
+ <el-image
|
|
|
+ style="width: 100px; height: 100px"
|
|
|
+ :src="getImageUrl(scope.row,1)"
|
|
|
+ :preview-src-list="[getImageUrl(scope.row,1)]"
|
|
|
+ >
|
|
|
+ </el-image>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { printReviewResultDetail,reviewTaskList, findReviewResultDetail, reviewTaskSave, selectAnswerRecord, selectAnswerRecordDetail,saveSummingUp } from '@/api/patient/index'
|
|
|
-import { getDetectInfoList } from '@/api/ea/index'
|
|
|
+import { getDetectInfoList,getDetectDetailList } from '@/api/ea/index'
|
|
|
import { debounce } from 'lodash-es'
|
|
|
import mmsePrintVue from './print/mmsePrint.vue'
|
|
|
import mocaPrintVue from './print/mocaPrint.vue'
|
|
|
@@ -226,10 +288,31 @@ export default {
|
|
|
currentPrintComponent: '',
|
|
|
reviewPrint: {},
|
|
|
reviewTime: "",
|
|
|
- conclusionShow: false
|
|
|
+ conclusionShow: false,
|
|
|
+ eaDetectDetailList: [],
|
|
|
+ DetectDetailOpen: false,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getImageUrl(row,Number) {
|
|
|
+ if(Number === 0) {
|
|
|
+ return "https://yaorongoss.yaorongmedical.com/EarlyScreening/"+row.stageLevel+"/xuanxiang/"+row.topicRightPic+".jpg"
|
|
|
+ }else {
|
|
|
+ return "https://yaorongoss.yaorongmedical.com/EarlyScreening/"+row.stageLevel+"/xuanxiang/"+row.userChosePic+".jpg"
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ getTuliImageUrl(row) {
|
|
|
+ let tuli = "https://yaorongoss.yaorongmedical.com/EarlyScreening/"+row.stageLevel+"/tuli/01.jpg"
|
|
|
+ return tuli
|
|
|
+ },
|
|
|
+ handelDetectDetail(id) {
|
|
|
+ const params = {detectId: id}
|
|
|
+ getDetectDetailList(params).then(resp =>{
|
|
|
+ this.eaDetectDetailList = resp.data
|
|
|
+ this.DetectDetailOpen = true
|
|
|
+ })
|
|
|
+ },
|
|
|
editConclusion() {
|
|
|
if(!this.conclusionShow) {
|
|
|
this.conclusionShow = true
|
|
|
@@ -296,7 +379,6 @@ export default {
|
|
|
// this.total = res.data.total;
|
|
|
// this.loading = false;
|
|
|
// })
|
|
|
- console.log(this.defaultVal.mobile)
|
|
|
var mobile = this.base64Encode(this.defaultVal.mobile)
|
|
|
this.queryParams.phone = mobile
|
|
|
getDetectInfoList(this.queryParams).then(res =>{
|