|
@@ -26,6 +26,31 @@
|
|
|
@change="selectTeaName"
|
|
|
placeholder="请输入教师姓名"
|
|
|
></el-input>
|
|
|
+
|
|
|
+ <div style="margin: 0 20px;" v-if="timeListA.length>1 && pType == 1 && cutTable!=1">
|
|
|
+ <el-select v-model="timeA" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in timeListA"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="margin: 0 20px;" v-if="timeListB.length>1 && pType == 2 && cutTable!=1">
|
|
|
+ <el-select v-model="timeB" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in timeListB"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div style="margin: 0 20px;">
|
|
|
<el-select v-model="cutTable" placeholder="请选择">
|
|
|
<el-option
|
|
@@ -51,7 +76,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="testCon">
|
|
|
- <targetPage :pType="pType" v-if="cutTable == 0"></targetPage>
|
|
|
+ <targetPage :pType="pType" :timeA="timeA" :timeB="timeB" v-if="cutTable == 0"></targetPage>
|
|
|
<personPage
|
|
|
ref="child"
|
|
|
:pType="pType"
|
|
@@ -77,6 +102,10 @@ export default {
|
|
|
bArray: [],
|
|
|
oid: this.$route.query.oid,
|
|
|
org: this.$route.query.org,
|
|
|
+ timeListA:[],
|
|
|
+ timeListB:[],
|
|
|
+ timeA:"",
|
|
|
+ timeB:"",
|
|
|
pType: 2,
|
|
|
cutTable: 0,
|
|
|
teacherName: "",
|
|
@@ -101,17 +130,22 @@ export default {
|
|
|
let params = {
|
|
|
typ: type,
|
|
|
org: this.org,
|
|
|
- oid: this.oid
|
|
|
+ oid: this.oid,
|
|
|
+ time:""
|
|
|
};
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "selectTestExamineBase", params)
|
|
|
+ .get(this.$store.state.api + "selectTestExamineBase2", params)
|
|
|
.then(res => {
|
|
|
console.log('1111111111111111111111', res.data);
|
|
|
-
|
|
|
+
|
|
|
if(type == 1){
|
|
|
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;
|
|
|
}else {
|
|
|
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
|
|
|
}
|
|
@@ -121,6 +155,30 @@ export default {
|
|
|
console.log(error);
|
|
|
});
|
|
|
},
|
|
|
+ // getPageBase2(type) {
|
|
|
+ // let params = {
|
|
|
+ // typ: type,
|
|
|
+ // org: this.org,
|
|
|
+ // oid: this.oid
|
|
|
+ // };
|
|
|
+ // this.ajax
|
|
|
+ // .get(this.$store.state.api + "selectTestExamineBase", params)
|
|
|
+ // .then(res => {
|
|
|
+ // console.log('1111111111111111111111', res.data);
|
|
|
+
|
|
|
+ // if(type == 1){
|
|
|
+ // this.aArray = res.data[0];
|
|
|
+ // }else {
|
|
|
+ // this.bArray = res.data[0];
|
|
|
+ // if(!this.bArray.length){
|
|
|
+ // this.pType = 1
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .catch(error => {
|
|
|
+ // console.log(error);
|
|
|
+ // });
|
|
|
+ // },
|
|
|
cutPage(e) {
|
|
|
this.pType = e;
|
|
|
},
|