dev_202412
yujialong 1 month ago
parent 28d2a2b6fb
commit 7350d37739
  1. 9
      src/pages/achievement/info/project.vue
  2. 2
      src/pages/achievement/list/project.vue
  3. 7
      src/pages/match/add/set.vue

@ -271,7 +271,7 @@ export default {
//
const res = this.permissions ?
await this.$post(`${this.api.getAssessmentDetail}?pageNum=${this.page}&pageSize=${this.pageSize}&assessmentId=${this.id}&classId=${this.classId}&keyword=${this.keyword}&mallId=${this.mallId}`) :
await this.$post(`${this.api.getPracticeDetail}?pageNum=${this.page}&pageSize=${this.pageSize}&projectId=${this.id}&paperId=${this.paperId}&keyWord=${this.keyword}&classId=${this.classId}&mallId=${this.mallId}`)
await this.$post(`${this.api.getPracticeDetail}?pageNum=${this.page}&pageSize=${this.pageSize}&projectId=${this.id}&cid=${this.cid}&paperId=${this.paperId}&keyWord=${this.keyword}&classId=${this.classId}&mallId=${this.mallId}`)
//
const isArr = res.page instanceof Array
this.list = isArr ? res.page : res.page.records
@ -294,7 +294,7 @@ export default {
//
async getActivity () {
//
const { message } = await this.$post(`${this.api.practiceActivity}?pageNum=${this.pageActivation}&pageSize=${this.pageSizeActivation}&projectId=${this.id}&paperId=${this.paperId}&keyWord=${this.keyword}&classId=${this.classId}&mallId=${this.mallId}`)
const { message } = await this.$post(`${this.api.practiceActivity}?pageNum=${this.pageActivation}&pageSize=${this.pageSizeActivation}&projectId=${this.id}&cid=${this.cid}&paperId=${this.paperId}&keyWord=${this.keyword}&classId=${this.classId}&mallId=${this.mallId}`)
this.activations = message.records
this.totalActivation = message.total
},
@ -323,7 +323,7 @@ export default {
//
let url = this.permissions
? `${this.api.exportAssessmentInfo}?assessmentId=${this.id}&classId=${this.classId}`
: `${this.api.exportPracticeInfo}?projectId=${this.id}&mallId=${this.mallId}&paperId=${this.paperId}`
: `${this.api.exportPracticeInfo}?projectId=${this.id}&cid=${this.cid}&mallId=${this.mallId}&paperId=${this.paperId}`
// id
if (this.multipleSelection.length) {
const ids = this.multipleSelection.map(e => this.permissions ? e.testStatusId : e.reportId)
@ -377,6 +377,7 @@ export default {
//
const data = {
mallId: this.mallId,
cid: this.cid,
reportIds
}
data[per ? 'assessmentId' : 'projectId'] = this.id || this.paperId
@ -471,7 +472,7 @@ export default {
responseType: 'blob'
})
} else {
res = await axios.get(`${this.api.exportAllActivity}?projectId=${this.id}&paperId=${this.paperId}&mallId=${this.mallId}&classId=${this.classId}&keyWord=${this.keyword}`, {
res = await axios.get(`${this.api.exportAllActivity}?projectId=${this.id}&paperId=${this.paperId}&mallId=${this.mallId}&cid=${this.cid}&classId=${this.classId}&keyWord=${this.keyword}`, {
headers: {
token: this.token
},

@ -244,7 +244,7 @@ export default {
entry (row) {
const { curriculumId } = this.form
const cur = this.curs.find(e => e.cid == curriculumId) || {}
this.$store.commit('achievement/setReferrer', `${this.$route.path}?${qs.stringify(this.form)}&page=${this.page}`)
this.$store.commit('achievement/setReferrer', `${this.$route.path}?${qs.stringify(this.form)}&page=${this.page}&tab=${this.$parent.active}`)
this.$router.push(`project?id=${row.assessmentId || row.projectId || ''}&paperId=${row.paperId || ''}&cid=${curriculumId}&projectName=${row.projectName || ''}&permissions=${this.form.permissions}&mallId=${cur.mallId || ''}&classId=${row.classId || ''}`)
},
handleDelete (row) { //

@ -133,7 +133,7 @@
</el-table-column>
<el-table-column prop="founder" label="创建人" align="center">
<template slot-scope="scope">
{{ scope.row.founder ? '老师创建' : '系统' }}
{{ courseSystem ? '系统' : scope.row.userName }}
</template>
</el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
@ -296,11 +296,12 @@ export default {
try {
//
if (this.courseSystem) {
const { data } = await this.$get(this.api.getProjectListOfSystem, {
const { data } = await this.$post(this.api.getProjectListOfSystem, {
pageNum: this.page,
pageSize: this.pageSize,
systemId: this.systemId,
type: this.isTheory ? 3 : 1
type: this.isTheory ? 3 : 1,
keyword: this.keyword
})
if (this.isTheory) {
data.records.forEach(e => {

Loading…
Cancel
Save