|
@@ -34,6 +34,7 @@
|
|
|
v-if="tagIndex == 0 && !tableLoading"
|
|
|
:data="showTableData"
|
|
|
border
|
|
|
+ height="100%"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-table-column
|
|
@@ -165,6 +166,7 @@
|
|
|
v-if="tagIndex == 1 && !tableLoading"
|
|
|
:data="showTableData"
|
|
|
border
|
|
|
+ height="100%"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-table-column
|
|
@@ -214,7 +216,7 @@
|
|
|
<div class="tableBtnArea"> <el-tooltip
|
|
|
class="item"
|
|
|
effect="light"
|
|
|
- content="删除"
|
|
|
+ content="查看"
|
|
|
placement="top"
|
|
|
>
|
|
|
<img
|
|
@@ -393,6 +395,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getFormData() {
|
|
|
+ const cardType = this.tagIndex;
|
|
|
let params = {
|
|
|
uid: this.userId,
|
|
|
type: this.displayRange,
|
|
@@ -408,6 +411,7 @@ export default {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectTesttCourse_sass", params)
|
|
|
.then(res => {
|
|
|
+ if(cardType!=this.tagIndex)return;
|
|
|
let _data = res.data[0];
|
|
|
if (_data.length > 0) {
|
|
|
this.tableData = _data;
|
|
@@ -422,6 +426,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getPersonData() {
|
|
|
+ const cardType = this.tagIndex;
|
|
|
let params = {
|
|
|
oid: this.oid,
|
|
|
org: this.org,
|
|
@@ -432,6 +437,7 @@ export default {
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectTesttCourse2_sass", params)
|
|
|
.then(res => {
|
|
|
+ if(cardType!=this.tagIndex)return;
|
|
|
let _data = res.data[0];
|
|
|
let _teaType = res.data[1];
|
|
|
let _teaType2 = res.data[2];
|
|
@@ -480,14 +486,15 @@ export default {
|
|
|
"/checkToTest2?uid=" +
|
|
|
uid +
|
|
|
"&userid=" +
|
|
|
- this.userid +
|
|
|
+ this.userId +
|
|
|
"&oid=" +
|
|
|
this.oid +
|
|
|
"&org=" +
|
|
|
this.org +
|
|
|
"&type=2" +
|
|
|
"&role=" +
|
|
|
- this.role
|
|
|
+ this.role +
|
|
|
+ "&back=sass"
|
|
|
);
|
|
|
},
|
|
|
editForm(item) {
|
|
@@ -513,7 +520,8 @@ export default {
|
|
|
this.org +
|
|
|
"&type=2" +
|
|
|
"&role=" +
|
|
|
- this.role
|
|
|
+ this.role +
|
|
|
+ "&back=sass"
|
|
|
);
|
|
|
})
|
|
|
.catch(() => {
|
|
@@ -524,14 +532,15 @@ export default {
|
|
|
"/addTest?cid=" +
|
|
|
item.courseId +
|
|
|
"&userid=" +
|
|
|
- this.userid +
|
|
|
+ this.userId +
|
|
|
"&oid=" +
|
|
|
this.oid +
|
|
|
"&org=" +
|
|
|
this.org +
|
|
|
"&type=2" +
|
|
|
"&role=" +
|
|
|
- this.role
|
|
|
+ this.role +
|
|
|
+ "&back=sass"
|
|
|
);
|
|
|
}
|
|
|
},
|
|
@@ -547,7 +556,8 @@ export default {
|
|
|
this.org +
|
|
|
"&type=2" +
|
|
|
"&role=" +
|
|
|
- this.role
|
|
|
+ this.role +
|
|
|
+ "&back=sass"
|
|
|
);
|
|
|
},
|
|
|
copyForm(courseId) {
|
|
@@ -612,7 +622,8 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role +
|
|
|
"&typeId1=" +
|
|
|
- this.typeId
|
|
|
+ this.typeId +
|
|
|
+ "&back=sass"
|
|
|
);
|
|
|
}
|
|
|
},
|