|
@@ -167,7 +167,8 @@
|
|
|
>
|
|
>
|
|
|
<div @click="lookPrize(item2.courseId)">
|
|
<div @click="lookPrize(item2.courseId)">
|
|
|
<!-- {{ item2.title }} -->
|
|
<!-- {{ item2.title }} -->
|
|
|
- 查看:{{ item2.num }}份
|
|
|
|
|
|
|
+ 查看
|
|
|
|
|
+ <!-- :{{ item2.num }}份z -->
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
@click="goFillIn(item2.courseId)"
|
|
@click="goFillIn(item2.courseId)"
|
|
@@ -480,7 +481,7 @@ export default {
|
|
|
typ: this.pType,
|
|
typ: this.pType,
|
|
|
org: this.org,
|
|
org: this.org,
|
|
|
oid: this.oid,
|
|
oid: this.oid,
|
|
|
- time:this.pType==1?this.timeA:this.timeB
|
|
|
|
|
|
|
+ time:""
|
|
|
};
|
|
};
|
|
|
this.ajax
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectTestExamineBase2", params)
|
|
.get(this.$store.state.api + "selectTestExamineBase2", params)
|
|
@@ -490,21 +491,34 @@ export default {
|
|
|
let testExamineBaseList = res.data[0];
|
|
let testExamineBaseList = res.data[0];
|
|
|
console.log("res.data[0][0]", res.data[0][0]);
|
|
console.log("res.data[0][0]", res.data[0][0]);
|
|
|
this.brief = res.data[0][0].brief;
|
|
this.brief = res.data[0][0].brief;
|
|
|
|
|
+ testExamineBaseList.sort((a,b)=>{
|
|
|
|
|
+ return new Date(b.create_at) - new Date(a.create_at)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
this.testExamineBaseList = testExamineBaseList;
|
|
this.testExamineBaseList = testExamineBaseList;
|
|
|
console.log("selectTestExamineBase", res.data[0][0]);
|
|
console.log("selectTestExamineBase", res.data[0][0]);
|
|
|
this.PageBaseData = JSON.parse(res.data[0][0].json);
|
|
this.PageBaseData = JSON.parse(res.data[0][0].json);
|
|
|
if(this.pType == 1){
|
|
if(this.pType == 1){
|
|
|
this.aArray = res.data[0];
|
|
this.aArray = res.data[0];
|
|
|
- this.timeListA = this.aArray.map(i=>{return {value:i.time,label:i.timeLabel}})
|
|
|
|
|
- if(this.timeListA.length>0)this.timeA = this.timeListA[0].value;
|
|
|
|
|
|
|
+ this.timeListA = this.aArray.map(i=>{return {value:i.time,label:i.timeLabel,createAt:i.create_at,time:i.value}})
|
|
|
|
|
+ this.timeListA.sort((a,b)=>{
|
|
|
|
|
+ return new Date(b.createAt) - new Date(a.createAt)
|
|
|
|
|
+ })
|
|
|
|
|
+ if(this.timeListA.length>0 && !this.timeA)this.timeA = this.timeListA[0].value;
|
|
|
|
|
+ this.testExamineBaseList = this.testExamineBaseList.filter(i=>i.time === this.timeA)
|
|
|
}else {
|
|
}else {
|
|
|
this.bArray = res.data[0];
|
|
this.bArray = res.data[0];
|
|
|
- this.timeListB = this.bArray.map(i=>{return {value:i.time,label:i.timeLabel}})
|
|
|
|
|
- if(this.timeListB.length>0)this.timeB = this.timeListB[0].value;
|
|
|
|
|
|
|
+ this.timeListB = this.bArray.map(i=>{return {value:i.time,label:i.timeLabel,createAt:i.create_at,time:i.value}})
|
|
|
|
|
+ this.timeListB.sort((a,b)=>{
|
|
|
|
|
+ return new Date(b.createAt) - new Date(a.createAt)
|
|
|
|
|
+ })
|
|
|
|
|
+ if(this.timeListB.length>0 && !this.timeB)this.timeB = this.timeListB[0].value;
|
|
|
if(!this.bArray.length){
|
|
if(!this.bArray.length){
|
|
|
this.pType = 1
|
|
this.pType = 1
|
|
|
}
|
|
}
|
|
|
|
|
+ this.testExamineBaseList = this.testExamineBaseList.filter(i=>i.time === this.timeB)
|
|
|
}
|
|
}
|
|
|
|
|
+ // this.testExamineBaseList = this.testExamineBaseList.filter(i=>i.type == this.pType)
|
|
|
// 先获取基础模板,然后再获取用户又没有填写过,填写过就开始循环赋值给基础模板,最后提交基础模板
|
|
// 先获取基础模板,然后再获取用户又没有填写过,填写过就开始循环赋值给基础模板,最后提交基础模板
|
|
|
this.getData();
|
|
this.getData();
|
|
|
})
|
|
})
|
|
@@ -515,7 +529,7 @@ export default {
|
|
|
// 获取页面基础ui信息
|
|
// 获取页面基础ui信息
|
|
|
// getPageBase2() {
|
|
// getPageBase2() {
|
|
|
// console.log('6666');
|
|
// console.log('6666');
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// let params = {
|
|
// let params = {
|
|
|
// typ: this.pType,
|
|
// typ: this.pType,
|
|
|
// org: this.org,
|
|
// org: this.org,
|
|
@@ -561,7 +575,15 @@ export default {
|
|
|
|
|
|
|
|
let _url = "selectExamineTestName"
|
|
let _url = "selectExamineTestName"
|
|
|
if(this.testExamineBaseList[0].value){
|
|
if(this.testExamineBaseList[0].value){
|
|
|
- const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
|
|
|
|
|
|
|
+ let timeValue = ""
|
|
|
|
|
+ if(this.pType == 1){
|
|
|
|
|
+ timeValue = this.timeListA.find(i=>i.value == this.timeA).time
|
|
|
|
|
+ }else {
|
|
|
|
|
+ timeValue = this.timeListB.find(i=>i.value == this.timeB).time
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ timeValue = JSON.parse(timeValue).time;
|
|
|
|
|
+ // const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
|
|
|
params[0].startTime = timeValue[0];
|
|
params[0].startTime = timeValue[0];
|
|
|
params[0].endTime = timeValue[1];
|
|
params[0].endTime = timeValue[1];
|
|
|
_url = `selectExamineTestNameFilterTime`
|
|
_url = `selectExamineTestNameFilterTime`
|
|
@@ -581,9 +603,15 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 查看数据来源
|
|
// 查看数据来源
|
|
|
lookPrize(val) {
|
|
lookPrize(val) {
|
|
|
- // return;
|
|
|
|
|
if(this.testExamineBaseList[0].value){
|
|
if(this.testExamineBaseList[0].value){
|
|
|
- const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
|
|
|
|
|
|
|
+ let timeValue = ""
|
|
|
|
|
+ if(this.pType == 1){
|
|
|
|
|
+ timeValue = this.timeListA.find(i=>i.value == this.timeA).time
|
|
|
|
|
+ }else {
|
|
|
|
|
+ timeValue = this.timeListB.find(i=>i.value == this.timeB).time
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ timeValue = JSON.parse(timeValue).time;
|
|
|
this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?userid=${this.userid}&cid=${val}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.userid}&tType=${this.pType}&examineId=${this.testExamineBaseList[0].id}&timeLimit=${timeValue}`;
|
|
this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?userid=${this.userid}&cid=${val}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.userid}&tType=${this.pType}&examineId=${this.testExamineBaseList[0].id}&timeLimit=${timeValue}`;
|
|
|
}else{
|
|
}else{
|
|
|
this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?userid=${this.userid}&cid=${val}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.userid}&tType=${this.pType}&examineId=${this.testExamineBaseList[0].id}`;
|
|
this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?userid=${this.userid}&cid=${val}&oid=${this.oid}&org=${this.org}&type=2&role=0&peopleId=${this.userid}&tType=${this.pType}&examineId=${this.testExamineBaseList[0].id}`;
|