Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
ea79228f
Commit
ea79228f
authored
Feb 14, 2020
by
吴学德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一人一码前端UI
parent
e999e305
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
116 additions
and
2 deletions
+116
-2
config/local.env.js
+2
-2
src/api/school-center/schoolManagermentAPI.js
+10
-0
src/views/school-center/management/schoolmanagement.vue
+104
-0
No files found.
config/local.env.js
View file @
ea79228f
...
...
@@ -12,14 +12,14 @@ const local = {
'^/api/auth/ciop'
:
'/auth/ciop'
}
},
'/api/
jyyy
'
:
{
'/api/
schoolcenter
'
:
{
target
:
'http://localhost:11091'
,
//target: 'http://132.97.54.60:58334',
ws
:
false
,
changeOrigin
:
true
,
pathRewrite
:
{
//默认所有请求都加了api前缀,需要去掉
'^/api/
jyyy
'
:
'/'
'^/api/
schoolcenter
'
:
'/'
}
},
'/api/report'
:
{
...
...
src/api/school-center/schoolManagermentAPI.js
0 → 100644
View file @
ea79228f
import
{
postAction
,
getAotion
}
from
'@/api/manage'
const
prefix
=
'/schoolcenter/ciop'
;
// 获取活动列表
let
findByList
=
(
params
)
=>
postAction
(
prefix
+
"/school/schoolManagement/findByList"
,
params
);
export
{
findByList
}
\ No newline at end of file
src/views/school-center/management/schoolmanagement.vue
0 → 100644
View file @
ea79228f
<
template
>
<div
class=
"flex-container"
>
<!-- 查询区域 -->
<div
class=
"table-page-search-wrapper"
>
<!-- 搜索区域 -->
<a-form
layout=
"inline"
>
<a-row
:gutter=
"24"
>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
label=
"县分:"
>
<a-input
placeholder=
"县分"
></a-input>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
label=
"学校名称"
>
<a-input
placeholder=
"学校名称"
></a-input>
</a-form-item>
</a-col>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
</a-col>
</span>
</a-row>
</a-form>
</div>
<!--列表-->
<s-table
:columns=
"columns"
:data=
"rowdata"
bordered
ref=
"table"
size=
"small"
class=
"flex-filling"
>
<!--拦截器-->
<template
slot=
"failureDefault"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
<!--拦截器-->
<
template
slot=
"createDefault"
slot-scope=
"text"
>
{{
text
|
dayjs
}}
</
template
>
</s-table>
</div>
</template>
<
script
>
import
STable
from
'@/components/table'
;
import
{
findByList
}
from
"@/api/school-center/schoolManagermentAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
export
default
{
name
:
"schoolmanagement"
,
components
:
{
STable
,
},
data
(){
return
{
columns
:
[
{
dataIndex
:
'phoneNumber'
,
width
:
200
,
title
:
'县分'
},
{
dataIndex
:
'remark'
,
width
:
200
,
title
:
'学校名称 '
},
{
dataIndex
:
'createTime'
,
width
:
200
,
title
:
'是否显示老客户升级页面 '
,
scopedSlots
:
{
customRender
:
'createDefault'
}},
{
dataIndex
:
'operation'
,
width
:
100
,
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'operation'
},
fixed
:
"right"
}]
,
rowdata
:
parameter
=>
{
let
params
=
{
pageNo
:
parameter
.
pageNo
,
pageSize
:
parameter
.
pageSize
}
//表示
return
findByList
(
Object
.
assign
(
params
)).
then
(
res
=>
{
let
data
=
{}
if
(
res
.
state
!==
'success'
)
{
data
=
{
data
:
[],
pageSize
:
parameter
.
pageSize
,
pageNo
:
1
,
totalCount
:
0
}
}
else
{
data
=
{
data
:
res
.
data
.
records
,
pageSize
:
parameter
.
pageSize
,
pageNo
:
parameter
.
pageNo
,
totalCount
:
res
.
data
.
total
}
}
return
data
})
}
}
},
methods
:{
search
()
{
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
}
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
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