Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
ffd31f01
Commit
ffd31f01
authored
Mar 17, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加关联题库
parent
d14eb459
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
3 deletions
+35
-3
index.js
src/api/school/index.js
+11
-0
course-form.vue
src/components/course/course-form.vue
+24
-3
No files found.
src/api/school/index.js
View file @
ffd31f01
...
...
@@ -698,4 +698,15 @@ export function GetTrialLessonList(data) {
method
:
'post'
,
data
});
}
/**
* 获取关联题库等级
*/
export
function
GetBankTypeList
(
data
)
{
return
request
({
url
:
'/Question/GetBankTypeList'
,
method
:
'post'
,
data
});
}
\ No newline at end of file
src/components/course/course-form.vue
View file @
ffd31f01
...
...
@@ -147,6 +147,13 @@
style=
"display:none"
/>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.OpenBankLevelList"
multiple
use-chips
ref=
"LevelData"
:options=
"LevelData"
label=
"课程关联题库"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-12 q-pr-lg q-pb-lg"
>
<q-input
v-model=
"objOption.ContractInfo"
filled
type=
"textarea"
placeholder=
"合同补充协议"
/>
...
...
@@ -197,7 +204,8 @@
getCourseEmphasisEnumList
}
from
"../../api/course/index"
;
import
{
getTeacherDropDownList
getTeacherDropDownList
,
GetBankTypeList
}
from
"../../api/school/index"
;
import
{
UploadSelfFile
...
...
@@ -251,7 +259,8 @@
ScrollMinNum
:
0
,
// 最小上课人数
ScrollMaxNum
:
0
,
// 最大上课人数
CourseTimeId
:
0
,
// 关联上课时段
ContractInfo
:
""
//合同补充协议
ContractInfo
:
""
,
//合同补充协议
OpenBankLevelList
:
[]
},
CourseTimeList
:
[],
//上课时段列表
CourseEmphasis
:
[],
//数据临时存放
...
...
@@ -270,7 +279,8 @@
modifyClassifyList
:
[],
//修改时返回的分类列表
courseLevelList
:
[],
//课程等级列表
courseSubjectList
:
[],
//课程科目列表
keynoteList
:
[]
//重点枚举列表
keynoteList
:
[],
//重点枚举列表
LevelData
:[]
};
},
created
()
{
...
...
@@ -282,6 +292,7 @@
this
.
getCourseRateList
();
this
.
getCourseEmphasisList
();
//获取课程重点枚举列表
this
.
initObj
();
this
.
getLevel
();
},
computed
:
mapState
({
//是否有编辑课时权限
...
...
@@ -307,6 +318,15 @@
this
.
getCourseTimeList
();
},
methods
:
{
//获取关联考试等级
getLevel
(){
GetBankTypeList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
console
.
log
(
res
,
'shuj'
);
this
.
LevelData
=
res
.
Data
;
}
})
},
//根据系列改变获取所属科目
changeCourseSubject
(
Id
)
{
if
(
Id
>
0
)
{
...
...
@@ -480,6 +500,7 @@
this
.
objOption
.
ScrollMinNum
=
res
.
Data
.
ScrollMinNum
;
this
.
objOption
.
ScrollMaxNum
=
res
.
Data
.
ScrollMaxNum
;
this
.
objOption
.
CourseTimeId
=
res
.
Data
.
CourseTimeId
;
this
.
objOption
.
OpenBankLevelList
=
res
.
Data
.
OpenBankLevelList
;
this
.
CourseEmphasis
=
[];
setTimeout
(()
=>
{
//Todo 暂时不知道什么原因 偶尔会出现2个 所以加了一个延迟
...
...
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