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
cc86a7ac
Commit
cc86a7ac
authored
Mar 02, 2023
by
lizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义
parent
3d85ecf0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
88 deletions
+47
-88
src/api/cso.js
+9
-0
src/views/pms/product/components/courseInfo.vue
+38
-88
No files found.
src/api/cso.js
View file @
cc86a7ac
...
...
@@ -447,6 +447,15 @@ export function editUpdate(data) {
});
}
export
function
customizationCourse
(
data
)
{
// 学员详情页-课程信息-自定义用户课程
return
request
({
url
:
`/user/course/customizationCourse`
,
method
:
"post"
,
data
});
}
export
function
deleteCourse
(
id
)
{
// 学员详情页-课程信息-删除用户课程
return
request
({
...
...
src/views/pms/product/components/courseInfo.vue
View file @
cc86a7ac
...
...
@@ -136,8 +136,11 @@
>
确认
</el-button
>
-->
<el-button
size=
"mini"
@
click=
"editCourse(index, scope.$index)"
>
编辑
</el-button
<el-button
size=
"mini"
type=
"warning"
@
click=
"editCourse(index, scope.$index)"
>
自定义
</el-button
>
<el-button
size=
"mini"
...
...
@@ -422,17 +425,17 @@
</el-dialog>
<el-dialog
title=
"
编辑课程信息
"
title=
"
自定义
"
:visible
.
sync=
"editCourseInfoVisible"
width=
"80%"
@
close=
"cancel('editCourseForm')"
>
<el-form
:model=
"editListItem"
:rules=
"rules"
ref=
"editCourseForm"
>
<div
class=
"line"
>
<
!-- <
div class="line">
<el-col :span="8">
<el-form-item label="年份" label-width="150px">
<el-input v-model="editListItem.yearTime">
<!-- <template slot="append">年</template> -->
</el-input>
</el-form-item></el-col
>
...
...
@@ -440,33 +443,13 @@
<el-col :span="8">
<el-form-item label="学期" label-width="150px">
<el-input v-model="editListItem.term">
<!-- <template slot="append">学期</template> -->
</el-input>
</el-form-item></el-col
>
</div> -->
<!-- <el-form-item label="cso课程代码" label-width="120px">
<el-select
v-model="editListItem.csoCourseCode"
clearable
:disabled="
editListItem.ownCourseCode && editListItem.auditCourseCode
? true
: false
"
>
<el-option
v-for="(item, index) in allCode2"
:key="index"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> -->
</div>
<div
class=
"line"
>
<!-- <div class="line">
<el-col :span="8">
<el-form-item label="cso课程代码" label-width="150px">
<el-select
...
...
@@ -492,7 +475,7 @@
<el-col :span="8">
<el-form-item label="cso课程名称" label-width="150px">
<!-- <el-input v-model="list.userCourseList[index].courseName"> -->
<el-input
v-model="editListItem.csoName"
:disabled="
...
...
@@ -504,9 +487,9 @@
</el-input>
</el-form-item>
</el-col>
</div>
</div>
-->
<div
class=
"line"
>
<
!-- <
div class="line">
<el-col :span="8">
<el-form-item label="所在学校课程代码" label-width="150px">
<el-input
...
...
@@ -534,25 +517,9 @@
</el-input>
</el-form-item>
</el-col>
</div>
</div>
-->
<div
class=
"line"
>
<!-- <el-col :span="6">
<el-form-item label="所在学校课程代码" label-width="150px">
<el-input
v-model="goOnForm.userCourseList[index].ownCourseCode"
:disabled="
goOnForm.userCourseList[index].csoCourseCode ||
goOnForm.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-form-item>
</el-col> -->
<el-col
:span=
"8"
>
<el-form-item
label=
"审课大学课程代码"
label-width=
"150px"
>
<el-input
...
...
@@ -581,38 +548,6 @@
</el-form-item>
</el-col>
</div>
<!-- <div class="line">
<el-form-item label="cso课程名称" :label-width="formLabelWidth">
<el-input v-model="editListItem.csoName"> </el-input>
</el-form-item>
<el-form-item label="所在学校课程代码" label-width="150px">
<el-input
v-model="editListItem.ownCourseCode"
:disabled="
(editListItem.csoCourseCode && editListItem.auditCourseCode) ||
editListItem.auditCourseCode
? true
: false
"
>
</el-input>
</el-form-item>
<el-form-item label="审课大学课程代码" label-width="150px">
<el-input
v-model="editListItem.auditCourseCode"
:disabled="
(editListItem.ownCourseCode && editListItem.csoCourseCode) ||
editListItem.ownCourseCode
? true
: false
"
>
</el-input>
</el-form-item>
</div> -->
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancel('editCourseForm')"
>
取 消
</el-button>
...
...
@@ -912,6 +847,7 @@ import {
allPayCode
,
courseList
,
editUpdate
,
customizationCourse
,
deleteCourse
,
updateAuditCourse
,
addCurrentTermCourse
,
...
...
@@ -935,7 +871,7 @@ export default {
auditSenior
:
""
,
teachWay
:
""
},
editListItem
:
[]
,
editListItem
:
{}
,
goOnForm
:
{
userCourseList
:
[]
},
list
:
{
costTag
:
""
,
...
...
@@ -1050,18 +986,32 @@ export default {
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
editUpdate
(
this
.
editListItem
).
then
(
response
=>
{
this
.
$message
({
type
:
"success"
,
message
:
"提交成功"
,
duration
:
1000
});
// editUpdate(this.editListItem).then(response => {
// this.$message({
// type: "success",
// message: "提交成功",
// duration: 1000
// });
// this.courseInfoVisible = false;
// this.editCourseInfoVisible = false;
// this.editCourseTitleVisible = false;
// this.goOnVisible = false;
// this.getCourseList();
// this.$forceUpdate();
// });
// console.log(this.editListItem, "this.editListItem");
let
obj
=
{};
obj
.
newCourseCode
=
this
.
editListItem
.
auditCourseCode
;
obj
.
newCourseName
=
this
.
editListItem
.
auditCourseName
;
obj
.
userCourseId
=
this
.
editListItem
.
id
;
customizationCourse
(
obj
).
then
(
res
=>
{
console
.
log
(
res
,
"customizationCourse"
);
obj
=
{};
this
.
courseInfoVisible
=
false
;
this
.
editCourseInfoVisible
=
false
;
this
.
editCourseTitleVisible
=
false
;
this
.
goOnVisible
=
false
;
this
.
getCourseList
();
this
.
$forceUpdate
();
});
});
},
...
...
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