{{ scope.row.type && typeArr[scope.row.type - 1].name }}
@@ -656,7 +660,7 @@ export default {
// + '&endReceiveTime=' + this.time[1] + '&startReceiveTime=' + this.time[0] + '&devName=' + this.devName, {
// fetch(this.$http.defaults.baseURL + 'exam/questionBank/exportXls?&projectSn=' + this.projectSn + "&subjectId=" + this.subjectId,{
let data = {
- projectSn:this.projectSn,
+ projectSn:this.$store.state.projectSn,
subjectId:this.subjectId
}
fetch(this.$http.defaults.baseURL + 'exam/questionBank/exportXls',{
@@ -739,7 +743,7 @@ export default {
},
getExamSubjectList() { // 获取科目类型列表
let data = {
- sn: this.projectSn,
+ projectSn: this.$store.state.projectSn,
}
// listTreeExamSubjectApi(data).then((res) => {
listExamSubjectApi(data).then((res) => {
@@ -752,10 +756,10 @@ export default {
//获取列表数据
getExamSubjectTreeList() {
let data = {
- sn: this.$store.state.projectSn,
+ // projectSn: this.$store.state.projectSn,
}
- listTreeExamSubjectApi(data).then((res) => {
- // listExamSubjectApi(data).then((res) => {
+ // listTreeExamSubjectApi(data).then((res) => {
+ listExamSubjectApi(data).then((res) => {
if (res.code == 200) {
this.level1CompanyData = res.result;
console.log('11111111111111',res);
@@ -777,6 +781,7 @@ export default {
pageSize: this.pageSize,
questionName: this.tableParameter.name,
subjectId: this.subjectId,
+ projectSn: this.$store.state.projectSn
}).then((result) => {
if (result.success) {
console.log(result);
@@ -872,7 +877,8 @@ export default {
optionList:tempOptions,
options:this.questionForm.type == 1 ? this.questionForm.options : multiOptions,
score:this.questionForm.score,
- subjectId:this.subjectId,
+ subjectId:this.questionForm.subjectId,
+ projectSn:this.$store.state.projectSn
}).then(result => {
if (result.success) {
this.$message.success(result.message);
@@ -914,7 +920,7 @@ export default {
options:this.questionForm.type == 1 ? option : multiOptions,
score:this.questionForm.score,
subjectId:this.subjectId,
- projectSn: this.projectSn,
+ projectSn: this.$store.state.projectSn,
}).then(result => {
if (result.success) {
console.log('信息添加成功', result);
@@ -941,7 +947,8 @@ export default {
// 预览
previewDialog(item) {
detailIdQuestionBankApi({
- id: item.id
+ id: item.id,
+ projectSn: this.$store.state.projectSn
}).then(result => {
if (result.success) {
this.questionForm = result.result;
@@ -1072,7 +1079,7 @@ export default {
refreshBtn() {
window._paq.push(['trackEvent', '点击', '刷新', '刷新人员信息'])
this.page = 1
-
+
this.tableParameter.name = ''
// this.tableParameter.workerName = ''
// this.tableParameter.inserviceType = ''
@@ -1144,7 +1151,8 @@ export default {
moveQuestionBankApi({
id:this.editQuestion.id,
- subjectId:this.subjectId2
+ subjectId:this.subjectId2,
+ projectSn: this.$store.state.projectSn
}).then(result => {
if (result.success) {
this.$message.success(result.message);
diff --git a/src/views/projectFront/examSystem2/subjectManagement/subjectManagement.vue b/src/views/projectFront/examSystem2/subjectManagement/subjectManagement.vue
index 1b600a2a..55588df9 100644
--- a/src/views/projectFront/examSystem2/subjectManagement/subjectManagement.vue
+++ b/src/views/projectFront/examSystem2/subjectManagement/subjectManagement.vue
@@ -139,7 +139,7 @@ export default {
//获取列表数据
getExamSubjectList() {
let data = {
- // sn: this.projectSn,
+ projectSn: this.projectSn,
pageNo: this.pagInfo.pageNo,
pageSize: this.pagInfo.pageSize,
}