|
|
@ -42,21 +42,19 @@ |
|
|
|
针对企业用人需求进行课程培训 |
|
|
|
针对企业用人需求进行课程培训 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-for="(item,key) of courselist" :key="key" |
|
|
|
<view |
|
|
|
style='font-size:11px;line-height: 18px;border-left: 1px solid #F5F7FA;border-right: 1px solid #F5F7FA;'> |
|
|
|
style='line-height: 20px;border-left: 1px solid #F5F7FA;border-right: 1px solid #F5F7FA;'> |
|
|
|
<view class="headert"> |
|
|
|
<view class="headert"> |
|
|
|
<view class="table_heade">{{item.index}} 、{{item.courseName}}</view> |
|
|
|
<view class="table_heade">序号</view> |
|
|
|
<view style="width:.5px;background-color:#CFDDDD;height:26px"></view> |
|
|
|
<view style="width:600rpx;text-align:center">课程名称</view> |
|
|
|
<view class="table_kheade">课时</view> |
|
|
|
<view class="table_kheade">课时</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if='item.children.length>0'> |
|
|
|
<view> |
|
|
|
<view class="bodyt" v-for="(itemd,key) of item.children" |
|
|
|
<view class="bodyt" v-for="(item,key) of courselist" :key="key" |
|
|
|
:style="{'border-bottom':itemd.orderNum==item.children.length?'none':'1rpx solid #CFDDDD;'}"> |
|
|
|
:style="{'border-bottom':key==courselist.length?'none':'1rpx solid #CFDDDD;'}"> |
|
|
|
<view class="table_obody">{{itemd.orderNum}}</view> |
|
|
|
<view class="table_obody">{{key+1}}</view> |
|
|
|
<view class="table_tbody">{{itemd.courseName}}</view> |
|
|
|
<view class="table_tbody">{{item.con}}</view> |
|
|
|
<view v-if='itemd.period.slice(-1)==0' class="table_hbody">{{itemd.period.slice(0,1)}} |
|
|
|
<view class="table_hbody">{{item.num}}</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-else class="table_hbody">{{itemd.period}}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -520,7 +518,7 @@ |
|
|
|
<view class="rowitemxing"> |
|
|
|
<view class="rowitemxing"> |
|
|
|
* |
|
|
|
* |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-input v-model="jjform.mobile" placeholder="请输入您的手机号"></u-input> |
|
|
|
<u-input v-model="jjform.mobile" :disabled="inpDisabled" placeholder="请输入您的手机号"></u-input> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</u-form-item> |
|
|
|
</u-form-item> |
|
|
|
<u-form-item prop="code" v-if="!accessToken"> |
|
|
|
<u-form-item prop="code" v-if="!accessToken"> |
|
|
@ -566,9 +564,10 @@ export default { |
|
|
|
let schooldata = res.data.rows[0] |
|
|
|
let schooldata = res.data.rows[0] |
|
|
|
this.calltext = schooldata.schoolName + '-' + schooldata.trainClassName |
|
|
|
this.calltext = schooldata.schoolName + '-' + schooldata.trainClassName |
|
|
|
if (schooldata.trainStartTime && schooldata.trainEndTime) { |
|
|
|
if (schooldata.trainStartTime && schooldata.trainEndTime) { |
|
|
|
console.log(schooldata); |
|
|
|
console.log(schooldata) |
|
|
|
this.timetext = |
|
|
|
this.timetext = |
|
|
|
schooldata.trainClassName + ' ' + |
|
|
|
schooldata.trainClassName + |
|
|
|
|
|
|
|
' ' + |
|
|
|
'课程周期:' + |
|
|
|
'课程周期:' + |
|
|
|
schooldata.trainStartTime.slice(0, 10) + |
|
|
|
schooldata.trainStartTime.slice(0, 10) + |
|
|
|
'至' + |
|
|
|
'至' + |
|
|
@ -600,6 +599,7 @@ export default { |
|
|
|
isShowDown: false, |
|
|
|
isShowDown: false, |
|
|
|
tokenshow: false, |
|
|
|
tokenshow: false, |
|
|
|
isPopupShow: false, |
|
|
|
isPopupShow: false, |
|
|
|
|
|
|
|
inpDisabled: false, |
|
|
|
signobj: { |
|
|
|
signobj: { |
|
|
|
name: '', |
|
|
|
name: '', |
|
|
|
qq: '', |
|
|
|
qq: '', |
|
|
@ -625,7 +625,29 @@ export default { |
|
|
|
label: '硕士', |
|
|
|
label: '硕士', |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
courselist: '', //培训课程列表 |
|
|
|
courselist: [ |
|
|
|
|
|
|
|
{ con: '静态分析的概念介绍。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '静态分析工具介绍。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '静态分析的基本流程。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试的概念介绍。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试依据的标准介绍。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '介绍单元测试的测试类型。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试的基本流程。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试工具的安装和使用。', num: '2课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试环境配置。', num: '2课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试工具静态分析操作流程。', num: '2课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试操作流程。', num: '2课时' }, |
|
|
|
|
|
|
|
{ con: '单元测试工具的测试报告导出。', num: '1课时' }, |
|
|
|
|
|
|
|
{ con: '静态测试工具的安装和使用。', num: '2课时' }, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
con: '通过项目进行代码行数、圈复杂度、扇入扇出、注释率进行测试。', |
|
|
|
|
|
|
|
num: '4课时', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
con: '通过项目进行文档审查、代码审查、静态分析、测试用例的设计、单元测试的执行、单元测试的记录填写、单元测试的测试用例的自动生成、单元测试的问题记录方法、单元测试文档编写。', |
|
|
|
|
|
|
|
num: '4课时', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], //培训课程列表 |
|
|
|
wxUserInfo: null, //微信基本信息 |
|
|
|
wxUserInfo: null, //微信基本信息 |
|
|
|
register: null, |
|
|
|
register: null, |
|
|
|
swipelist: [ |
|
|
|
swipelist: [ |
|
|
@ -978,34 +1000,34 @@ export default { |
|
|
|
this.register = uni.getStorageSync('register') |
|
|
|
this.register = uni.getStorageSync('register') |
|
|
|
console.log('register--', this.register) |
|
|
|
console.log('register--', this.register) |
|
|
|
console.log('wxUserInfo---', this.wxUserInfo) |
|
|
|
console.log('wxUserInfo---', this.wxUserInfo) |
|
|
|
this.http.quickGet(`/train/course/list?pageNum=1&pageSize=100`).then((res) => { |
|
|
|
// this.http.quickGet(`/train/course/list?pageNum=1&pageSize=100`).then((res) => { |
|
|
|
console.log('res---', res) |
|
|
|
// console.log('res---', res) |
|
|
|
this.courselist = res.data.rows |
|
|
|
// this.courselist = res.data.rows |
|
|
|
if (this.courselist.length > 0) { |
|
|
|
// if (this.courselist.length > 0) { |
|
|
|
this.courselist.sort((a, b) => { |
|
|
|
// this.courselist.sort((a, b) => { |
|
|
|
return a.orderNum - b.orderNum |
|
|
|
// return a.orderNum - b.orderNum |
|
|
|
}) |
|
|
|
// }) |
|
|
|
this.courselist.forEach((item) => { |
|
|
|
// this.courselist.forEach((item) => { |
|
|
|
if (item.children.length > 0) { |
|
|
|
// if (item.children.length > 0) { |
|
|
|
item.children.sort((a, b) => { |
|
|
|
// item.children.sort((a, b) => { |
|
|
|
return a.orderNum - b.orderNum |
|
|
|
// return a.orderNum - b.orderNum |
|
|
|
}) |
|
|
|
// }) |
|
|
|
if (item.orderNum == 1) { |
|
|
|
// if (item.orderNum == 1) { |
|
|
|
item.index = '一' |
|
|
|
// item.index = '一' |
|
|
|
} else if (item.orderNum == 2) { |
|
|
|
// } else if (item.orderNum == 2) { |
|
|
|
item.index = '二' |
|
|
|
// item.index = '二' |
|
|
|
} else if (item.orderNum == 3) { |
|
|
|
// } else if (item.orderNum == 3) { |
|
|
|
item.index = '三' |
|
|
|
// item.index = '三' |
|
|
|
} else if (item.orderNum == 4) { |
|
|
|
// } else if (item.orderNum == 4) { |
|
|
|
item.index = '四' |
|
|
|
// item.index = '四' |
|
|
|
} else if (item.orderNum == 5) { |
|
|
|
// } else if (item.orderNum == 5) { |
|
|
|
item.index = '五' |
|
|
|
// item.index = '五' |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
// } |
|
|
|
}) |
|
|
|
// }) |
|
|
|
console.log('课程培训列表--', this.courselist) |
|
|
|
// console.log('课程培训列表--', this.courselist) |
|
|
|
} |
|
|
|
// } |
|
|
|
}) |
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
// 获取课程列表 |
|
|
|
// 获取课程列表 |
|
|
|
this.getClassList() |
|
|
|
this.getClassList() |
|
|
@ -1173,6 +1195,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 模块1点击 |
|
|
|
// 模块1点击 |
|
|
|
model1CLick() { |
|
|
|
model1CLick() { |
|
|
|
|
|
|
|
console.log('click me') |
|
|
|
this.isShowDown = true |
|
|
|
this.isShowDown = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
closeShowDown() { |
|
|
|
closeShowDown() { |
|
|
@ -1239,6 +1262,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
closeclosejj() { |
|
|
|
closeclosejj() { |
|
|
|
this.isPCshow = false |
|
|
|
this.isPCshow = false |
|
|
|
|
|
|
|
this.inpDisabled = false |
|
|
|
this.$refs.uFormjj.resetFields() |
|
|
|
this.$refs.uFormjj.resetFields() |
|
|
|
this.jjform = { |
|
|
|
this.jjform = { |
|
|
|
studentName: '', |
|
|
|
studentName: '', |
|
|
@ -1248,6 +1272,10 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
jjOpen(it) { |
|
|
|
jjOpen(it) { |
|
|
|
|
|
|
|
const accessToken = uni.getStorageSync('accessToken') |
|
|
|
|
|
|
|
const wxUserInfo = uni.getStorageSync('wxUserInfo') |
|
|
|
|
|
|
|
console.log(accessToken) |
|
|
|
|
|
|
|
console.log(wxUserInfo) |
|
|
|
// let accessToken = uni.getStorageSync('accessToken'); |
|
|
|
// let accessToken = uni.getStorageSync('accessToken'); |
|
|
|
// if (!accessToken) { |
|
|
|
// if (!accessToken) { |
|
|
|
// this.tokenshow = true |
|
|
|
// this.tokenshow = true |
|
|
@ -1255,6 +1283,10 @@ export default { |
|
|
|
// this.isPCshow = true |
|
|
|
// this.isPCshow = true |
|
|
|
// this.classInfo = it |
|
|
|
// this.classInfo = it |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
if (accessToken && wxUserInfo.phonenumber) { |
|
|
|
|
|
|
|
this.jjform.mobile = wxUserInfo.phonenumber |
|
|
|
|
|
|
|
this.inpDisabled = true |
|
|
|
|
|
|
|
} |
|
|
|
if (it) { |
|
|
|
if (it) { |
|
|
|
this.classInfo = it |
|
|
|
this.classInfo = it |
|
|
|
} |
|
|
|
} |
|
|
@ -1983,13 +2015,14 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.table_heade { |
|
|
|
.table_heade { |
|
|
|
width: 90%; |
|
|
|
width: 100rpx; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
|
|
|
|
line-height: 20rpx; |
|
|
|
/* margin:5px 0 */ |
|
|
|
/* margin:5px 0 */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.table_kheade { |
|
|
|
.table_kheade { |
|
|
|
width: 10%; |
|
|
|
width: 140rpx; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2004,17 +2037,18 @@ export default { |
|
|
|
background-color: #ffffff; |
|
|
|
background-color: #ffffff; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
line-height: 20px; |
|
|
|
color: #1a1a1a; |
|
|
|
color: #1a1a1a; |
|
|
|
/* height: 26px; */ |
|
|
|
/* height: 26px; */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.table_obody { |
|
|
|
.table_obody { |
|
|
|
width: 10%; |
|
|
|
width: 100rpx; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.table_tbody { |
|
|
|
.table_tbody { |
|
|
|
width: 80%; |
|
|
|
width: 600rpx; |
|
|
|
text-align: left; |
|
|
|
text-align: left; |
|
|
|
padding: 4px 8px; |
|
|
|
padding: 4px 8px; |
|
|
|
border-left: 1px solid #cfdddd; |
|
|
|
border-left: 1px solid #cfdddd; |
|
|
@ -2022,7 +2056,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.table_hbody { |
|
|
|
.table_hbody { |
|
|
|
width: 10%; |
|
|
|
width: 140rpx; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|