dev_202412
yujialong 1 year ago
parent f5c0e5325e
commit 434e52e808
  1. 2
      src/api/index.js
  2. 13
      src/pages/match/details/index.vue
  3. 8
      src/pages/screen/index.vue
  4. 2
      src/setting.js

@ -41,7 +41,7 @@ export default {
saveLearningProgress: 'nakadai/nakadai/curriculum/learning/progressprogress/save',
updateLearningProgress: 'nakadai/nakadai/curriculum/learning/progressprogress/update',
maximumPracticeScoreList: 'occupationlab/occupationlab/achievement/maximumPracticeScoreList',
listOfGoods: `nakadai/mall/listOfGoods`,
websiteProductList: `nakadai/mall/websiteProductList`,
// 课程笔记
addNote: `nakadai/curriculumNotes/addNote`,

@ -302,7 +302,7 @@
<template v-if="status < 5">
<i v-if="item.edit"
class="el-icon-check icon"
@click="submitAdvisor(item)"></i>
@click="submitAdvisor(item, i)"></i>
<i v-else
class="el-icon-edit icon"
@click="editAdvisor(item)"></i>
@ -793,6 +793,7 @@ export default {
teamInstructors: []
},
originIns: {
id: '',
position: '',
name: '',
phone: '',
@ -1197,7 +1198,7 @@ export default {
this.$set(row, 'edit', 1)
},
//
submitAdvisor (row) {
submitAdvisor (row, i) {
if (!row.name) return Util.errorMsg('请输入姓名')
const { phone } = row
if (phone && !/^1[3456789]\d{9}$/.test(phone)) return Util.errorMsg('请输入正确手机号格式')
@ -1208,9 +1209,13 @@ export default {
teamId: this.form.competitionRegistration ? this.form.competitionRegistration.teamId : '',
phone: row.phone,
position: row.position,
}).then(res => {
}).then(({ id }) => {
Util.successMsg((row.id ? '修改' : '新增') + '成功')
this.getInfo()
if (!row.id) {
this.info.teamInstructors[i].id = id
}
this.info.teamInstructors[i].edit = 0
// this.getInfo()
}).catch(res => { })
},
//

@ -397,8 +397,12 @@ export default {
data () {
return {
token: Util.local.get(Setting.tokenKey),
time: 0,
time: 2,
times: [
{
id: 2,
name: '年'
},
{
id: 0,
name: '月'
@ -766,7 +770,7 @@ export default {
},
]
//
const cousrseRes = await this.$post(this.api.listOfGoods, {
const cousrseRes = await this.$post(this.api.websiteProductList, {
pageNum: 1,
pageSize: 1000,
sort: 0,

@ -34,7 +34,7 @@ if (isPro) {
sandPath = `http://${location.hostname}:9520`
uploadURL = `http://121.37.12.51/`
host = "http://121.37.12.51/"; // 测试服
host = 'https://www.occupationlab.com/' // 正式服
// host = 'https://www.occupationlab.com/' // 正式服
host = "http://192.168.31.217:9000/";
} else if (isSq) {
zcPath = `10.20.100.204:8883`

Loading…
Cancel
Save