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
059571e8
Commit
059571e8
authored
Mar 18, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
796af1d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
23 deletions
+38
-23
studyabroad.vue
src/pages/studyAbroad/studyabroad.vue
+38
-22
supplier.vue
src/pages/studyAbroad/supplier.vue
+0
-1
No files found.
src/pages/studyAbroad/studyabroad.vue
View file @
059571e8
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
label=
"项目名称"
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
<q-table
:
pagination=
"msg"
:
loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
separator=
"none"
:data=
"dataList"
: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>
...
@@ -11,7 +19,7 @@
...
@@ -11,7 +19,7 @@
</div>
</div>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.
P
ageIndex"
color=
"primary"
:max=
"PageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.
p
ageIndex"
color=
"primary"
:max=
"PageCount"
:input=
"true"
@
input=
"changePage"
/>
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
</q-table>
</q-table>
...
@@ -29,22 +37,23 @@
...
@@ -29,22 +37,23 @@
export
default
{
export
default
{
meta
:
{
meta
:
{
title
:
"留学"
title
:
"留学
产品
"
},
},
components
:
{
components
:
{
studyAbroadForm
,
studyAbroadForm
,
},
},
data
()
{
data
()
{
return
{
return
{
msg
:{
msg
:
{
Type
:
1
,
//1留学 2就业
Type
:
1
,
//1留学 2就业
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
12
pageSize
:
10
,
rowsPerPage
:
10
,
Name
:
""
,
},
},
dataList
:
[],
dataList
:
[],
loading
:
true
,
loading
:
true
,
columns
:
[
columns
:
[{
{
name
:
'Name'
,
name
:
'Name'
,
label
:
'项目名称'
,
label
:
'项目名称'
,
field
:
'Name'
,
field
:
'Name'
,
...
@@ -122,19 +131,19 @@
...
@@ -122,19 +131,19 @@
field
:
'OfferCommissionType'
,
field
:
'OfferCommissionType'
,
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'OfferCommission'
,
name
:
'OfferCommission'
,
label
:
'校企返佣金额'
,
label
:
'校企返佣金额'
,
field
:
'OfferCommission'
,
field
:
'OfferCommission'
,
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'Remark'
,
name
:
'Remark'
,
label
:
'备注'
,
label
:
'备注'
,
field
:
'Remark'
,
field
:
'Remark'
,
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'SaleState'
,
name
:
'SaleState'
,
label
:
'销售状态'
,
label
:
'销售状态'
,
field
:
'SaleState'
,
field
:
'SaleState'
,
...
@@ -146,48 +155,55 @@
...
@@ -146,48 +155,55 @@
field
:
'CateId'
field
:
'CateId'
}
}
],
],
PageCount
:
0
,
PageCount
:
0
,
isShowStudy
:
false
,
isShowStudy
:
false
,
//是否显示留学弹窗
studyObj
:
{}
studyObj
:
{},
//留学对象
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getList
();
this
.
getList
();
},
},
created
()
{
created
()
{
},
},
methods
:
{
methods
:
{
//重新查询
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getsupplierpage
();
},
//获取留学分页列表
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
queryStudyAbroadPage
(
this
.
msg
).
then
(
res
=>
{
queryStudyAbroadPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
console
.
log
(
res
,
'数据来了'
);
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
p
ageCount
=
res
.
Data
.
PageCount
;
this
.
P
ageCount
=
res
.
Data
.
PageCount
;
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
changePage
(
val
){
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
this
.
getList
();
},
},
//关闭弹窗
//关闭弹窗
closeStudyForm
()
{
closeStudyForm
()
{
this
.
isShowStudy
=
false
this
.
isShowStudy
=
false
},
},
refreshPage
(){
//刷新页面
refreshPage
()
{
this
.
getList
();
this
.
getList
();
},
},
//编辑留学
//编辑留学
EditStudy
(
obj
){
EditStudy
(
obj
)
{
if
(
obj
)
{
if
(
obj
)
{
this
.
studyObj
=
obj
;
this
.
studyObj
=
obj
;
}
else
{
}
else
{
this
.
studyObj
=
null
;
this
.
studyObj
=
null
;
}
}
this
.
isShowStudy
=
true
;
this
.
isShowStudy
=
true
;
}
}
}
}
}
}
...
...
src/pages/studyAbroad/supplier.vue
View file @
059571e8
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
<q-td
:props=
"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=
"EditSupplier(props.row)"
/>
@
click=
"EditSupplier(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400;"
label=
"删除"
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400;"
label=
"删除"
@
click=
"removeSupplier(props.row)"
/>
@
click=
"removeSupplier(props.row)"
/>
</q-td>
</q-td>
...
...
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