yujialong 7 months ago
parent b88a039d4e
commit 30287441db
  1. 2
      public/index.html
  2. 2
      src/api/index.js
  3. 4
      src/pages/match/manage/matchArchList.vue
  4. 66
      src/pages/match/manage/matchInfo.vue
  5. 2
      src/pages/match/manage/matchRank.vue
  6. 12
      src/pages/match/manage/matchReport.vue
  7. 8
      src/pages/match/manage/matchSignup.vue
  8. 7
      src/pages/project/add/index.vue
  9. 1
      src/pages/station/preview/index.vue
  10. 4
      src/plugins/requests/index.js
  11. 2
      src/setting.js

@ -10,7 +10,7 @@
var _hmt = _hmt || []; var _hmt = _hmt || [];
(function() { (function() {
var hm = document.createElement('script'); var hm = document.createElement('script');
hm.src = 'https://hm.baidu.com/hm.js?e4d7deeca2d6ea71d2bd5fa2365bc654'; hm.src = 'https://hm.baidu.com/hm.js?72fbad6ebf1d6c705117fe8fe0686a0e';
var s = document.getElementsByTagName('script')[0]; var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})(); })();

@ -14,7 +14,7 @@ export default {
getCurrentTime : `competition/competition/management/getCurrentTime`, getCurrentTime : `competition/competition/management/getCurrentTime`,
heartbeatDetection : `nakadai/message/heartbeatDetection`, heartbeatDetection : `nakadai/message/heartbeatDetection`,
getPlayAuth: `${uploadURL}oss/manage/getPlayAuth`, // 获取播放凭证 getPlayAuth: `oss/manage/getPlayAuth`, // 获取播放凭证
platformLogList: `nakadai/nakadai/log/platformLogList`, platformLogList: `nakadai/nakadai/log/platformLogList`,
logNotification: `nakadai/nakadai/log/logNotification`, logNotification: `nakadai/nakadai/log/logNotification`,

@ -91,7 +91,7 @@
min-width="100" min-width="100"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="realSchool" <el-table-column prop="realSchool"
label="学生所院校" label="学生所院校"
min-width="100" min-width="100"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column v-if="competitionType" <el-table-column v-if="competitionType"
@ -184,7 +184,7 @@
label="学生账号归属" label="学生账号归属"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="realSchool" <el-table-column prop="realSchool"
label="学生所院校" label="学生所院校"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column v-if="competitionType" <el-table-column v-if="competitionType"
prop="teamName" prop="teamName"

@ -146,7 +146,7 @@
<td> <td>
<span v-if="item.score >= 0" <span v-if="item.score >= 0"
class="m-r-10">分数{{item.score}}</span> class="m-r-10">分数{{item.score}}</span>
<el-button v-if="form.completeCompetitionSetup.competitionType || (!form.completeCompetitionSetup.competitionType && item.resultsDetails === 0 && item.reportId)" <el-button v-if="form.completeCompetitionSetup.competitionType || (!form.completeCompetitionSetup.competitionType && item.reportId)"
type="text" type="text"
@click="show(item)">查看成绩详情</el-button> @click="show(item)">查看成绩详情</el-button>
</td> </td>
@ -268,7 +268,7 @@
<td>{{ item.timeSum }}min</td> <td>{{ item.timeSum }}min</td>
<td>{{ item.score }}</td> <td>{{ item.score }}</td>
<td> <td>
<el-button v-if="curRow.resultsDetails === 0 && item.reportId" <el-button :disabled="!item.reportId"
type="text" type="text"
@click="toReport(item)">查看</el-button> @click="toReport(item)">查看</el-button>
</td> </td>
@ -278,6 +278,16 @@
<td colspan="6">暂无数据</td> <td colspan="6">暂无数据</td>
</tr> </tr>
</table> </table>
<div class="pagination">
<el-pagination background
layout="total, prev, pager, next"
:total="total"
@current-change="handleCurrentChange"
:current-page="page"
:page-size="pageSize">
</el-pagination>
</div>
<span slot="footer" <span slot="footer"
class="dialog-footer"> class="dialog-footer">
<el-button size="small" <el-button size="small"
@ -289,7 +299,6 @@
</template> </template>
<script> <script>
import Setting from "@/setting";
import Util from "@/libs/util"; import Util from "@/libs/util";
export default { export default {
data () { data () {
@ -316,6 +325,9 @@ export default {
}, },
memberVisible: false, memberVisible: false,
members: [], members: [],
page: 1,
pageSize: 10,
total: 0,
curRow: {}, curRow: {},
teamVisible: false, teamVisible: false,
teams: [], teams: [],
@ -347,17 +359,12 @@ export default {
checkedMember: '', checkedMember: '',
checkedMembers: [], checkedMembers: [],
chooses: [], chooses: [],
timerList: [],
timer: null timer: null
}; };
}, },
mounted () { mounted () {
this.$once('hook:beforeDestroy', function () { this.$once('hook:beforeDestroy', function () {
clearInterval(this.timer) clearInterval(this.timer)
this.timerList.forEach(n => {
clearTimeout(n)
})
this.timerList = []
}) })
this.getData() this.getData()
}, },
@ -400,19 +407,6 @@ export default {
e.participants = participants e.participants = participants
} }
}) })
//
const now = Date.now()
this.form.competitionStage.map(e => {
//
if (!e.resultsDetails) {
const endTime = new Date(e.endTime).getTime() + e.resultAnnouncementTime * 3600000 // +
if (now > endTime) { //
info.stages.find(n => n.stageId == e.stageId).showDetail = 1
} else if (endTime - now < 86400000) { //
this.timerList.push(setTimeout(this.getInfo, endTime - now))
}
}
})
this.info = info this.info = info
}).catch(err => { }); }).catch(err => { });
}, },
@ -619,23 +613,27 @@ export default {
this.chooseVisible = false this.chooseVisible = false
}).catch(res => { }) }).catch(res => { })
}, },
async getMembers () {
try {
const { page } = await this.$post(this.api.stageTeamScoreDetails, {
pageNum: this.page,
pageSize: this.pageSize,
competitionId: this.id,
stageId: this.curRow.stageId,
teamId: this.info.teamId
})
this.members = page.records
this.total = page.total
} catch (e) { }
},
// //
show (row) { show (row) {
// //
if (this.form.completeCompetitionSetup.competitionType) { // if (this.form.completeCompetitionSetup.competitionType) { //
this.curRow = row this.curRow = row
this.memberVisible = true this.memberVisible = true
const teamId = this.info.teamId if (this.info.teamId) {
if (teamId) { this.getMembers()
this.$post(this.api.frontOfficeCompetitionRanking, {
pageNum: 1,
pageSize: 1000,
competitionId: this.id,
isOverallRanking: 0,
teamId
}).then(({ list }) => {
this.members = list
}).catch(res => { })
} else { } else {
this.members = [] this.members = []
} }
@ -643,6 +641,10 @@ export default {
this.toReport(row) this.toReport(row)
} }
}, },
handleCurrentChange (val) {
this.page = val;
this.getMembers()
},
// //
toReport (row) { toReport (row) {
this.$router.push(`/match/report?reportId=${row.reportId}`) this.$router.push(`/match/report?reportId=${row.reportId}`)

@ -95,7 +95,7 @@
min-width="100" min-width="100"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="realSchool" <el-table-column prop="realSchool"
label="学生所院校" label="学生所院校"
min-width="100" min-width="100"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="timeSum" <el-table-column prop="timeSum"

@ -6,7 +6,8 @@
content="查看报告"></el-page-header> content="查看报告"></el-page-header>
</el-card> </el-card>
<div class="content"> <div class="content"
v-loading="loading">
<div class="text-right"> <div class="text-right">
<el-button type="primary" <el-button type="primary"
@click="exportPage">导出报告</el-button> @click="exportPage">导出报告</el-button>
@ -232,6 +233,7 @@ export default {
}, },
methods: { methods: {
getData () { // getData () { //
this.loading = true
this.$get(`${this.api.reportDetail}?reportId=${this.reportId}`).then(({ report, userScores }) => { this.$get(`${this.api.reportDetail}?reportId=${this.reportId}`).then(({ report, userScores }) => {
this.form = report this.form = report
this.expData = userScores this.expData = userScores
@ -260,7 +262,9 @@ export default {
} else { } else {
this.handleList(userScores.find(e => e.lcRuleRecords) ? userScores : JSON.parse(data)) this.handleList(userScores.find(e => e.lcRuleRecords) ? userScores : JSON.parse(data))
} }
}).catch(res => { }) }).catch(res => {
this.loading = false
})
}, },
// //
handleList (list) { handleList (list) {
@ -278,6 +282,7 @@ export default {
}) })
} }
this.expData = list this.expData = list
this.loading = false
}, },
exportPage () { exportPage () {
const form = Object.assign(this.form, this.infoData) const form = Object.assign(this.form, this.infoData)
@ -335,9 +340,6 @@ samp {
.content { .content {
padding: 16px 40px; padding: 16px 40px;
background: #fff; background: #fff;
&.loading {
padding-top: 30px;
}
.r-title { .r-title {
margin-bottom: 40px; margin-bottom: 40px;
font-size: 24px; font-size: 24px;

@ -73,7 +73,7 @@
min-width="180" min-width="180"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column prop="realSchool" <el-table-column prop="realSchool"
label="学生所院校" label="学生所院校"
min-width="180" min-width="180"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column v-if="info.completeCompetitionSetup.competitionType" <el-table-column v-if="info.completeCompetitionSetup.competitionType"
@ -183,7 +183,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="studentAffiliatedInstitutionId" <el-form-item prop="studentAffiliatedInstitutionId"
label="学生所院校"> label="学生所院校">
<el-select v-model="form.studentAffiliatedInstitutionId" <el-select v-model="form.studentAffiliatedInstitutionId"
filterable filterable
style="width: 100%"> style="width: 100%">
@ -192,7 +192,7 @@
:label="item.schoolName" :label="item.schoolName"
:value="item.schoolId"></el-option> :value="item.schoolId"></el-option>
</el-select> </el-select>
<p style="margin-top: 10px;line-height: 1.4;font-size: 12px;">学生所院校为学生实际院校</p> <p style="margin-top: 10px;line-height: 1.4;font-size: 12px;">学生所院校为学生实际院校</p>
</el-form-item> </el-form-item>
<el-form-item prop="workNumber" <el-form-item prop="workNumber"
label="学生学号"> label="学生学号">
@ -786,7 +786,7 @@ export default {
} }
this.teamVisible = true this.teamVisible = true
}, },
// //
async getSchool () { async getSchool () {
const { list } = await this.$get(this.api.querySchoolData) const { list } = await this.$get(this.api.querySchoolData)
this.schools = list this.schools = list

@ -696,7 +696,7 @@ export default {
}; };
if (systemId == 2 || systemId == 3) { if (systemId == 2 || systemId == 3) {
console.log("系统id:", systemId); console.log("系统id:", systemId);
} else if (systemId == 11 || systemId == 12) { } else if (this.isLc) {
// () // ()
this.rowKey = "lcId"; this.rowKey = "lcId";
this.getProcessClassData(params); this.getProcessClassData(params);
@ -762,7 +762,6 @@ export default {
toJudgePoint (type, row) { // toJudgePoint (type, row) { //
this.handleCacheData(); this.handleCacheData();
let jumpPath = Setting.jumpPath; let jumpPath = Setting.jumpPath;
// let jumpPath = "http://192.168.31.154:8087/"; //
let { systemId } = this.projectManage; let { systemId } = this.projectManage;
let href = ""; let href = "";
if (type === "view") { if (type === "view") {
@ -771,7 +770,7 @@ export default {
console.log(systemId); console.log(systemId);
} else if (systemId == 3) { } else if (systemId == 3) {
console.log(systemId); console.log(systemId);
} else if (systemId == 11 || systemId == 12) { } else if (this.isLc) {
// //
href = `${jumpPath}#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${window.btoa(location.href)}`; href = `${jumpPath}#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${window.btoa(location.href)}`;
} else { } else {
@ -784,7 +783,7 @@ export default {
console.log(systemId); console.log(systemId);
} else if (systemId == 3) { } else if (systemId == 3) {
console.log(systemId); console.log(systemId);
} else if (systemId == 11 || systemId == 12) { } else if (this.isLc) {
// //
href = `${jumpPath}#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} else { } else {

@ -600,7 +600,6 @@ export default {
async getChapter () { async getChapter () {
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`); let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`);
this.chapterList = res.chapterList; this.chapterList = res.chapterList;
console.log(11, this.chapter)
const chapter = this.chapter === undefined ? 0 : +this.chapter const chapter = this.chapter === undefined ? 0 : +this.chapter
const section = this.section === undefined ? 0 : +this.section const section = this.section === undefined ? 0 : +this.section
const clist = this.chapterList[chapter] const clist = this.chapterList[chapter]

@ -26,6 +26,7 @@ service.interceptors.request.use(config => {
return Promise.reject(err); return Promise.reject(err);
}); });
let logouted = 0;
// 响应拦截器 // 响应拦截器
service.interceptors.response.use( service.interceptors.response.use(
response => { response => {
@ -48,12 +49,15 @@ service.interceptors.response.use(
// 未登录则跳转登录页面,并携带当前页面的路径 // 未登录则跳转登录页面,并携带当前页面的路径
// 在登录成功后返回当前页面,这一步需要在登录页操作。 // 在登录成功后返回当前页面,这一步需要在登录页操作。
case 401: case 401:
if (!logouted) {
util.local.remove(Setting.storeKey); util.local.remove(Setting.storeKey);
util.local.remove(Setting.tokenKey); util.local.remove(Setting.tokenKey);
util.errorMsg("登录过期,请重新登录"); util.errorMsg("登录过期,请重新登录");
setTimeout(() => { setTimeout(() => {
store.dispatch('user/logout') store.dispatch('user/logout')
}, 1000); }, 1000);
logouted = 1
}
break; break;
case 500: case 500:
util.errorMsg("网络错误"); util.errorMsg("网络错误");

@ -23,7 +23,7 @@ let title = '教师管理端'
if (isPro) { if (isPro) {
// 职站生产 // 职站生产
uploadURL = `https://www.huorantech.cn/` uploadURL = `https://www.huorantech.cn/`
jumpPath = `https://www.huorantech.cn/judgmentPoint/` jumpPath = `https://judgment.huorantech.cn/`
} else if (isDev) { } else if (isDev) {
jumpPath = `http://${location.hostname}:8087/` jumpPath = `http://${location.hostname}:8087/`
bankPath = `http://${location.hostname}:8093` bankPath = `http://${location.hostname}:8093`

Loading…
Cancel
Save