dev_202303 V2.4.5
yujialong 2 years ago
parent 1245651314
commit dbf7090cbf
  1. BIN
      src/assets/img/mini.jpg
  2. 2
      src/setting.js
  3. 41
      src/utils/api.js
  4. 2
      src/views/Login.vue
  5. 2
      src/views/course/AddCurriculum.vue
  6. 2
      src/views/join/index.vue
  7. 6
      src/views/match/add/set.vue
  8. 2
      src/views/match/add/step3.vue
  9. 20
      src/views/match/manage/matchInfo.vue
  10. 8
      src/views/match/manage/matchSignup.vue
  11. 4
      src/views/match/manage/noticeDetail.vue
  12. 22
      src/views/order/AddOrder.vue
  13. 2
      src/views/parner/staff.vue

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 88 KiB

@ -12,7 +12,7 @@ if (isDev) {
host = 'http://121.37.12.51/' host = 'http://121.37.12.51/'
// host = 'https://huorantech.cn/' // host = 'https://huorantech.cn/'
// host = 'http://192.168.31.151:9000/'// 榕 // host = 'http://192.168.31.151:9000/'// 榕
// host = 'http://192.168.31.116:9000/'// 赓 host = 'http://192.168.31.116:9000/'// 赓
} else if (isPro) { } else if (isPro) {
jumpPath = 'https://www.huorantech.cn/judgmentPoint/' jumpPath = 'https://www.huorantech.cn/judgmentPoint/'
} }

@ -1,7 +1,6 @@
import Setting from "@/setting"; import Setting from "@/setting";
const host = Setting.apiBaseURL const host = Setting.apiBaseURL
const host1 = 'http://121.37.12.51/'
const uploadURL = Setting.uploadURL const uploadURL = Setting.uploadURL
export default { export default {
@ -370,26 +369,26 @@ export default {
performanceExportFailure: `${host}competition/competition/performance/exportFailure`, performanceExportFailure: `${host}competition/competition/performance/exportFailure`,
rankExportFailure: `${host}competition/competition/rank/exportFailure`, rankExportFailure: `${host}competition/competition/rank/exportFailure`,
batchImportRanking: `${host}competition/competition/rank/batchImportRanking`, batchImportRanking: `${host}competition/competition/rank/batchImportRanking`,
stageGradeManagementList: `${host1}competition/competition/performance/stageGradeManagementList`, stageGradeManagementList: `competition/competition/performance/stageGradeManagementList`,
stageRaceRanking: `${host1}competition/competition/rank/stageRaceRanking`, stageRaceRanking: `competition/competition/rank/stageRaceRanking`,
overallStandingsInThePointsRace: `${host1}competition/competition/rank/overallStandingsInThePointsRace`, overallStandingsInThePointsRace: `competition/competition/rank/overallStandingsInThePointsRace`,
publishRanking: `${host1}competition/competition/rank/publishRanking`, publishRanking: `competition/competition/rank/publishRanking`,
stageTeamScoreDetails: `${host1}competition/competition/rank/stageTeamScoreDetails`, stageTeamScoreDetails: `competition/competition/rank/stageTeamScoreDetails`,
multipleStageTeamScoreDetails: `${host1}competition/competition/rank/multipleStageTeamScoreDetails`, multipleStageTeamScoreDetails: `competition/competition/rank/multipleStageTeamScoreDetails`,
detailsOfTotalTeamScores: `${host1}competition/competition/rank/detailsOfTotalTeamScores`, detailsOfTotalTeamScores: `competition/competition/rank/detailsOfTotalTeamScores`,
cancelRanking: `${host1}competition/competition/rank/cancelRanking`, cancelRanking: `competition/competition/rank/cancelRanking`,
reportDetail: `${host1}occupationlab/occupationlab/achievement/reportDetail`, reportDetail: `occupationlab/occupationlab/achievement/reportDetail`,
deleteLastPublication: `${host1}competition/competition/rank/deleteLastPublication`, deleteLastPublication: `competition/competition/rank/deleteLastPublication`,
whetherToPublish: `${host1}competition/competition/rank/whetherToPublish`, whetherToPublish: `competition/competition/rank/whetherToPublish`,
manuallyRankTheUploadList: `${host1}competition/competition/rank/manuallyRankTheUploadList`, manuallyRankTheUploadList: `competition/competition/rank/manuallyRankTheUploadList`,
queryPublicationSource: `${host1}competition/competition/rank/queryPublicationSource`, queryPublicationSource: `competition/competition/rank/queryPublicationSource`,
releaseVerification: `${host1}competition/competition/rank/releaseVerification`, releaseVerification: `competition/competition/rank/releaseVerification`,
totalRankingScoreDetails: `${host1}competition/competition/rank/totalRankingScoreDetails`, totalRankingScoreDetails: `competition/competition/rank/totalRankingScoreDetails`,
batchRelease: `${host1}competition/competition/rank/batchRelease`, batchRelease: `competition/competition/rank/batchRelease`,
manuallyUploadedRankings: `${host1}competition/competition/rank/manuallyUploadedRankings`, manuallyUploadedRankings: `competition/competition/rank/manuallyUploadedRankings`,
toggleTheSortingMode: `${host1}competition/competition/rank/toggleTheSortingMode`, toggleTheSortingMode: `competition/competition/rank/toggleTheSortingMode`,
selectTheLastSortStatus: `${host1}competition/competition/rank/selectTheLastSortStatus`, selectTheLastSortStatus: `competition/competition/rank/selectTheLastSortStatus`,
cancelImport: `${host1}competition/competition/rank/cancelImport`, cancelImport: `competition/competition/rank/cancelImport`,
gradeImport: `http://121.37.12.51/template/赛事成绩导入模板.xlsx`, gradeImport: `http://121.37.12.51/template/赛事成绩导入模板.xlsx`,
rankImportTeam: `http://121.37.12.51/template/赛事排名导入模板(团队赛).xlsx`, rankImportTeam: `http://121.37.12.51/template/赛事排名导入模板(团队赛).xlsx`,
rankImportPerson: `http://121.37.12.51/template/赛事排名导入模板(个人赛).xlsx`, rankImportPerson: `http://121.37.12.51/template/赛事排名导入模板(个人赛).xlsx`,

@ -100,6 +100,7 @@
<script> <script>
import vFooter from '../components/Footer' import vFooter from '../components/Footer'
import Setting from '@/setting' import Setting from '@/setting'
import addRoutes from '@/libs/route/addRoutes'
export default { export default {
data: function() { data: function() {
var regPhoneOrEmail = (rule, value, callback) => {// var regPhoneOrEmail = (rule, value, callback) => {//
@ -199,6 +200,7 @@ export default {
sessionStorage.setItem('token',res.data.token) sessionStorage.setItem('token',res.data.token)
this.$get(`${this.api.getUserRolesPermissionMenu}?platformId=${Setting.platformId}`).then(res => { this.$get(`${this.api.getUserRolesPermissionMenu}?platformId=${Setting.platformId}`).then(res => {
const list = res.permissionMenu const list = res.permissionMenu
addRoutes(res.permissionMenu[0].children)
this.$store.commit('setDataPer', res.dataPermissionList) this.$store.commit('setDataPer', res.dataPermissionList)
this.$message.success(message); this.$message.success(message);
this.$router.push({ this.$router.push({

@ -313,7 +313,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="100"> <el-table-column label="操作" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button :disabled="scope.row.disabled" @click.native.prevent="handleDelete(scope.$index, assessmentData)">移除</el-button> <el-button :disabled="scope.row.disabled" @click.native.prevent="handleDelete(scope.$index, matches)">移除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

@ -7,7 +7,7 @@
<img src="@/assets/img/house.png" alt=""> <img src="@/assets/img/house.png" alt="">
</div> </div>
<p class="text" style="font-size: 16px">城市合伙人计划</p> <p class="text" style="font-size: 16px">城市合伙人计划</p>
<p class="text">{{ teamName ? ('加入' + teamName) : '加入并自动为你创建一个团队群组' }}</p> <p class="text">{{ teamName ? (teamName + '邀请你加入他的团队') : '加入并自动为你创建一个团队群组' }}</p>
</div> </div>
<div class="inner"> <div class="inner">
<el-form class="form" ref="form" :model="form" :rules="rules"> <el-form class="form" ref="form" :model="form" :rules="rules">

@ -191,9 +191,11 @@ export default {
}, },
// //
toProject() { toProject() {
const { form, curStep } = this.$parent
form[curStep] = this.form
this.$store.commit('setCompetitionCache', { this.$store.commit('setCompetitionCache', {
form: this.form, form,
curStep: this.$parent.curStep curStep
}) })
const item = this.curriculumList.find(e => e.cid == this.form.cid) || {} // id const item = this.curriculumList.find(e => e.cid == this.form.cid) || {} // id
let systemId = item.sysId || '1' let systemId = item.sysId || '1'

@ -134,7 +134,7 @@ export default {
resumeData() { resumeData() {
if (this.cache) { if (this.cache) {
this.curStep = this.cache.curStep this.curStep = this.cache.curStep
if (this.cache.form) this.form[this.curStep] = this.cache.form if (this.cache.form) this.form = this.cache.form
this.setVisible = true this.setVisible = true
this.$store.commit('setCompetitionCache', null) this.$store.commit('setCompetitionCache', null)
} }

@ -81,8 +81,8 @@
<template v-if="form.completeCompetitionSetup.competitionType"> <template v-if="form.completeCompetitionSetup.competitionType">
<th width="110">参赛人数限制</th> <th width="110">参赛人数限制</th>
<th>允许参赛人员</th> <th>允许参赛人员</th>
<th v-if="form.rule === 0">总分</th>
</template> </template>
<th v-if="form.rule === 0">总分</th>
<th>竞赛成绩</th> <th>竞赛成绩</th>
</tr> </tr>
<template v-if="info.stages.length"> <template v-if="info.stages.length">
@ -105,10 +105,10 @@
<span v-else class="m-r-5"></span> <span v-else class="m-r-5"></span>
<i class="el-icon-edit icon" @click="selectPar(item)"></i> <i class="el-icon-edit icon" @click="selectPar(item)"></i>
</td> </td>
<td v-if="form.rule === 0 && !i" :rowspan="info.stages.length">{{ info.totalScore }}</td>
</template> </template>
<td v-if="form.rule === 0 && !i" :rowspan="info.stages.length">{{ info.totalScore }}</td>
<td> <td>
<span v-if="item.score > 0" class="m-r-10">分数{{item.score}}</span> <span v-if="item.score >= 0" class="m-r-10">分数{{item.score}}</span>
<el-button type="text" :disabled="item.resultsDetails === 1 || (form.completeCompetitionSetup.competitionType && !item.reportId) || (form.completeCompetitionSetup.competitionType === 0 && !item.reportId)" @click="show(item)">查看成绩详情</el-button> <el-button type="text" :disabled="item.resultsDetails === 1 || (form.completeCompetitionSetup.competitionType && !item.reportId) || (form.completeCompetitionSetup.competitionType === 0 && !item.reportId)" @click="show(item)">查看成绩详情</el-button>
</td> </td>
</tr> </tr>
@ -267,7 +267,7 @@ export default {
this.$once('hook:beforeDestroy', function() { this.$once('hook:beforeDestroy', function() {
clearInterval(this.timer) clearInterval(this.timer)
this.timerList.forEach(n => { this.timerList.forEach(n => {
clearInterval(n) clearTimeout(n)
}) })
this.timerList = [] this.timerList = []
}) })
@ -320,7 +320,7 @@ export default {
const endTime = new Date(e.endTime).getTime() + e.resultAnnouncementTime * 3600000 // + const endTime = new Date(e.endTime).getTime() + e.resultAnnouncementTime * 3600000 // +
if (now > endTime) { // if (now > endTime) { //
info.stages.find(n => n.stageId == e.stageId).showDetail = 1 info.stages.find(n => n.stageId == e.stageId).showDetail = 1
} else { // } else if (endTime - now < 86400000) { //
this.timerList.push(setTimeout(this.getInfo, endTime - now)) this.timerList.push(setTimeout(this.getInfo, endTime - now))
} }
} }
@ -547,14 +547,14 @@ export default {
this.memberVisible = true this.memberVisible = true
const teamId = this.info.teamId const teamId = this.info.teamId
if (teamId) { if (teamId) {
this.$post(this.api.stageGradeManagementList, { this.$post(this.api.frontOfficeCompetitionRanking, {
pageNum: 1, pageNum: 1,
pageSize: 1000, pageSize: 1000,
competitionId: this.id, competitionId: this.id,
stageId: row.stageId, isOverallRanking: 0,
isNakadai: 0 teamId
}).then(({ page }) => { }).then(({ list }) => {
this.members = page.records.filter(e => e.teamId === teamId) this.members = list
}).catch(res => {}) }).catch(res => {})
} else { } else {
this.members = [] this.members = []

@ -194,6 +194,7 @@ export default {
}, },
originForm: {}, originForm: {},
exitMember: 0, exitMember: 0,
notExit: 0,
schoolDisable: false schoolDisable: false
}; };
}, },
@ -263,11 +264,13 @@ export default {
}, },
// //
add() { add() {
this.notExit = 0
this.isAdd = true this.isAdd = true
this.addVisible = true this.addVisible = true
}, },
// //
edit(row) { edit(row) {
this.notExit = 0
this.isAdd = false this.isAdd = false
this.addVisible = true this.addVisible = true
row.userName = row.username row.userName = row.username
@ -287,6 +290,7 @@ export default {
} }
this.formEnable = !account this.formEnable = !account
}).catch(res => { }).catch(res => {
if (res.message === '学生不存在') this.notExit = 1
if (!this.isAdd) this.exitMember = 1 if (!this.isAdd) this.exitMember = 1
}) })
} else { } else {
@ -295,6 +299,10 @@ export default {
}, },
// //
submitForm() { submitForm() {
if (this.notExit) {
this.submiting = false
return util.errorMsg('学生不存在,无法添加!')
}
if (this.exitMember) { if (this.exitMember) {
this.submiting = false this.submiting = false
return util.errorMsg('学生已存在') return util.errorMsg('学生已存在')

@ -159,9 +159,11 @@ export default {
return this.$confirm(`确定移除 ${file.name}`); return this.$confirm(`确定移除 ${file.name}`);
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
if (file.url) {
this.$del(`${this.api.fileDeletion}?keys=${file.url}`).then(res => {}).catch(res => {}) this.$del(`${this.api.fileDeletion}?keys=${file.url}`).then(res => {}).catch(res => {})
const id = this.form.announcementAnnexList.find(e => e.fileName === file.name).id const id = this.form.announcementAnnexList.find(e => e.fileName === file.name).id
this.$post(`${this.api.deleteAnnouncementAnnex}?id=${id}`).then(res => {}).catch(res => {}) this.$post(`${this.api.delAnnex}?id=${id}`).then(res => {}).catch(res => {})
}
}, },
back() { back() {
this.$router.back() this.$router.back()

@ -115,7 +115,8 @@
<span>课程权限</span> <span>课程权限</span>
</div> </div>
<div> <div>
<template v-if="!viewDisabled && !renewDisabled && coursePermissions.length"> <!-- 处理中 || 有未生效的课程 || 新增订单 && 有课程 -->
<template v-if="dispose || coursePermissions.find(e => e.status == 1) || (isAdd && coursePermissions.length)">
<el-button v-if="coursePermissions.find(e => !e.ship)" v-auth="'/order:发货'" type="primary" round @click="batchDeliver(1, 0)">一键发货</el-button> <el-button v-if="coursePermissions.find(e => !e.ship)" v-auth="'/order:发货'" type="primary" round @click="batchDeliver(1, 0)">一键发货</el-button>
<el-button v-else v-auth="'/order:发货'" type="primary" round @click="batchDeliver(0, 0)">取消全部发货</el-button> <el-button v-else v-auth="'/order:发货'" type="primary" round @click="batchDeliver(0, 0)">取消全部发货</el-button>
</template> </template>
@ -271,7 +272,8 @@
<span>数据平台权限</span> <span>数据平台权限</span>
</div> </div>
<div> <div>
<template v-if="!viewDisabled && !renewDisabled && dataPlatformPermissions.length"> <!-- 处理中 || 有未生效的课程 || 新增订单 && 有课程 -->
<template v-if="dispose || dataPlatformPermissions.find(e => e.status == 1) || (isAdd && dataPlatformPermissions.length)">
<el-button v-if="dataPlatformPermissions.find(e => !e.ship)" v-auth="'/order:发货'" type="primary" round @click="batchDeliver(1, 1)">一键发货</el-button> <el-button v-if="dataPlatformPermissions.find(e => !e.ship)" v-auth="'/order:发货'" type="primary" round @click="batchDeliver(1, 1)">一键发货</el-button>
<el-button v-else v-auth="'/order:发货'" type="primary" round @click="batchDeliver(0, 1)">取消全部发货</el-button> <el-button v-else v-auth="'/order:发货'" type="primary" round @click="batchDeliver(0, 1)">取消全部发货</el-button>
</template> </template>
@ -448,8 +450,9 @@
<span>职站增值模块权限</span> <span>职站增值模块权限</span>
</div> </div>
<div> <div>
<template v-if="!viewDisabled && !renewDisabled && dataPlatformPermissions.length"> <!-- 处理中 || 有未生效的课程 || 新增订单 && 有课程 -->
<el-button v-if="dataPlatformPermissions.find(e => !e.ship)" v-auth="'/order:发货'" type="primary" round @click="batchDeliver(1, 2)">一键发货</el-button> <template v-if="dispose || valuePermissions.find(e => e.status == 1) || (isAdd && valuePermissions.length)">
<el-button v-if="valuePermissions.find(e => !e.ship)" v-auth="'/order:发货'" type="primary" round @click="batchDeliver(1, 2)">一键发货</el-button>
<el-button v-else v-auth="'/order:发货'" type="primary" round @click="batchDeliver(0, 2)">取消全部发货</el-button> <el-button v-else v-auth="'/order:发货'" type="primary" round @click="batchDeliver(0, 2)">取消全部发货</el-button>
</template> </template>
<el-button v-if="!viewDisabled&&!editDisabled&&!renewDisabled" type="primary" round class="mag" @click="addValueJurisdiction()">添加</el-button> <el-button v-if="!viewDisabled&&!editDisabled&&!renewDisabled" type="primary" round class="mag" @click="addValueJurisdiction()">添加</el-button>
@ -1435,9 +1438,13 @@ export default {
this.coursePermissions.map(e => { this.coursePermissions.map(e => {
res.orderOthers.map(el => { res.orderOthers.map(el => {
if (el.dataOrCourseId === e.dataOrCourseId && el.authority) { if (el.dataOrCourseId === e.dataOrCourseId && el.authority) {
if (el.endTime) {
let time = new Date(el.endTime) let time = new Date(el.endTime)
time = new Date(time.setDate(time.getDate() + 1)) time = new Date(time.setDate(time.getDate() + 1))
e.startTime = `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}` e.startTime = `${time.getFullYear()}-${time.getMonth() + 1}-${time.getDate()}`
} else {
e.startTime = ''
}
e.endTime = ""; e.endTime = "";
e.periodOfUse = ""; e.periodOfUse = "";
e.renew = true; e.renew = true;
@ -1635,7 +1642,11 @@ export default {
}, },
// //
batchDeliver(ship, data) { batchDeliver(ship, data) {
const list = data ? this.dataPlatformPermissions : this.coursePermissions const list = data == 1 ?
this.dataPlatformPermissions :
data == 2 ?
this.valuePermissions :
this.coursePermissions
list.map(e => e.ship = ship) list.map(e => e.ship = ship)
if (this.editDisabled) { if (this.editDisabled) {
this.refreshCache() this.refreshCache()
@ -1749,6 +1760,7 @@ export default {
optionsData = 0 optionsData = 0
} }
let time = new Date(row.startTime).getTime(); let time = new Date(row.startTime).getTime();
let endTime = time + optionsData let endTime = time + optionsData
row.endTime = time + optionsData row.endTime = time + optionsData
var timestamp = endTime; var timestamp = endTime;

@ -436,7 +436,7 @@ export default {
if (data.isTeam) { if (data.isTeam) {
this.curTeamId = data.id this.curTeamId = data.id
} else { } else {
this.getTeamId(data.children) // this.getTeamId(data.children)
} }
if (!this.curTeamId) this.curTeamId = data.id if (!this.curTeamId) this.curTeamId = data.id
this.initData() this.initData()

Loading…
Cancel
Save