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
c0a4946e
Commit
c0a4946e
authored
Mar 18, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
167e031f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
52 deletions
+66
-52
index.js
src/api/studyabroad/index.js
+2
-0
supplier.vue
src/pages/studyAbroad/supplier.vue
+64
-52
No files found.
src/api/studyabroad/index.js
View file @
c0a4946e
import
request
from
'../../utils/request'
/**
* 获取供应商分页列表
*/
...
...
src/pages/studyAbroad/supplier.vue
View file @
c0a4946e
<
template
>
<div
class=
"page-body"
>
<
!--
<
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-3"
>
<q-input
ref=
"filter"
filled
v-model=
"
keyWords"
label=
"系列
名称"
>
<q-input
ref=
"filter"
filled
v-model=
"
msg.Name"
label=
"供应商
名称"
>
<template
v-slot:append
>
<q-icon
v-if=
"
keyWords
!== ''"
name=
"clear"
class=
"cursor-pointer"
@
click=
"resetFilter"
/>
<q-icon
v-if=
"
msg.Name
!== ''"
name=
"clear"
class=
"cursor-pointer"
@
click=
"resetFilter"
/>
</
template
>
</q-input>
</div>
</div>
</div>
-->
</div>
<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=
"data"
:columns=
"columns"
row-key=
"name"
>
<
template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
供应商信息
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增供应商"
@
click=
"Edit
Category
(null)"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增供应商"
@
click=
"Edit
Supplier
(null)"
/>
</div>
</
template
>
<
!-- <
template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.
PageIndex" color="primary" :max="msg.
PageCount"
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.
pageIndex"
color=
"primary"
:max=
"
PageCount"
:input=
"true"
@
input=
"changePage"
/>
</template>
-->
</
template
>
</q-table>
<supplier-form
v-if=
"isShow
Category"
:save-obj=
"categoryObj"
@
close=
"closeCagegory
Form"
@
success=
"refreshPage"
>
<supplier-form
v-if=
"isShow
Supplier"
:save-obj=
"supplierObj"
@
close=
"closeSupplier
Form"
@
success=
"refreshPage"
>
</supplier-form>
</div>
</div>
...
...
@@ -34,43 +34,60 @@
<
script
>
import
{
query
CourseCategory
Page
}
from
'../../api/
course
/index'
query
Supplier
Page
}
from
'../../api/
studyabroad
/index'
import
supplierForm
from
'../../components/studyAbroad/supplier-form'
export
default
{
meta
:
{
title
:
"供应商"
title
:
"供应商
管理
"
},
components
:
{
supplierForm
,
},
data
()
{
return
{
msg
:{
Id
:
0
,
Type
:
1
,
//供应商类型
Name
:
''
//供应商名称
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
rowsPerPage
:
10
,
Name
:
''
//供应商名称
},
PageCount
:
0
,
//总页数
data
:
[],
keyWords
:
''
,
isShowCategory
:
false
,
isShow
:
false
,
categoryObj
:
{},
loading
:
true
,
columns
:
[
{
name
:
'Type'
,
label
:
'供应商类型'
,
field
:
'Type'
,
align
:
'left'
},
{
isShowSupplier
:
false
,
//是否显示供应商弹窗
supplierObj
:
{},
//供应商对象
loading
:
true
,
columns
:
[{
name
:
'Name'
,
label
:
'供应商名称'
,
align
:
'left'
,
field
:
'Name'
},
{
name
:
'LinkMan'
,
label
:
'联系人'
,
align
:
'left'
,
field
:
'LinkMan'
},
{
name
:
'LinkTel'
,
label
:
'联系电话'
,
align
:
'left'
,
field
:
'LinkTel'
},
{
name
:
'LinkAddress'
,
label
:
'地址'
,
align
:
'left'
,
field
:
'LinkAddress'
},
{
name
:
'Remark'
,
label
:
'备注'
,
align
:
'left'
,
field
:
'Remark'
},
{
name
:
'CateId'
,
label
:
'操作'
,
...
...
@@ -79,45 +96,40 @@
],
}
},
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
this
.
get
coursecategorytre
e
()
this
.
get
supplierpag
e
()
},
methods
:
{
changePage
(
val
)
{
this
.
msg
.
P
ageIndex
=
val
;
this
.
get
coursecategorytre
e
()
this
.
msg
.
p
ageIndex
=
val
;
this
.
get
supplierpag
e
()
},
//刷新页面
refreshPage
()
{
this
.
get
coursecategorytre
e
();
this
.
get
supplierpag
e
();
},
//获取课程分类树形结构
getcoursecategorytree
()
{
this
.
isShow
=
false
;
queryCourseCategoryPage
({
PageSize
:
this
.
msg
.
PageSize
,
PageIndex
:
this
.
msg
.
PageIndex
}).
then
(
res
=>
{
this
.
isShow
=
true
;
this
.
loading
=
false
;
//获取供应商分页列表
getsupplierpage
()
{
this
.
loading
=
true
;
querySupplierPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
data
=
res
.
Data
.
PageData
;
this
.
msg
.
PageCount
=
res
.
Data
.
PageCount
this
.
PageCount
=
res
.
Data
.
PageCount
})
},
//新增修改
角色
Edit
Category
(
obj
)
{
//新增修改
供应商
Edit
Supplier
(
obj
)
{
if
(
obj
)
{
this
.
category
Obj
=
obj
this
.
supplier
Obj
=
obj
}
else
{
this
.
category
Obj
=
null
this
.
supplier
Obj
=
null
}
this
.
isShow
Category
=
true
;
this
.
isShow
Supplier
=
true
;
},
//关闭弹窗
close
Cagegory
Form
()
{
this
.
isShow
Category
=
false
close
Supplier
Form
()
{
this
.
isShow
Supplier
=
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