|
@@ -181,7 +181,12 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="brief" v-if="brief">
|
|
|
|
+ <span v-html="brief" style="white-space: pre-wrap;word-break: break-all;"></span>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
<!-- 点击数据来源 -->
|
|
<!-- 点击数据来源 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -401,8 +406,6 @@ export default {
|
|
.post(this.$store.state.api + "addTestExamineWorks2", params)
|
|
.post(this.$store.state.api + "addTestExamineWorks2", params)
|
|
.then(res => {
|
|
.then(res => {
|
|
console.log("addTestExamineWorks2", res);
|
|
console.log("addTestExamineWorks2", res);
|
|
- // this.getData();
|
|
|
|
- // this.handleData();
|
|
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
console.log(error);
|
|
console.log(error);
|
|
@@ -423,10 +426,12 @@ export default {
|
|
this.ajax
|
|
this.ajax
|
|
.get(this.$store.state.api + "getTestExamineByUserId2", params)
|
|
.get(this.$store.state.api + "getTestExamineByUserId2", params)
|
|
.then(res => {
|
|
.then(res => {
|
|
- console.log("getTestExamineByUserId", res);
|
|
|
|
|
|
+ // console.log("getTestExamineByUserId", res);
|
|
|
|
|
|
if (res.data[0].length > 0) {
|
|
if (res.data[0].length > 0) {
|
|
|
|
+
|
|
this.allData = res.data[0][0];
|
|
this.allData = res.data[0][0];
|
|
|
|
+
|
|
let val = JSON.parse(res.data[0][0].json);
|
|
let val = JSON.parse(res.data[0][0].json);
|
|
|
|
|
|
this.PageBaseData.forEach(e => {
|
|
this.PageBaseData.forEach(e => {
|
|
@@ -445,22 +450,15 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- // console.log('this.PageBaseData2222222',this.PageBaseData);
|
|
|
|
|
|
+
|
|
this.handleData();
|
|
this.handleData();
|
|
return (this.tabLoad = false);
|
|
return (this.tabLoad = false);
|
|
} else {
|
|
} else {
|
|
this.allData.type = 1;
|
|
this.allData.type = 1;
|
|
this.allData.rjson = "";
|
|
this.allData.rjson = "";
|
|
this.handleData();
|
|
this.handleData();
|
|
- // console.log('this.PageBaseData3333',this.PageBaseData);
|
|
|
|
this.tabLoad = false;
|
|
this.tabLoad = false;
|
|
}
|
|
}
|
|
- // this.$forceUpdate();
|
|
|
|
- // else {
|
|
|
|
- // this.allData.type = 1;
|
|
|
|
- // this.getPageBase();
|
|
|
|
- // this.tabLoad = false;
|
|
|
|
- // }
|
|
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
console.log(error);
|
|
console.log(error);
|
|
@@ -480,21 +478,19 @@ export default {
|
|
// console.log("resresresres", res.data[0]);
|
|
// console.log("resresresres", res.data[0]);
|
|
// this.allData = res.data[0][0];
|
|
// this.allData = res.data[0][0];
|
|
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.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);
|
|
- // console.log('this.PageBaseData1111111111111111',this.PageBaseData);
|
|
|
|
// 先获取基础模板,然后再获取用户又没有填写过,填写过就开始循环赋值给基础模板,最后提交基础模板
|
|
// 先获取基础模板,然后再获取用户又没有填写过,填写过就开始循环赋值给基础模板,最后提交基础模板
|
|
this.getData();
|
|
this.getData();
|
|
-
|
|
|
|
- // this.handleData();
|
|
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // 获取页面基础ui信息,年度筛选框数据和展示哪个页面
|
|
|
|
|
|
+ // 获取页面基础ui信息
|
|
getPageBase2(type) {
|
|
getPageBase2(type) {
|
|
let params = {
|
|
let params = {
|
|
typ: type,
|
|
typ: type,
|
|
@@ -511,10 +507,10 @@ export default {
|
|
if(this.timeListA.length>0)this.timeA = this.timeListA[0].value;
|
|
if(this.timeListA.length>0)this.timeA = this.timeListA[0].value;
|
|
}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; //默认选择最新年度
|
|
|
|
- if(!this.bArray.length){
|
|
|
|
- this.pType = 1 //显示专任教室页面
|
|
|
|
|
|
+ this.timeListB = this.bArray.map(i=>{return {value:i.time,label:i.timeLabel}})
|
|
|
|
+ if(this.timeListB.length>0)this.timeB = this.timeListB[0].value;
|
|
|
|
+ if(!this.bArray.length){
|
|
|
|
+ this.pType = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -522,7 +518,7 @@ export default {
|
|
console.log(error);
|
|
console.log(error);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- async handleData() { //获取数据来源数据
|
|
|
|
|
|
+ async handleData() {
|
|
for (const e of this.PageBaseData) {
|
|
for (const e of this.PageBaseData) {
|
|
for (const k of e.children) {
|
|
for (const k of e.children) {
|
|
if (k.testid.test.length > 0) {
|
|
if (k.testid.test.length > 0) {
|
|
@@ -532,8 +528,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computedTest(val) {
|
|
computedTest(val) {
|
|
- // console.log('val',val);
|
|
|
|
-
|
|
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
uid: this.userid,
|
|
uid: this.userid,
|
|
@@ -554,7 +548,7 @@ export default {
|
|
// 查看数据来源
|
|
// 查看数据来源
|
|
lookPrize(val) {
|
|
lookPrize(val) {
|
|
// return;
|
|
// return;
|
|
- this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?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}`;
|
|
// this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/test?userid=${this.userid}&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=&role=0`;
|
|
// this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/test?userid=${this.userid}&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=&role=0`;
|
|
this.diaIframe = true;
|
|
this.diaIframe = true;
|
|
},
|
|
},
|
|
@@ -571,7 +565,7 @@ export default {
|
|
.testPersonExamine {
|
|
.testPersonExamine {
|
|
width: 100%;
|
|
width: 100%;
|
|
min-width: calc(100px * 10);
|
|
min-width: calc(100px * 10);
|
|
- height: 100%;
|
|
|
|
|
|
+ height: calc(100%);
|
|
/* overflow-x: scroll; */
|
|
/* overflow-x: scroll; */
|
|
/* overflow: auto; */
|
|
/* overflow: auto; */
|
|
display: flex;
|
|
display: flex;
|
|
@@ -580,7 +574,7 @@ export default {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
/* margin: 10px 0; */
|
|
/* margin: 10px 0; */
|
|
- border-radius: 5px;
|
|
|
|
|
|
+ /* border-radius: 5px; */
|
|
}
|
|
}
|
|
/* .tArea { */
|
|
/* .tArea { */
|
|
/* box-sizing: border-box; */
|
|
/* box-sizing: border-box; */
|
|
@@ -688,9 +682,9 @@ export default {
|
|
width: 100%;
|
|
width: 100%;
|
|
min-width: 1300px;
|
|
min-width: 1300px;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
- height: 100%;
|
|
|
|
|
|
+ height: auto;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- padding-bottom: 60px;
|
|
|
|
|
|
+ padding-bottom: 10px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
|