Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
tea-resources-web
Commits
62eaa310
Commit
62eaa310
authored
Apr 02, 2024
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人开课
parent
cc4925b6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
883 additions
and
214 deletions
+883
-214
index.vue
src/views/courseInformation/classManagement/index.vue
+79
-32
index.vue
src/views/courseInformation/tryoutCommencement/index.vue
+804
-182
No files found.
src/views/courseInformation/classManagement/index.vue
View file @
62eaa310
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
<!-- 开课类型-->
<!-- 开课类型-->
<el-table-column
label=
"开课类型"
prop=
"isPay"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"开课类型"
prop=
"isPay"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<!--
{{
scope
.
row
.
isPay
===
0
?
'试用'
:
'付费'
}}
-->
<!--
{{
scope
.
row
.
isPay
===
0
?
'试用'
:
'付费'
}}
-->
<span
v-if=
"scope.row.flag === '0'"
>
{{
scope
.
row
.
isPay
===
0
?
'试用'
:
'付费'
}}
</span>
<span
v-if=
"scope.row.flag === '0'"
>
{{
scope
.
row
.
isPay
===
0
?
'试用'
:
'付费'
}}
</span>
<el-select
<el-select
v-if=
"scope.row.flag === '1'"
v-if=
"scope.row.flag === '1'"
...
@@ -204,15 +204,15 @@
...
@@ -204,15 +204,15 @@
<el-table-column
label=
"备注"
prop=
"remarks"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"备注"
prop=
"remarks"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.flag === '0'"
>
{{
scope
.
row
.
remarks
||
'-'
}}
</span>
<span
v-if=
"scope.row.flag === '0'"
>
{{
scope
.
row
.
remarks
||
'-'
}}
</span>
<el-input
<el-input
v-if=
"scope.row.flag === '1'"
v-if=
"scope.row.flag === '1'"
v-model=
"scope.row.remarks"
v-model=
"scope.row.remarks"
placeholder=
"备注"
placeholder=
"备注"
clearable
clearable
:maxlength=
"30"
:maxlength=
"30"
size=
"small"
size=
"small"
/>
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"200px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -426,9 +426,9 @@
...
@@ -426,9 +426,9 @@
width=
"50"
width=
"50"
align=
"center"
align=
"center"
/>
/>
<el-table-column
label=
"单位"
prop=
"
u
nit"
>
<el-table-column
label=
"单位"
prop=
"
applicantU
nit"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
unitName
||
'-'
}}
{{
getUnitName
(
scope
.
row
.
applicantUnit
)
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"课程"
prop=
"class"
>
<el-table-column
label=
"课程"
prop=
"class"
>
...
@@ -466,22 +466,73 @@
...
@@ -466,22 +466,73 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"开课类型"
prop=
"isPay"
>
<el-table-column
label=
"开课类型"
prop=
"isPay"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
isPay
===
0
?
'试用'
:
'付费'
}}
<!--
{{
scope
.
row
.
isPay
===
0
?
'试用'
:
'付费'
}}
-->
<span
v-if=
"scope.row.flag === '0'"
>
{{
scope
.
row
.
isPay
===
0
?
'试用'
:
'付费'
}}
</span>
<el-select
v-if=
"scope.row.flag === '1'"
v-model=
"scope.row.isPay"
filterable
style=
"width: 160px"
>
<el-option
v-for=
"(items,index) in isPayList"
:key=
"index"
:label=
"items.label"
:value=
"items.value"
/>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"岗位分类"
prop=
"jobClassification"
>
<el-table-column
label=
"岗位分类"
prop=
"jobClassification"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
getJobClassificationName
(
scope
.
row
.
jobClassification
)
||
'-'
}}
<!--
{{
getJobClassificationName
(
scope
.
row
.
jobClassification
)
||
'-'
}}
-->
<span
v-if=
"scope.row.flag === '0'"
>
{{
getJobClassificationName
(
scope
.
row
.
jobClassification
)
||
'-'
}}
</span>
<el-select
v-if=
"scope.row.flag === '1'"
v-model=
"scope.row.jobClassification"
filterable
style=
"width: 160px"
>
<el-option
v-for=
"(items,index) in valueOptions"
:key=
"index"
:label=
"items.dictLabel"
:value=
"items.dictValue"
/>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"技术分类"
prop=
"teDirection"
>
<el-table-column
label=
"技术分类"
prop=
"teDirection"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
getCourseDirectionName
(
scope
.
row
.
technicalClassification
)
||
'-'
}}
<!--
{{
getCourseDirectionName
(
scope
.
row
.
technicalClassification
)
||
'-'
}}
-->
<span
v-if=
"scope.row.flag === '0'"
>
{{
getCourseDirectionName
(
scope
.
row
.
technicalClassification
)
||
'-'
}}
</span>
<el-select
v-if=
"scope.row.flag === '1'"
v-model=
"scope.row.technicalClassification"
filterable
style=
"width: 160px"
>
<el-option
v-for=
"(items,index) in courseDirection"
:key=
"index"
:label=
"items.dictLabel"
:value=
"items.dictValue"
/>
</el-select>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"备注"
prop=
"remarks"
>
<el-table-column
label=
"备注"
prop=
"remarks"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
remarks
||
'-'
}}
<!--
{{
scope
.
row
.
remarks
||
'-'
}}
-->
<span
v-if=
"scope.row.flag === '0'"
>
{{
scope
.
row
.
remarks
||
'-'
}}
</span>
<el-input
v-if=
"scope.row.flag === '1'"
v-model=
"scope.row.remarks"
placeholder=
"备注"
clearable
:maxlength=
"30"
size=
"small"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
>
...
@@ -626,7 +677,7 @@ export default {
...
@@ -626,7 +677,7 @@ export default {
technicalClassification
:
''
,
technicalClassification
:
''
,
beginTrialTime
:
''
,
beginTrialTime
:
''
,
endTrialTime
:
''
,
endTrialTime
:
''
,
applicantType
:
1
applicantType
:
2
},
},
// 开课类型list
// 开课类型list
isPayList
:
[
isPayList
:
[
...
@@ -686,6 +737,16 @@ export default {
...
@@ -686,6 +737,16 @@ export default {
this
.
unitOptions
=
res
.
data
this
.
unitOptions
=
res
.
data
})
})
},
},
// 根据id获取单位名称
getUnitName
(
businessId
)
{
let
name
=
''
this
.
unitOptions
.
forEach
(
item
=>
{
if
(
item
.
businessId
===
businessId
)
{
name
=
item
.
unitName
}
})
return
name
},
// 获取岗位类型
// 获取岗位类型
getJobClassification
()
{
getJobClassification
()
{
// const obj = {
// const obj = {
...
@@ -818,7 +879,7 @@ export default {
...
@@ -818,7 +879,7 @@ export default {
technicalClassification
:
this
.
addForm
.
technicalClassification
,
technicalClassification
:
this
.
addForm
.
technicalClassification
,
isPay
:
this
.
addForm
.
isPay
,
isPay
:
this
.
addForm
.
isPay
,
remarks
:
this
.
addForm
.
remarks
,
remarks
:
this
.
addForm
.
remarks
,
applicantType
:
1
applicantType
:
2
}
}
this
.
form
.
settingList
.
push
(
obj
)
this
.
form
.
settingList
.
push
(
obj
)
...
@@ -945,20 +1006,6 @@ export default {
...
@@ -945,20 +1006,6 @@ export default {
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
index
)
{
handleUpdate
(
index
)
{
this
.
dateList
[
index
].
flag
=
'1'
this
.
dateList
[
index
].
flag
=
'1'
// this.reset()
// const roleId = row.businessId || this.ids
// const roleMenu = this.getRoleMenuTreeSelect(roleId)
// getRole(roleId).then(response => {
// this.form = response.data
// this.open = true
//
// this.$nextTick(() => {
// roleMenu.then(res => {
// this.$refs.menu.setCheckedKeys(res.data.checkedKeys)
// })
// })
// this.title = '修改角色'
// })
},
},
/** 保存按钮操作 */
/** 保存按钮操作 */
handleSave
(
index
)
{
handleSave
(
index
)
{
...
...
src/views/courseInformation/tryoutCommencement/index.vue
View file @
62eaa310
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment