dev_202412
yujialong 2 months 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 ? 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.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 const isArr = res.page instanceof Array
this.list = isArr ? res.page : res.page.records this.list = isArr ? res.page : res.page.records
@ -294,7 +294,7 @@ export default {
// //
async getActivity () { 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.activations = message.records
this.totalActivation = message.total this.totalActivation = message.total
}, },
@ -323,7 +323,7 @@ export default {
// //
let url = this.permissions let url = this.permissions
? `${this.api.exportAssessmentInfo}?assessmentId=${this.id}&classId=${this.classId}` ? `${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 // id
if (this.multipleSelection.length) { if (this.multipleSelection.length) {
const ids = this.multipleSelection.map(e => this.permissions ? e.testStatusId : e.reportId) const ids = this.multipleSelection.map(e => this.permissions ? e.testStatusId : e.reportId)
@ -377,6 +377,7 @@ export default {
// //
const data = { const data = {
mallId: this.mallId, mallId: this.mallId,
cid: this.cid,
reportIds reportIds
} }
data[per ? 'assessmentId' : 'projectId'] = this.id || this.paperId data[per ? 'assessmentId' : 'projectId'] = this.id || this.paperId
@ -471,7 +472,7 @@ export default {
responseType: 'blob' responseType: 'blob'
}) })
} else { } 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: { headers: {
token: this.token token: this.token
}, },

@ -244,7 +244,7 @@ export default {
entry (row) { entry (row) {
const { curriculumId } = this.form const { curriculumId } = this.form
const cur = this.curs.find(e => e.cid == curriculumId) || {} 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 || ''}`) 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) { // handleDelete (row) { //

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

Loading…
Cancel
Save