|
@@ -226,6 +226,19 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <!-- <el-table-column
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ align="center"
|
|
|
+ label="状态"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-if="scope.row.numCount" class="taskArea">
|
|
|
+ <div v-if="scope.row.numCount == scope.row.isReviewCount" class="isComputedTask">已完成</div>
|
|
|
+ <div v-if="scope.row.numCount != scope.row.isReviewCount" class="waitComputedTask">代办</div>
|
|
|
+ </div>
|
|
|
+ <span v-else>/</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column
|
|
|
:sortable="true"
|
|
|
:sort-method="sortCogMethod"
|
|
@@ -1509,9 +1522,16 @@ export default {
|
|
|
testId: val.join(",")
|
|
|
}
|
|
|
];
|
|
|
+ let _fnStr = `selectExamineTestName`
|
|
|
+ if(this.testExamineBaseList[0].value){
|
|
|
+ const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
|
|
|
+ params[0].startTime = timeValue[0];
|
|
|
+ params[0].endTime = timeValue[1];
|
|
|
+ _fnStr = `selectExamineTestNameFilterTime`
|
|
|
+ }
|
|
|
return new Promise(resolve => {
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api + "selectExamineTestName", params)
|
|
|
+ .post(this.$store.state.api + _fnStr, params)
|
|
|
.then(res => {
|
|
|
// console.log("resresresres", res.data[0]);
|
|
|
// console.log(res.data[0]);
|
|
@@ -1525,7 +1545,14 @@ export default {
|
|
|
|
|
|
// 查看数据来源
|
|
|
lookPrize(val) {
|
|
|
- this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${val}&oid=${this.oid}&org=${this.org}&userid=${this.userid}&type=2&role=0&disableBack=true`;
|
|
|
+ if(this.testExamineBaseList[0].value){
|
|
|
+ const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
|
|
|
+ this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${val}&oid=${this.oid}&org=${this.org}&userid=${this.userid}&type=2&role=0&disableBack=true&timeLimit=${timeValue}`;
|
|
|
+ }else{
|
|
|
+ this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${val}&oid=${this.oid}&org=${this.org}&userid=${this.userid}&type=2&role=0&disableBack=true`;
|
|
|
+ }
|
|
|
+ // this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${val}&oid=${this.oid}&org=${this.org}&userid=${this.userid}&type=2&role=0&disableBack=true`;
|
|
|
+ // this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${val}&oid=${this.oid}&org=${this.org}&userid=${this.userid}&type=2&role=0&disableBack=true&`;
|
|
|
// 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;
|
|
|
},
|
|
@@ -1643,6 +1670,8 @@ export default {
|
|
|
for (const e of this.tableData) {
|
|
|
if (e.orgData.length > 0) {
|
|
|
e.orgData = await this.computedScoTest(e.orgData, e.userid);
|
|
|
+ e.isReviewCount = e.orgData.reduce((sum, i) => sum + (i.isReviewNum || 0), 0)
|
|
|
+ e.numCount = e.orgData.reduce((sum, i) => sum + (i.num || 0), 0)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -1653,9 +1682,18 @@ export default {
|
|
|
testId: val.join(",")
|
|
|
}
|
|
|
];
|
|
|
+
|
|
|
+ let _fnStr = `selectExamineTestName`
|
|
|
+ if(this.testExamineBaseList[0].value){
|
|
|
+ const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
|
|
|
+ params[0].startTime = timeValue[0];
|
|
|
+ params[0].endTime = timeValue[1];
|
|
|
+ _fnStr = `selectExamineTestNameFilterTime`
|
|
|
+ }
|
|
|
+
|
|
|
return new Promise(resolve => {
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api + "selectExamineTestName", params)
|
|
|
+ .post(this.$store.state.api + _fnStr, params)
|
|
|
.then(res => {
|
|
|
console.log("selectExamineTestName", res.data[0]);
|
|
|
resolve(res.data[0]);
|
|
@@ -1671,7 +1709,13 @@ export default {
|
|
|
// return console.log(val);
|
|
|
// 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}`;
|
|
|
|
|
|
- this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true`;
|
|
|
+ if(this.testExamineBaseList[0].value){
|
|
|
+ const timeValue = JSON.parse(this.testExamineBaseList[0].value).time;
|
|
|
+ this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true&timeLimit=${timeValue}`;
|
|
|
+ }else{
|
|
|
+ this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true`;
|
|
|
+ }
|
|
|
+ // this.ifmUrl = `https://beta.pbl.cocorobo.cn/pbl-teacher-table/dist/#/checkToTest?cid=${cid}&oid=${val.organizeid}&userid=${this.userid}&org=${val.org}&type=2&role=0&peopleId=${val.userid}&disableBack=true`;
|
|
|
// 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;
|
|
|
},
|
|
@@ -2152,4 +2196,25 @@ input[type="number"] {
|
|
|
-webkit-appearance: none;
|
|
|
margin: 0;
|
|
|
}
|
|
|
+
|
|
|
+.taskArea{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.waitComputedTask{
|
|
|
+ padding: 10px 20px;
|
|
|
+ background: #FEF5EC;
|
|
|
+ border: solid 1px #FAD0A1;
|
|
|
+ color: #F7933B;
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
+
|
|
|
+.isComputedTask{
|
|
|
+ padding: 10px 20px;
|
|
|
+ background: #E6F9EA;
|
|
|
+ border: solid 1px #A6E9B6;
|
|
|
+ color: #21ba45;
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
</style>
|