|
@@ -2,8 +2,8 @@
|
|
<div class="pb_content" style="background: #f0f2f5" v-loading="loading">
|
|
<div class="pb_content" style="background: #f0f2f5" v-loading="loading">
|
|
<div class="pb_content_body" style="position: relative; margin: 0">
|
|
<div class="pb_content_body" style="position: relative; margin: 0">
|
|
<div class="right">
|
|
<div class="right">
|
|
- <div class="courseTop">
|
|
|
|
- <div class="stepsNav">
|
|
|
|
|
|
+ <div class="courseTop" >
|
|
|
|
+ <div class="stepsNav" v-if="!examineId">
|
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
<el-breadcrumb-item
|
|
<el-breadcrumb-item
|
|
v-if="!back"
|
|
v-if="!back"
|
|
@@ -1379,8 +1379,10 @@
|
|
<el-button
|
|
<el-button
|
|
@click="getTest(scope.row)"
|
|
@click="getTest(scope.row)"
|
|
type="primary"
|
|
type="primary"
|
|
|
|
+ v-if="(examineData && examineData.type == 1) || !examineData"
|
|
size="small"
|
|
size="small"
|
|
>查看</el-button
|
|
>查看</el-button
|
|
|
|
+
|
|
>
|
|
>
|
|
<!-- <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
|
|
<!-- <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
|
|
<el-button @click="setWordTemplate(scope.row)" type="primary" size="small">word导出</el-button> -->
|
|
<el-button @click="setWordTemplate(scope.row)" type="primary" size="small">word导出</el-button> -->
|
|
@@ -1388,6 +1390,7 @@
|
|
@click="deleteTest(scope.row.id)"
|
|
@click="deleteTest(scope.row.id)"
|
|
type="primary"
|
|
type="primary"
|
|
size="small"
|
|
size="small"
|
|
|
|
+ v-if="(examineData && examineData.type == 1) || !examineData"
|
|
>删除</el-button
|
|
>删除</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
@@ -1904,6 +1907,8 @@ export default {
|
|
peopleId: this.$route.query.peopleId,
|
|
peopleId: this.$route.query.peopleId,
|
|
back:this.$route.query.back,
|
|
back:this.$route.query.back,
|
|
screenWidth: window.innerWidth,
|
|
screenWidth: window.innerWidth,
|
|
|
|
+ examineId: this.$route.query.examineId,
|
|
|
|
+ tType: this.$route.query.tType,
|
|
isDesktop: false,
|
|
isDesktop: false,
|
|
aiChatV: false,
|
|
aiChatV: false,
|
|
title: "",
|
|
title: "",
|
|
@@ -1959,6 +1964,7 @@ export default {
|
|
// fileLoadNum: [],
|
|
// fileLoadNum: [],
|
|
// infoprogress: [],
|
|
// infoprogress: [],
|
|
teaType: [],
|
|
teaType: [],
|
|
|
|
+ examineData:null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
@@ -3852,6 +3858,23 @@ ${JSON.stringify(item.array)}
|
|
this.$message.error("生成词云图失败")
|
|
this.$message.error("生成词云图失败")
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getExamineData(){
|
|
|
|
+ let params = {
|
|
|
|
+ uid: this.peopleId,
|
|
|
|
+ type:this.tType,
|
|
|
|
+ tid:this.examineId,
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.ajax.get(this.$store.state.api +"getTestExamineByUserId2",params).then(res=>{
|
|
|
|
+ // this.examineData = res.data[0][0];
|
|
|
|
+ if(res.data[0].length>0){
|
|
|
|
+ this.examineData = res.data[0][0];
|
|
|
|
+ }
|
|
|
|
+ }).catch(e=>{
|
|
|
|
+ console.log(e);
|
|
|
|
+ this.examineData = null;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
|
|
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
@@ -3869,6 +3892,10 @@ ${JSON.stringify(item.array)}
|
|
} else {
|
|
} else {
|
|
this.getData();
|
|
this.getData();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(this.examineId){
|
|
|
|
+ this.getExamineData();
|
|
|
|
+ }
|
|
// this.getClass2()
|
|
// this.getClass2()
|
|
this.changeHeight();
|
|
this.changeHeight();
|
|
});
|
|
});
|