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
60f85845
Commit
60f85845
authored
Mar 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a7cf751b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
357 additions
and
410 deletions
+357
-410
courseList.vue
src/pages/sale/courseList.vue
+280
-327
employment.vue
src/pages/studyAbroad/employment.vue
+77
-83
No files found.
src/pages/sale/courseList.vue
View file @
60f85845
<
style
>
<
style
>
li
{
li
{
list-style-type
:
none
;
list-style-type
:
none
;
}
}
.courseList
ul
{
.courseList
ul
{
padding
:
0px
;
padding
:
0px
;
}
}
.courseList
li
{
.courseList
li
{
background
:
rgba
(
221
,
222
,
224
,
0.2
);
background
:
rgba
(
221
,
222
,
224
,
0.2
);
border-radius
:
4px
;
border-radius
:
4px
;
margin-top
:
15px
;
margin-top
:
15px
;
}
}
.courseList
li
.dline
{
.courseList
li
.dline
{
display
:
table
;
display
:
table
;
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
}
}
.courseList
li
.d1
,
.courseList
li
.d1
,
.courseList
li
.d2
,
.courseList
li
.d2
,
.courseList
li
.d3
,
.courseList
li
.d3
,
.courseList
li
.d4
,
.courseList
li
.d4
,
.courseList
li
.d5
{
.courseList
li
.d5
{
width
:
18%
;
width
:
18%
;
padding
:
20px
20px
10px
;
padding
:
20px
20px
10px
;
}
}
.courseList
li
.d7
{
.courseList
li
.d7
{
flex
:
1
;
flex
:
1
;
width
:
1px
;
width
:
1px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.courseList
li
.d1
.di-title
{
.courseList
li
.d1
.di-title
{
font-size
:
16px
;
font-size
:
16px
;
color
:
#111111
;
color
:
#111111
;
}
}
.courseList
li
.d1
.di-c
{
.courseList
li
.d1
.di-c
{
font-size
:
14px
;
font-size
:
14px
;
display
:
flex
;
display
:
flex
;
line-height
:
28px
;
line-height
:
28px
;
color
:
#111111
;
color
:
#111111
;
}
}
.courseList
li
.d6
{
.courseList
li
.d6
{
padding
:
10px
20px
;
padding
:
10px
20px
;
width
:
100%
;
width
:
100%
;
height
:
inherit
;
height
:
inherit
;
position
:
relative
;
position
:
relative
;
border-top
:
1px
solid
#dddee0
;
border-top
:
1px
solid
#dddee0
;
}
}
.courseList
li
.d6
.progress
{
.courseList
li
.d6
.progress
{
width
:
100%
;
width
:
100%
;
height
:
5px
;
height
:
5px
;
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
}
}
.courseList
li
.d2
div
{
.courseList
li
.d2
div
{
margin
:
2px
0
;
margin
:
2px
0
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#111111
;
color
:
#111111
;
}
}
.courseList
li
.d2-n
{
.courseList
li
.d2-n
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#999999
;
color
:
#999999
;
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.courseList
li
.d3
.d3-s
{
.courseList
li
.d3
.d3-s
{
color
:
var
(
--q-color-negative
);
color
:
var
(
--q-color-negative
);
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.courseList
li
.d3
div
{
.courseList
li
.d3
div
{
margin
:
2px
0
;
margin
:
2px
0
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.courseList
li
.d4
div
{
.courseList
li
.d4
div
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#111111
;
color
:
#111111
;
margin
:
2px
0
;
margin
:
2px
0
;
}
}
.courseList
li
.d5
div
{
.courseList
li
.d5
div
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#111111
;
color
:
#111111
;
margin
:
2px
0
;
margin
:
2px
0
;
}
}
.courseList
.myCourseNName
{
.courseList
.myCourseNName
{
width
:
25px
;
width
:
25px
;
height
:
25px
;
height
:
25px
;
border-radius
:
50%
;
border-radius
:
50%
;
...
@@ -108,77 +108,42 @@ li {
...
@@ -108,77 +108,42 @@ li {
text-align
:
center
;
text-align
:
center
;
line-height
:
25px
;
line-height
:
25px
;
background-color
:
#004d40
;
background-color
:
#004d40
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body courseList"
>
<div
class=
"page-body courseList"
>
<div
class=
"page-search row items-center"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-input
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.CourseName"
label=
"课程名称"
@
input=
"resetSearch"
@
clear=
"resetSearch"
maxlength=
"20"
/>
clearable
standout=
"bg-primary text-white"
v-model=
"msg.CourseName"
label=
"课程名称"
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
:pagination=
"msg"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
课程报价表
</div>
<div
class=
"col-2 q-table__title"
>
课程报价表
</div>
<q-space
/>
<q-space
/>
<div
class=
"page-option"
>
<div
class=
"page-option"
>
<q-btn
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"创建报价单"
@
click=
"createQuotation"
/>
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"创建报价单"
@
click=
"createQuotation"
/>
</div>
</div>
</
template
>
</
template
>
<
template
v-slot:body=
"props"
>
<
template
v-slot:body=
"props"
>
<q-tr
:props=
"props"
>
<q-tr
:props=
"props"
>
<q-td
auto-width
>
<q-td
auto-width
>
<q-btn
<q-btn
size=
"sm"
color=
"accent"
round
dense
@
click=
"props.row.expand = !props.row.expand"
size=
"sm"
:icon=
"props.row.expand ? 'remove' : 'add'"
/>
color=
"accent"
round
dense
@
click=
"props.row.expand = !props.row.expand"
:icon=
"props.row.expand ? 'remove' : 'add'"
/>
</q-td>
</q-td>
<template
v-for=
"col in props.cols"
>
<template
v-for=
"col in props.cols"
>
<q-td
v-if=
"col.name == 'CoverImg'"
>
<q-td
v-if=
"col.name == 'CoverImg'"
>
<q-img
<q-img
:src=
"col.value"
spinner-color=
"white"
style=
"height: 54px; max-width: 100px"
:src=
"col.value"
class=
"rounded-borders"
>
spinner-color=
"white"
style=
"height: 54px; max-width: 100px"
class=
"rounded-borders"
>
</q-img>
</q-img>
</q-td>
</q-td>
<q-td
<q-td
v-else-if=
"col.name == 'PreferentialList'"
style=
"padding-right:0px"
>
v-else-if=
"col.name == 'PreferentialList'"
style=
"padding-right:0px"
>
<div
v-for=
"x in col.value"
>
<div
v-for=
"x in col.value"
>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 1"
>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 1"
>
买
{{
x
.
BuyNum
}}
送
{{
x
.
SendNum
}}
买
{{
x
.
BuyNum
}}
送
{{
x
.
SendNum
}}
...
@@ -200,12 +165,11 @@ li {
...
@@ -200,12 +165,11 @@ li {
<div
class=
"remark-font"
>
暂无优惠政策
</div>
<div
class=
"remark-font"
>
暂无优惠政策
</div>
</div>
</div>
</q-td>
</q-td>
<q-td
<q-td
v-else-if=
"col.name == 'PreferentialListSellCommission'"
style=
"padding-right:0px;padding-left:0px"
>
v-else-if=
"col.name == 'PreferentialListSellCommission'"
style=
"padding-right:0px;padding-left:0px"
>
<div
v-for=
"x in col.value"
>
<div
v-for=
"x in col.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
:class=
"
{'text-red':x.SaleCommissionType==1}" v-if="x.PriceDiscountType!=0">
{{
x
.
SaleCommissionType
==
1
?
'¥'
:
''
}}{{
x
.
SaleCommissionMoney
}}{{
x
.
SaleCommissionType
==
0
?
'%'
:
''
}}
</div>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
:class=
"
{'text-red':x.SaleCommissionType==1}" v-if="x.PriceDiscountType!=0">
{{
x
.
SaleCommissionType
==
1
?
'¥'
:
''
}}{{
x
.
SaleCommissionMoney
}}{{
x
.
SaleCommissionType
==
0
?
'%'
:
''
}}
</div>
<div
v-if=
"x.PriceDiscountType == 0"
>
<div
v-if=
"x.PriceDiscountType == 0"
>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
</div>
</div>
...
@@ -214,12 +178,11 @@ li {
...
@@ -214,12 +178,11 @@ li {
<div
class=
"remark-font"
>
暂无佣金信息
</div>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
</div>
</div>
</q-td>
</q-td>
<q-td
<q-td
v-else-if=
"col.name == 'PreferentialListB2BCommission'"
style=
"padding-left:0px"
>
v-else-if=
"col.name == 'PreferentialListB2BCommission'"
style=
"padding-left:0px"
>
<div
v-for=
"x in col.value"
>
<div
v-for=
"x in col.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px"
:class=
"
{'text-red':x.B2BCommissionType==1}" v-if="x.PriceDiscountType!=0">
{{
x
.
B2BCommissionType
==
1
?
'¥'
:
''
}}{{
x
.
B2BCommissionMoney
}}{{
x
.
B2BCommissionType
==
0
?
'%'
:
''
}}
</div>
<div
class=
"border-bottom"
style=
"padding-left: 16px"
:class=
"
{'text-red':x.B2BCommissionType==1}"
v-if="x.PriceDiscountType!=0">
{{
x
.
B2BCommissionType
==
1
?
'¥'
:
''
}}{{
x
.
B2BCommissionMoney
}}{{
x
.
B2BCommissionType
==
0
?
'%'
:
''
}}
</div>
<div
v-if=
"x.PriceDiscountType == 0"
>
<div
v-if=
"x.PriceDiscountType == 0"
>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
...
@@ -243,11 +206,7 @@ li {
...
@@ -243,11 +206,7 @@ li {
<q-td
v-else-if=
"col.name=='CourseIntro'"
>
<q-td
v-else-if=
"col.name=='CourseIntro'"
>
<q-btn
flat
color=
"primary"
label=
"查看详情"
@
click=
"showContentDialog(col.value)"
/>
<q-btn
flat
color=
"primary"
label=
"查看详情"
@
click=
"showContentDialog(col.value)"
/>
</q-td>
</q-td>
<q-td
<q-td
v-else-if=
"col.name != 'CourseFeature'"
:key=
"col.name"
:props=
"props"
>
v-else-if=
"col.name != 'CourseFeature'"
:key=
"col.name"
:props=
"props"
>
{{
col
.
value
}}
{{
col
.
value
}}
</q-td>
</q-td>
</
template
>
</
template
>
...
@@ -258,23 +217,14 @@ li {
...
@@ -258,23 +217,14 @@ li {
<q-badge
color=
"negative"
class=
"q-mr-md"
>
<q-badge
color=
"negative"
class=
"q-mr-md"
>
课程特色
课程特色
</q-badge>
</q-badge>
<div
<div
v-html=
"props.row.CourseFeature"
class=
"text-left col text-negative"
></div>
v-html=
"props.row.CourseFeature"
class=
"text-left col text-negative"
></div>
</div>
</div>
</q-td>
</q-td>
</q-tr>
</q-tr>
</template>
</template>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
class=
"full-width justify-end"
:input=
"true"
@
input=
"changePage"
/>
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
</q-table>
</q-table>
</div>
</div>
...
@@ -294,9 +244,11 @@ li {
...
@@ -294,9 +244,11 @@ li {
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
queryCoursePage
}
from
"../../api/course/index"
;
import
{
import
quotationForm
from
'../../components/sale/quotation-form'
queryCoursePage
export
default
{
}
from
"../../api/course/index"
;
import
quotationForm
from
'../../components/sale/quotation-form'
export
default
{
meta
:
{
meta
:
{
title
:
"课程预览"
title
:
"课程预览"
},
},
...
@@ -308,11 +260,10 @@ export default {
...
@@ -308,11 +260,10 @@ export default {
currentUrl
:
""
,
currentUrl
:
""
,
data
:
[],
data
:
[],
loading
:
true
,
loading
:
true
,
carousel
:
false
,
carousel
:
false
,
showContent
:
''
,
showContent
:
''
,
showForm
:
false
,
showForm
:
false
,
columns
:
[
columns
:
[{
{
name
:
"CourseFeature"
,
name
:
"CourseFeature"
,
label
:
"课程特色"
,
label
:
"课程特色"
,
field
:
"CourseFeature"
,
field
:
"CourseFeature"
,
...
@@ -417,12 +368,12 @@ export default {
...
@@ -417,12 +368,12 @@ export default {
this
.
getcourselist
();
this
.
getcourselist
();
},
},
methods
:
{
methods
:
{
createQuotation
()
{
createQuotation
()
{
this
.
showForm
=
true
;
this
.
showForm
=
true
;
},
},
showContentDialog
(
content
)
{
showContentDialog
(
content
)
{
this
.
showContent
=
content
;
this
.
showContent
=
content
;
this
.
carousel
=
true
this
.
carousel
=
true
},
},
//重新查询
//重新查询
resetSearch
()
{
resetSearch
()
{
...
@@ -455,8 +406,10 @@ export default {
...
@@ -455,8 +406,10 @@ export default {
});
});
}
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
src/pages/studyAbroad/employment.vue
View file @
60f85845
...
@@ -25,9 +25,14 @@
...
@@ -25,9 +25,14 @@
</div>
</div>
</
template
>
</
template
>
<
template
v-slot:body=
"props"
>
<
template
v-slot:body=
"props"
>
<q-tr>
<q-tr
:props=
"props"
>
<q-td>
<div>
{{
props
.
row
.
SupplierName
}}
</div>
<template
v-for=
"col in props.cols"
>
<q-td
v-if=
"col.name == 'Name'"
>
{{
col
.
value
}}
</q-td>
<q-td
v-else-if=
"col.name == 'SupplierName'"
>
<div>
{{
col
.
value
}}
</div>
<div>
<div>
<a
:href=
"props.row.SupplierContract"
style=
"color:#2961FE;text-decoration:none;"
<a
:href=
"props.row.SupplierContract"
style=
"color:#2961FE;text-decoration:none;"
v-if=
"props.row.SupplierContract"
target=
"_blank"
>
v-if=
"props.row.SupplierContract"
target=
"_blank"
>
...
@@ -35,9 +40,8 @@
...
@@ -35,9 +40,8 @@
</a>
</a>
</div>
</div>
</q-td>
</q-td>
<template
v-slot:body-cell-PreferentialList=
"props"
>
<q-td
v-if=
"col.name == 'PreferentialList'"
style=
"padding-right:0px"
>
<q-td
:props=
"props"
style=
"padding-right:0px"
>
<div
v-for=
"x in col.value"
>
<div
v-for=
"x in props.value"
>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 1"
>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType == 1"
>
买
{{
x
.
BuyNum
}}
送
{{
x
.
SendNum
}}
买
{{
x
.
BuyNum
}}
送
{{
x
.
SendNum
}}
</div>
</div>
...
@@ -58,9 +62,8 @@
...
@@ -58,9 +62,8 @@
<div
class=
"remark-font"
>
暂无优惠政策
</div>
<div
class=
"remark-font"
>
暂无优惠政策
</div>
</div>
</div>
</q-td>
</q-td>
</
template
>
<
template
v-slot:body-cell-PreferentialListSellCommission=
"props"
>
<q-td
v-else-if=
"col.name == 'PreferentialListSellCommission'"
style=
"padding-right:0px;padding-left:0px"
>
<q-td
:props=
"props"
style=
"padding-right:0px;padding-left:0px"
>
<div
v-for=
"x in props.value"
>
<div
v-for=
"x in props.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
:class=
"
{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
:class=
"
{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
...
@@ -76,12 +79,11 @@
...
@@ -76,12 +79,11 @@
<div
class=
"remark-font"
>
暂无佣金信息
</div>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
</div>
</div>
</q-td>
</q-td>
</
template
>
<
template
v-slot:body-cell-PreferentialListB2BCommission=
"props"
>
<q-td
v-else-if=
"col.name == 'PreferentialListB2BCommission'"
style=
"padding-left:0px"
>
<q-td
:props=
"props"
style=
"padding-left:0px"
>
<div
v-for=
"x in props.value"
>
<div
v-for=
"x in props.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px"
:class=
"
{ 'text-red': x.B2BCommissionType == 1 }
"
<div
class=
"border-bottom"
style=
"padding-left: 16px
"
v-if="x.PriceDiscountType != 0">
:class=
"
{ 'text-red': x.B2BCommissionType == 1 }"
v-if="x.PriceDiscountType != 0">
{{
x
.
B2BCommissionType
==
1
?
"¥"
:
""
{{
x
.
B2BCommissionType
==
1
?
"¥"
:
""
}}{{
x
.
B2BCommissionMoney
}}{{
x
.
B2BCommissionMoney
}}{{
x
.
B2BCommissionType
==
0
?
"%"
:
""
}}
}}{{
x
.
B2BCommissionType
==
0
?
"%"
:
""
}}
...
@@ -94,9 +96,7 @@
...
@@ -94,9 +96,7 @@
<div
class=
"remark-font"
>
暂无佣金信息
</div>
<div
class=
"remark-font"
>
暂无佣金信息
</div>
</div>
</div>
</q-td>
</q-td>
</
template
>
<q-td
v-else-if=
"col.name == 'Id'"
>
<
template
v-slot:body-cell-Id=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditStudy(props.row)"
/>
@
click=
"EditStudy(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"价格设置"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"价格设置"
...
@@ -116,7 +116,6 @@
...
@@ -116,7 +116,6 @@
</div>
</div>
</q-td>
</q-td>
</q-tr>
</q-tr>
</template>
</template>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"PageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"PageCount"
...
@@ -210,12 +209,7 @@
...
@@ -210,12 +209,7 @@
align
:
"left"
,
align
:
"left"
,
field
:
row
=>
row
.
PreferentialList
field
:
row
=>
row
.
PreferentialList
},
},
{
name
:
'Remark'
,
label
:
'备注'
,
field
:
'Remark'
,
align
:
'left'
},
{
{
name
:
'SaleStateName'
,
name
:
'SaleStateName'
,
label
:
'销售状态'
,
label
:
'销售状态'
,
...
...
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