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
f4e5b148
Commit
f4e5b148
authored
Jun 09, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5b71d704
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
114 additions
and
0 deletions
+114
-0
othercourse-form.vue
src/components/course/othercourse-form.vue
+114
-0
No files found.
src/components/course/othercourse-form.vue
0 → 100644
View file @
f4e5b148
<
style
>
</
style
>
<
template
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
>
<q-card
style=
"width: 600px;max-width:600px;"
class=
"CLM-Form"
>
<q-card-section>
<div
class=
"text-h6"
>
关联其他课程
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"row"
>
<div
class=
"col"
>
<q-select
dense
standout
behavior=
"menu"
filled
v-model=
"chosenCourse"
:options=
"courseOptions"
@
filter=
"filterCourseFn"
input-debounce=
"0"
use-input
option-label=
"CourseName"
option-value=
"CourseId"
emit-value
map-options
placeholder=
"请选择"
clearable
/>
</div>
<div
class=
"q-ml-md"
>
<q-btn
color=
"primary"
label=
"添加"
@
click=
"addCourse"
></q-btn>
</div>
</div>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
style=
"margin-top:20px;"
class=
"sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
>
<template
v-slot:bottom
>
<!--
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.PageIndex"
color=
"primary"
:max=
"msg.PageCount"
:input=
"true"
@
input=
"changePage"
/>
-->
</
template
>
</q-table>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeCourseForm"
/>
<q-btn
label=
"立即提交"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveCourseLoading"
@
click=
"saveCourse"
/>
</q-card-actions>
</q-card>
</q-dialog>
</template>
<
script
>
export
default
{
components
:
{},
props
:
{
},
data
()
{
return
{
persistent
:
true
,
saveCourseLoading
:
false
,
chosenCourse
:
null
,
//选中的课程
chosenCourses
:
[],
courseOptions
:
[{
CourseName
:
'考级保研班1'
,
CourseId
:
1
},
{
CourseName
:
'考级保研班2'
,
CourseId
:
2
}],
dataList
:[],
columns
:
[{
name
:
'CourseName'
,
label
:
'课程名称'
,
field
:
'CourseName'
,
align
:
'left'
},
{
name
:
'Price'
,
label
:
'价格'
,
field
:
'Price'
,
align
:
'left'
},
{
name
:
'CourseHour'
,
label
:
'课时数'
,
field
:
'CourseHour'
,
align
:
'left'
},
{
name
:
'CateId'
,
label
:
'操作'
,
field
:
'CateId'
}
],
}
},
created
()
{
},
mounted
()
{
},
methods
:
{
saveCourse
()
{
},
//关闭弹窗
closeCourseForm
()
{
this
.
$emit
(
'close'
);
this
.
persistent
=
false
;
},
//课程筛选
filterCourseFn
(
val
,
update
,
abort
)
{
update
(()
=>
{
// this.courseOptions = this.courseList.filter(
// v => v.CourseName.indexOf(val) > -1
// );
});
},
addCourse
()
{
}
}
}
</
script
>
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