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
0370265d
Commit
0370265d
authored
Mar 19, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a0d66fa9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
281 additions
and
447 deletions
+281
-447
course-form.vue
src/components/course/course-form.vue
+276
-445
studyProAudit.vue
src/pages/studyAbroad/studyProAudit.vue
+5
-2
No files found.
src/components/course/course-form.vue
View file @
0370265d
<
template
>
<
template
>
<q-dialog
<q-dialog
v-model=
"persistent"
persistent
content-class=
"bg-grey-1"
transition-show=
"scale"
transition-hide=
"scale"
>
v-model=
"persistent"
persistent
content-class=
"bg-grey-1"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 800px;max-width:900px;"
>
<q-card
style=
"width: 800px;max-width:900px;"
>
<q-card-section>
<q-card-section>
<div
class=
"text-h6"
>
<div
class=
"text-h6"
>
...
@@ -15,290 +9,130 @@
...
@@ -15,290 +9,130 @@
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
基本设置
</div>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
基本设置
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<q-input
<q-input
filled
stack-label
:dense=
"false"
v-model=
"objOption.CourseName"
ref=
"CourseName"
filled
class=
"col-6 q-pr-lg q-pb-lg"
label=
"课程名称"
:rules=
"[val => !!val || '请填写课程名称']"
/>
stack-label
:dense=
"false"
v-model=
"objOption.CourseName"
ref=
"CourseName"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"课程名称"
:rules=
"[val => !!val || '请填写课程名称']"
/>
<q-select
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"chooseTeacher"
filled
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"教师团队"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
stack-label
map-options
multiple
/>
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"chooseTeacher"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"教师团队"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
multiple
/>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<div
class=
"col-6 q-pb-lg q-pr-lg"
>
<div
class=
"col-6 q-pb-lg q-pr-lg"
>
<q-uploader
<q-uploader
:style=
"
{ backgroundImage: 'url(' + objOption.CoverImg + ')' }" style="width:auto;height:139px"
:style=
"
{ backgroundImage: 'url(' + objOption.CoverImg + ')' }"
flat hide-upload-btn max-files="1" label="课程封面" accept=".jpg, image/*" :factory="uploadFile" auto-upload>
style="width:auto;height:139px"
flat
hide-upload-btn
max-files="1"
label="课程封面"
accept=".jpg, image/*"
:factory="uploadFile"
auto-upload
>
</q-uploader>
</q-uploader>
</div>
</div>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<q-input
<q-input
v-model=
"objOption.CourseFeature"
filled
type=
"textarea"
placeholder=
"课程特色"
/>
v-model=
"objOption.CourseFeature"
filled
type=
"textarea"
placeholder=
"课程特色"
/>
</div>
</div>
</div>
</div>
<div
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
v-if=
"isShowPrice == 1"
>
class=
"text-caption q-mb-lg q-px-md text-grey-6"
v-if=
"isShowPrice == 1"
>
价格设置
价格设置
<q-toggle
<q-toggle
style=
"float:right;"
size=
"md"
left-label
label=
"阶梯定价"
color=
"primary"
:false-value=
"0"
style=
"float:right;"
:true-value=
"1"
v-model=
"objOption.IsOpenStepPrice"
/>
size=
"md"
left-label
label=
"阶梯定价"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsOpenStepPrice"
/>
</div>
</div>
<div
class=
"row wrap"
v-if=
"isShowPrice == 1"
>
<div
class=
"row wrap"
v-if=
"isShowPrice == 1"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
<q-input
filled
stack-label
:dense=
"false"
v-model=
"objOption.OriginalPrice"
ref=
"OriginalPrice"
filled
class=
"col-6 q-pr-lg q-pb-lg"
label=
"原价"
@
keyup
.
native=
"checkPrice(objOption, 'OriginalPrice')"
stack-label
:rules=
"[val => !!val || '请填写原价']"
/>
:dense=
"false"
v-model=
"objOption.OriginalPrice"
ref=
"OriginalPrice"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"原价"
@
keyup
.
native=
"checkPrice(objOption, 'OriginalPrice')"
:rules=
"[val => !!val || '请填写原价']"
/>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
<q-input
filled
stack-label
:dense=
"false"
v-model=
"objOption.SellPrice"
ref=
"SellPrice"
filled
class=
"col-6 q-pr-lg q-pb-lg"
label=
"卖价"
@
keyup
.
native=
"checkPrice(objOption, 'SellPrice')"
stack-label
:rules=
"[val => !!val || '请填写卖价']"
/>
:dense=
"false"
v-model=
"objOption.SellPrice"
ref=
"SellPrice"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"卖价"
@
keyup
.
native=
"checkPrice(objOption, 'SellPrice')"
:rules=
"[val => !!val || '请填写卖价']"
/>
</div>
</div>
</div>
</div>
<div
class=
"row wrap"
style=
"margin:20px 0;"
v-if=
"isShowPrice == 1"
>
<div
class=
"row wrap"
style=
"margin:20px 0;"
v-if=
"isShowPrice == 1"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-btn
<q-btn
v-if=
"objOption.IsOpenStepPrice == 1"
size=
"10px"
@
click=
"addStepPrice()"
round
color=
"primary"
v-if=
"objOption.IsOpenStepPrice == 1"
icon=
"iconfont icon-img_haha"
/>
size=
"10px"
@
click=
"addStepPrice()"
round
color=
"primary"
icon=
"iconfont icon-img_haha"
/>
</div>
</div>
</div>
</div>
<template
v-if=
"objOption.IsOpenStepPrice == 1 && isShowPrice == 1"
>
<template
v-if=
"objOption.IsOpenStepPrice == 1 && isShowPrice == 1"
>
<div
<div
class=
"row wrap"
v-for=
"(item, index) in ladderPriceList"
:key=
"index"
>
class=
"row wrap"
v-for=
"(item, index) in ladderPriceList"
:key=
"index"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
<q-input
filled
stack-label
v-model=
"item.PersionNum"
@
keyup
.
native=
"checkInteger(item, 'PersionNum')"
filled
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"人"
/>
stack-label
v-model=
"item.PersionNum"
@
keyup
.
native=
"checkInteger(item, 'PersionNum')"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"人"
/>
</div>
</div>
<div
class=
"col-6"
style=
"position:relative;"
>
<div
class=
"col-6"
style=
"position:relative;"
>
<q-input
<q-input
filled
stack-label
v-model=
"item.PersionPrice"
@
keyup
.
native=
"checkPrice(item, 'PersionPrice')"
filled
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"价格"
/>
stack-label
<q-btn
style=
"position:absolute;right:-5px;top:20px;"
size=
"6px"
@
click=
"delStepPrice(index)"
round
v-model=
"item.PersionPrice"
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
@
keyup
.
native=
"checkPrice(item, 'PersionPrice')"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"价格"
/>
<q-btn
style=
"position:absolute;right:-5px;top:20px;"
size=
"6px"
@
click=
"delStepPrice(index)"
round
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<div
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
v-if=
"isShowPrice == 1"
>
class=
"text-caption q-mb-lg q-px-md text-grey-6"
v-if=
"isShowPrice == 1"
>
可续费课程
可续费课程
<q-toggle
<q-toggle
style=
"float:right;"
size=
"md"
left-label
label=
"可续费课程"
color=
"primary"
:false-value=
"0"
style=
"float:right;"
:true-value=
"1"
v-model=
"objOption.IsRenew"
/>
size=
"md"
left-label
label=
"可续费课程"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsRenew"
/>
</div>
</div>
<div
class=
"row wrap"
v-if=
"objOption.IsRenew == 1 && isShowPrice == 1"
>
<div
class=
"row wrap"
v-if=
"objOption.IsRenew == 1 && isShowPrice == 1"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
<q-input
filled
stack-label
:dense=
"false"
v-model=
"objOption.RenewOgPrice"
ref=
"RenewOgPrice"
filled
class=
"col-6 q-pr-lg q-pb-lg"
label=
"续费原价"
@
keyup
.
native=
"checkPrice(objOption, 'RenewOgPrice')"
stack-label
:rules=
"[val => !!val || '请填写续费原价']"
/>
:dense=
"false"
v-model=
"objOption.RenewOgPrice"
ref=
"RenewOgPrice"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"续费原价"
@
keyup
.
native=
"checkPrice(objOption, 'RenewOgPrice')"
:rules=
"[val => !!val || '请填写续费原价']"
/>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
<q-input
filled
stack-label
:dense=
"false"
v-model=
"objOption.RenewSlPrice"
ref=
"RenewSlPrice"
filled
class=
"col-6 q-pr-lg q-pb-lg"
label=
"续费售价"
@
keyup
.
native=
"checkPrice(objOption, 'RenewSlPrice')"
stack-label
:rules=
"[val => !!val || '请填写续费售价']"
/>
:dense=
"false"
v-model=
"objOption.RenewSlPrice"
ref=
"RenewSlPrice"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"续费售价"
@
keyup
.
native=
"checkPrice(objOption, 'RenewSlPrice')"
:rules=
"[val => !!val || '请填写续费售价']"
/>
</div>
</div>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
<q-input
filled
stack-label
@
keyup
.
native=
"checkPrice(objOption, 'ClassHours')"
reverse-fill-mask
filled
v-model=
"objOption.ClassHours"
ref=
"ClassHours"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"课时数量"
stack-label
:rules=
"[val => !!val || '请填写课时信息']"
/>
@
keyup
.
native=
"checkPrice(objOption, 'ClassHours')"
reverse-fill-mask
v-model=
"objOption.ClassHours"
ref=
"ClassHours"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"课时数量"
:rules=
"[val => !!val || '请填写课时信息']"
/>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-select
<q-select
filled
stack-label
option-value=
"CateId"
option-label=
"CateName"
v-model=
"objOption.CateId"
filled
ref=
"CateId"
:options=
"TreeCategoryList"
label=
"所属系列"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
stack-label
:rules=
"[val => !!val || '请选择课程所属系列']"
/>
option-value=
"CateId"
option-label=
"CateName"
v-model=
"chosenCateId"
ref=
"CateId"
:options=
"TreeCategoryList"
label=
"所属系列"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
:rules=
"[val => !!val || '请选择课程所属系列']"
/>
</div>
</div>
</div>
</div>
<div
class=
"text-caption q-my-md q-px-xs text-grey-6"
>
课程介绍
</div>
<div
class=
"text-caption q-my-md q-px-xs text-grey-6"
>
课程介绍
</div>
<ext-editor
<ext-editor
:defaultMsg=
"objOption.CourseIntro"
classStr=
"col-12"
@
getEditValue=
"getEditValue"
></ext-editor>
:defaultMsg=
"objOption.CourseIntro"
classStr=
"col-12"
@
getEditValue=
"getEditValue"
></ext-editor>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<span>
上架端口:
</span>
<span>
上架端口:
</span>
<
template
v-for=
"(item, index) in SaleplatList"
>
<
template
v-for=
"(item, index) in SaleplatList"
>
<q-checkbox
<q-checkbox
v-model=
"choosePlat"
:label=
"item.Name"
:val=
"item.Id"
/>
v-model=
"choosePlat"
:label=
"item.Name"
:val=
"item.Id"
/>
</
template
>
</
template
>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-toggle
<q-toggle
style=
"float:right;"
size=
"md"
left-label
label=
"K12课程"
color=
"primary"
:false-value=
"0"
style=
"float:right;"
:true-value=
"1"
v-model=
"objOption.IsKCourse"
/>
size=
"md"
left-label
label=
"K12课程"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsKCourse"
/>
</div>
</div>
</div>
</div>
</q-card-section>
</q-card-section>
<q-separator
/>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeCourseForm"
/>
label=
"取消"
<q-btn
label=
"立即提交"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveCourseLoading"
flat
@
click=
"saveCourse"
/>
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-actions>
</q-card>
</q-card>
</q-dialog>
</q-dialog>
</template>
</template>
<
script
>
<
script
>
import
{
import
{
queryCourseCategoryTree
,
queryCourseCategoryTree
,
saveCourseInfo
,
saveCourseInfo
,
queryCourseInfo
,
queryCourseInfo
,
querySaleplatList
querySaleplatList
}
from
"../../api/course/index"
;
}
from
"../../api/course/index"
;
import
{
getTeacherDropDownList
}
from
"../../api/school/index"
;
import
{
import
{
UploadSelfFile
}
from
"../../api/common/common"
;
getTeacherDropDownList
import
selectTree
from
"../common/select-tree"
;
}
from
"../../api/school/index"
;
import
extEditor
from
"../common/ext-editor"
;
import
{
export
default
{
UploadSelfFile
}
from
"../../api/common/common"
;
import
selectTree
from
"../common/select-tree"
;
import
extEditor
from
"../common/ext-editor"
;
export
default
{
components
:
{
components
:
{
selectTree
,
selectTree
,
extEditor
extEditor
...
@@ -340,7 +174,7 @@ export default {
...
@@ -340,7 +174,7 @@ export default {
SaleplatList
:
[],
//销售端口
SaleplatList
:
[],
//销售端口
choosePlat
:
[],
//选择的平台
choosePlat
:
[],
//选择的平台
chooseTeacher
:
[],
//选择老师
chooseTeacher
:
[],
//选择老师
chosenCateId
:
null
,
isShowPrice
:
0
//是否显示价格【hk2021-03-05新增】
isShowPrice
:
0
//是否显示价格【hk2021-03-05新增】
};
};
},
},
...
@@ -391,11 +225,7 @@ export default {
...
@@ -391,11 +225,7 @@ export default {
var
qMsg
=
{};
var
qMsg
=
{};
queryCourseCategoryTree
(
qMsg
).
then
(
res
=>
{
queryCourseCategoryTree
(
qMsg
).
then
(
res
=>
{
this
.
TreeCategoryList
=
res
.
Data
;
this
.
TreeCategoryList
=
res
.
Data
;
this
.
TreeCategoryList
.
forEach
(
x
=>
{
if
(
x
.
CateId
==
this
.
objOption
.
CateId
){
this
.
chosenCateId
=
x
}
})
});
});
},
},
//新增阶梯定价
//新增阶梯定价
...
@@ -509,7 +339,7 @@ export default {
...
@@ -509,7 +339,7 @@ export default {
this
.
objOption
.
Teacher_Ids
=
Teacher_Ids
;
this
.
objOption
.
Teacher_Ids
=
Teacher_Ids
;
this
.
objOption
.
Saleplat
=
salePlat
;
this
.
objOption
.
Saleplat
=
salePlat
;
this
.
objOption
.
CateId
=
this
.
chosenCateId
saveCourseInfo
(
this
.
objOption
)
saveCourseInfo
(
this
.
objOption
)
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
saveCourseLoading
=
false
;
this
.
saveCourseLoading
=
false
;
...
@@ -529,5 +359,6 @@ export default {
...
@@ -529,5 +359,6 @@ export default {
}
}
}
}
}
}
};
};
</
script
>
</
script
>
src/pages/studyAbroad/studyProAudit.vue
View file @
0370265d
...
@@ -139,7 +139,8 @@
...
@@ -139,7 +139,8 @@
rowsPerPage
:
10
,
rowsPerPage
:
10
,
Name
:
""
,
Name
:
""
,
IsQPrice
:
1
,
IsQPrice
:
1
,
SaleState
:
2
//销售状态
SaleState
:
2
,
//销售状态
AuditType
:
0
,
//审核类型(1-部门主管审核,2-部门负责人审核)
},
},
dataList
:
[],
dataList
:
[],
loading
:
true
,
loading
:
true
,
...
@@ -243,7 +244,9 @@
...
@@ -243,7 +244,9 @@
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
auditList
.
forEach
((
x
,
index
)
=>
{
this
.
auditList
.
forEach
((
x
,
index
)
=>
{
if
(
x
.
Id
===
userInfo
.
Id
)
{
if
(
x
.
Id
===
userInfo
.
Id
)
{
console
.
log
(
"index"
,
index
)
this
.
AuditType
=
index
+
1
;
this
.
AuditType
=
index
+
1
;
console
.
log
(
"this.AuditType"
,
this
.
AuditType
)
}
}
})
})
})
})
...
@@ -256,11 +259,11 @@
...
@@ -256,11 +259,11 @@
//获取留学分页列表
//获取留学分页列表
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
msg
.
AuditType
=
1
;
queryStudyAbroadPage
(
this
.
msg
).
then
(
res
=>
{
queryStudyAbroadPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
console
.
log
(
res
,
'数据'
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
...
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