Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
newCSO_2023
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhi
newCSO_2023
Commits
361b484f
Commit
361b484f
authored
Feb 24, 2023
by
lizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改课程信息
parent
b177a562
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
58 deletions
+87
-58
src/api/cso.js
+9
-0
src/views/courseManager/cooperateCourse.vue
+11
-5
src/views/pms/product/components/courseInfo.vue
+65
-51
src/views/pms/product/stuDetail.vue
+2
-2
No files found.
src/api/cso.js
View file @
361b484f
...
@@ -411,6 +411,15 @@ export function allCode(data) {
...
@@ -411,6 +411,15 @@ export function allCode(data) {
});
});
}
}
export
function
getCsoCode
(
data
)
{
// 学员详情页-课程信息-获取可选择的csoCode和其他相关信息
return
request
({
url
:
`/cso/getCsoCode`
,
method
:
"post"
,
data
});
}
export
function
allPayCode
(
data
)
{
export
function
allPayCode
(
data
)
{
// 学员详情页-课程信息-查询缴费标签
// 学员详情页-课程信息-查询缴费标签
return
request
({
return
request
({
...
...
src/views/courseManager/cooperateCourse.vue
View file @
361b484f
...
@@ -58,10 +58,10 @@
...
@@ -58,10 +58,10 @@
</el-form>
</el-form>
</div>
</div>
</el-card>
</el-card>
<
!--
<
div>
<div>
<el-checkbox
v-model=
"isMatch"
>
未匹配课程代码
</el-checkbox>
<
!--
<
el-checkbox
v-model=
"isMatch"
>
未匹配课程代码
</el-checkbox>
<el-button
type=
"primary"
@
click=
"getSelectedForm()"
>
确认
</el-button>
<el-button
type=
"primary"
@
click=
"getSelectedForm()"
>
确认
</el-button>
<el-button
type=
"primary"
@
click=
"resetForm('listQuery')"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"resetForm('listQuery')"
>
重置
</el-button>
-->
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"
@
click=
"
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
style=
"float: right;margin-bottom:5px"
style=
"float: right;margin-bottom:5px"
>
添加合作院校课程
</el-button
>
添加合作院校课程
</el-button
>
>
</div>
-->
</div>
<el-dialog
<el-dialog
title=
"添加合作院校课程"
title=
"添加合作院校课程"
:visible
.
sync=
"noticeVisible"
:visible
.
sync=
"noticeVisible"
...
@@ -369,7 +369,13 @@ export default {
...
@@ -369,7 +369,13 @@ export default {
noticeVisible
:
false
,
noticeVisible
:
false
,
editNoticeVisible
:
false
,
editNoticeVisible
:
false
,
title
:
""
,
title
:
""
,
coopCourseInfo
:
{},
coopCourseInfo
:
{
auditSchool
:
""
,
courseName
:
""
,
courseCode
:
""
,
csoName
:
""
,
csoCode
:
""
},
editCoopCourse
:
{
editCoopCourse
:
{
id
:
0
,
id
:
0
,
// auditSchool: " ",
// auditSchool: " ",
...
...
src/views/pms/product/components/courseInfo.vue
View file @
361b484f
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<!--
<h1>
{{
this
.
list
.
userId
}}
</h1>
-->
<!--
<h1>
{{
this
.
list
.
userId
}}
</h1>
-->
<!--
<h1>
{{
UserInfoDetail
.
school
}}
</h1>
-->
<div>
<div>
<el-button
<el-button
class=
"addCourseInfo"
class=
"addCourseInfo"
...
@@ -402,7 +403,11 @@
...
@@ -402,7 +403,11 @@
prop=
"auditSchool"
prop=
"auditSchool"
:label-width=
"formLabelWidth"
:label-width=
"formLabelWidth"
>
>
<el-input
@
change=
"test"
v-model=
"list.auditSchool"
clearable
>
<el-input
@
change=
"reportSchool"
v-model=
"list.auditSchool"
clearable
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -447,12 +452,7 @@
...
@@ -447,12 +452,7 @@
v-model=
"list.userCourseList[index].csoCourseCode"
v-model=
"list.userCourseList[index].csoCourseCode"
clearable
clearable
filterable
filterable
:disabled=
"
@
change=
"matchCode($event, index)"
list.userCourseList[index].ownCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
>
<el-option
<el-option
v-for=
"(item, index) in allCode"
v-for=
"(item, index) in allCode"
...
@@ -472,7 +472,8 @@
...
@@ -472,7 +472,8 @@
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"cso课程名称"
label-width=
"150px"
>
<el-form-item
label=
"cso课程名称"
label-width=
"150px"
>
<el-input
v-model=
"list.userCourseList[index].courseName"
>
<!-- <el-input v-model="list.userCourseList[index].courseName"> -->
<el-input
v-model=
"list.userCourseList[index].csoName"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -522,30 +523,14 @@
...
@@ -522,30 +523,14 @@
</el-select>
</el-select>
</el-form-item> -->
</el-form-item> -->
<el-form-item
label=
"所在学校课程代码"
label-width=
"150px"
>
<el-form-item
label=
"所在学校课程代码"
label-width=
"150px"
>
<el-input
<el-input
v-model=
"list.userCourseList[index].courseCode"
>
v-model=
"list.userCourseList[index].ownCourseCode"
:disabled=
"
list.userCourseList[index].csoCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"所在学校课程名称"
label-width=
"150px"
>
<el-form-item
label=
"所在学校课程名称"
label-width=
"150px"
>
<el-input
<el-input
v-model=
"list.userCourseList[index].courseName"
>
v-model=
"list.userCourseList[index].ownCourseCode"
:disabled=
"
list.userCourseList[index].csoCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -569,30 +554,14 @@
...
@@ -569,30 +554,14 @@
<div
class=
"line"
>
<div
class=
"line"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"审课学校课程代码"
label-width=
"150px"
>
<el-form-item
label=
"审课学校课程代码"
label-width=
"150px"
>
<el-input
<el-input
v-model=
"list.userCourseList[index].auditCourseCode"
>
v-model=
"list.userCourseList[index].ownCourseCode"
:disabled=
"
list.userCourseList[index].csoCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"审课学校课程名称"
label-width=
"150px"
>
<el-form-item
label=
"审课学校课程名称"
label-width=
"150px"
>
<el-input
<el-input
v-model=
"list.userCourseList[index].auditCourseName"
>
v-model=
"list.userCourseList[index].ownCourseCode"
:disabled=
"
list.userCourseList[index].csoCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -632,11 +601,12 @@ import {
...
@@ -632,11 +601,12 @@ import {
editUpdate
,
editUpdate
,
deleteCourse
,
deleteCourse
,
updateAuditCourse
,
updateAuditCourse
,
addCurrentTermCourse
addCurrentTermCourse
,
getCsoCode
}
from
"@/api/cso"
;
}
from
"@/api/cso"
;
export
default
{
export
default
{
name
:
"courseInfo"
,
name
:
"courseInfo"
,
props
:
[
"id"
],
props
:
[
"id"
,
"UserInfoDetail"
],
data
()
{
data
()
{
return
{
return
{
userId
:
""
,
userId
:
""
,
...
@@ -685,7 +655,8 @@ export default {
...
@@ -685,7 +655,8 @@ export default {
allCode
:
[],
allCode
:
[],
allPayCode
:
[],
allPayCode
:
[],
isOK
:
false
,
isOK
:
false
,
courseList
:
[]
courseList
:
[],
csoCodeInfo
:
[]
};
};
},
},
watch
:
{
watch
:
{
...
@@ -706,9 +677,9 @@ export default {
...
@@ -706,9 +677,9 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
test
(
val
)
{
//
test(val) {
console
.
log
(
val
,
"val"
);
//
console.log(val, "val");
},
//
},
submitForm
(
formName
)
{
submitForm
(
formName
)
{
// console.log(this.list, "submitForm");
// console.log(this.list, "submitForm");
this
.
list
.
userId
=
this
.
$route
.
query
.
id
;
this
.
list
.
userId
=
this
.
$route
.
query
.
id
;
...
@@ -937,13 +908,56 @@ export default {
...
@@ -937,13 +908,56 @@ export default {
this
.
goOnForm
.
userCourseList
=
[];
this
.
goOnForm
.
userCourseList
=
[];
// console.log(this.goOnForm, "goOn22");
// console.log(this.goOnForm, "goOn22");
// console.log(this.goOnForm.costTag, "goOn.costTag");
// console.log(this.goOnForm.costTag, "goOn.costTag");
},
reportSchool
(
val
)
{
// console.log(val, "66666666666");
getCsoCode
({
school
:
this
.
UserInfoDetail
.
school
,
auditSchool
:
val
}).
then
(
res
=>
{
// console.log(res, "getCsoCode");
if
(
res
.
data
)
{
res
.
data
.
csoCodeList
.
forEach
(
item
=>
{
let
obj
=
{};
obj
.
label
=
item
;
obj
.
value
=
item
;
this
.
allCode
.
push
(
obj
);
});
this
.
csoCodeInfo
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
.
csoCodeInfo
));
// console.log(this.csoCodeInfo, "this.csoCodeInfo");
}
else
{
this
.
allCode
=
[];
}
});
},
matchCode
(
val
,
index
)
{
// console.log(val, index, "matchCode");
let
arr
=
[];
if
(
val
)
{
// arr = this.csoCodeInfo.filter(item => {
// return item.csoCode == val;
// });
this
.
csoCodeInfo
.
forEach
(
item
=>
{
if
(
item
.
csoCode
==
val
)
{
this
.
list
.
userCourseList
[
index
].
csoCourseCode
=
item
.
csoCode
;
this
.
list
.
userCourseList
[
index
].
csoName
=
item
.
csoName
;
this
.
list
.
userCourseList
[
index
].
courseCode
=
item
.
courseCode
;
this
.
list
.
userCourseList
[
index
].
courseName
=
item
.
courseName
;
this
.
list
.
userCourseList
[
index
].
auditCourseCode
=
item
.
auditCourseCode
;
this
.
list
.
userCourseList
[
index
].
auditCourseName
=
item
.
auditCourseName
;
}
});
}
console
.
log
(
this
.
list
.
userCourseList
,
"matchCode"
);
}
}
},
},
mounted
()
{
mounted
()
{
// console.log(this.payInfo, "payInfo");
// console.log(this.payInfo, "payInfo");
this
.
userId
=
this
.
$route
.
query
.
id
;
this
.
userId
=
this
.
$route
.
query
.
id
;
this
.
list
.
userId
=
this
.
$route
.
query
.
id
;
this
.
list
.
userId
=
this
.
$route
.
query
.
id
;
this
.
getAllCode
();
//
this.getAllCode();
this
.
getAllPayCode
();
this
.
getAllPayCode
();
this
.
getCourseList
();
this
.
getCourseList
();
// console.log(this.list.userId, "this.list.userId");
// console.log(this.list.userId, "this.list.userId");
...
...
src/views/pms/product/stuDetail.vue
View file @
361b484f
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
<payCostInfo
:id=
"id"
:userInfo=
"userInfo"
></payCostInfo>
<payCostInfo
:id=
"id"
:userInfo=
"userInfo"
></payCostInfo>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"课程信息"
name=
"courseInfo"
>
<el-tab-pane
label=
"课程信息"
name=
"courseInfo"
>
<courseInfo
:id=
"id"
></courseInfo>
<courseInfo
:id=
"id"
:UserInfoDetail=
"UserInfoDetail"
></courseInfo>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"学员审课所处状态"
name=
"userAuditCourseState"
>
<el-tab-pane
label=
"学员审课所处状态"
name=
"userAuditCourseState"
>
<userAuditCourseState></userAuditCourseState>
<userAuditCourseState></userAuditCourseState>
...
@@ -409,7 +409,7 @@ export default {
...
@@ -409,7 +409,7 @@ export default {
},
},
getUserInfoDetail
(
id
)
{
getUserInfoDetail
(
id
)
{
UserInfoDetail
(
id
).
then
(
res
=>
{
UserInfoDetail
(
id
).
then
(
res
=>
{
this
.
UserInfoDetail
=
res
.
data
;
this
.
UserInfoDetail
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
))
;
this
.
userStatusList
.
userStatus
=
res
.
data
.
userStatus
;
this
.
userStatusList
.
userStatus
=
res
.
data
.
userStatus
;
console
.
log
(
this
.
UserInfoDetail
,
"this.UserInfoDetail"
);
console
.
log
(
this
.
UserInfoDetail
,
"this.UserInfoDetail"
);
});
});
...
...
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