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
8838d5e6
Commit
8838d5e6
authored
Jun 01, 2020
by
董有沛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
漏洞修改
parent
0897f175
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
139 additions
and
21 deletions
+139
-21
src/api/school-center/PartnerManagementAPI.js
+8
-2
src/views/school-center/bill/billRecord.vue
+1
-2
src/views/school-center/userManager/PartnerManagement.vue
+125
-13
src/views/school-center/userManager/schoolAllocation.vue
+5
-4
No files found.
src/api/school-center/PartnerManagementAPI.js
View file @
8838d5e6
import
{
postAction
,
getAotion
}
from
'@/api/manage'
import
{
postAction
,
downFilePost
}
from
'@/api/manage'
const
prefix
=
'/manager/ciop'
;
const
prefix
=
'/manager/ciop'
;
// 获取活动列表
// 获取活动列表
...
@@ -23,6 +23,12 @@ let getSchoolList = (params) => postAction(prefix + "/school/schoolManagement/sc
...
@@ -23,6 +23,12 @@ let getSchoolList = (params) => postAction(prefix + "/school/schoolManagement/sc
// 获取学子公司职位下级成员列表
// 获取学子公司职位下级成员列表
let
getXzUserList
=
(
params
)
=>
postAction
(
prefix
+
"/school/partner/getXzUserList"
,
params
);
let
getXzUserList
=
(
params
)
=>
postAction
(
prefix
+
"/school/partner/getXzUserList"
,
params
);
// 获取角色清单
let
getRoleList
=
(
params
)
=>
postAction
(
prefix
+
"/school/partner/roleList"
,
params
);
// 导出用户清单
let
exportUserList
=
(
params
)
=>
downFilePost
(
prefix
+
"/school/partner/exportUserList"
,
params
);
export
{
export
{
findByList
,
modify
,
getlistysm
,
addPartner
,
getSubstList
,
getSchoolList
,
getXzUserList
findByList
,
modify
,
getlistysm
,
addPartner
,
getSubstList
,
getSchoolList
,
getXzUserList
,
getRoleList
,
exportUserList
}
}
src/views/school-center/bill/billRecord.vue
View file @
8838d5e6
...
@@ -25,8 +25,7 @@
...
@@ -25,8 +25,7 @@
<a-col
:md=
"6"
:sm=
"12"
>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="学校名称">
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="学校名称">
<a-select
showSearch
placeholder=
"请选择"
v-model=
"queryParam.schoolName"
:value=
"schoolSelect"
:filterOption=
"filterOption"
<a-select
showSearch
placeholder=
"请选择"
v-model=
"queryParam.schoolName"
>
:allowClear=
"allowStatus"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"data in schoolList"
:key=
"data.school_name"
:value=
"data.school_name"
>
<a-select-option
v-for=
"data in schoolList"
:key=
"data.school_name"
:value=
"data.school_name"
>
</a-select-option>
</a-select-option>
...
...
src/views/school-center/userManager/PartnerManagement.vue
View file @
8838d5e6
...
@@ -11,19 +11,79 @@
...
@@ -11,19 +11,79 @@
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"4"
:sm=
"12"
>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"
县分
"
>
<a-form-item
label=
"
账号
"
>
<a-input
placeholder=
"
县分"
v-model=
"queryParam.substName
"
></a-input>
<a-input
placeholder=
"
账号"
v-model=
"queryParam.account
"
></a-input>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:md=
"4"
:sm=
"12"
>
<a-form-item
label=
"学校"
>
<a-col
:md=
"5"
:sm=
"16"
>
<a-input
placeholder=
"学校"
v-model=
"queryParam.school"
></a-input>
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="县分">
<a-select
placeholder=
"请选择"
@
change=
"changeSubst(3)"
v-model=
"queryParam.substName"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"data in substList"
:value=
"data"
>
{{
data
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="学校名称">
<a-select
showSearch
placeholder=
"请选择"
v-model=
"queryParam.school"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"data in schoolListParam"
:value=
"data.id"
>
{{
data
.
school_name
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"5"
:sm=
"16"
>
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="角色">
<a-select
placeholder=
"请选择"
@
change=
"changeSubst"
v-model=
"queryParam.roleid"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
v-for=
"data in roleList"
:value=
"data.id"
>
{{
data
.
name
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="活跃状态">
<a-select
showSearch
placeholder=
"请选择"
v-model=
"queryParam.isActive"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
key=
"1"
>
活跃
</a-select-option>
<a-select-option
key=
"0"
>
不活跃
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="状态">
<a-select
showSearch
placeholder=
"请选择"
v-model=
"queryParam.status"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
key=
"1"
>
启用
</a-select-option>
<a-select-option
key=
"2"
>
冻结
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
:md=
"6"
:sm=
"12"
>
<a-form-item
:labelCol=
"
{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="身份上传状态">
<a-select
showSearch
placeholder=
"请选择"
v-model=
"queryParam.isUpload"
>
<a-select-option
key=
""
>
请选择
</a-select-option>
<a-select-option
key=
"1"
>
已上传
</a-select-option>
<a-select-option
key=
"0"
>
未上传
</a-select-option>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-button
@
click=
"openAddUser()"
style=
"margin-left: 8px"
icon=
"plus"
type=
"primary"
>
新增
</a-button>
<a-button
@
click=
"openAddUser()"
style=
"margin-left: 8px"
icon=
"plus"
type=
"primary"
>
新增
</a-button>
<a-button
@
click=
"exportList()"
style=
"margin-left: 8px"
icon=
"export"
type=
"primary"
>
导出
</a-button>
</a-col>
</a-col>
</span>
</span>
</a-row>
</a-row>
...
@@ -35,6 +95,16 @@
...
@@ -35,6 +95,16 @@
<span
v-if=
"text==1"
>
男
</span>
<span
v-if=
"text==1"
>
男
</span>
<span
v-else
>
女
</span>
<span
v-else
>
女
</span>
</
template
>
</
template
>
<
template
slot=
"statusRender"
slot-scope=
"text"
>
<span
v-if=
"text==1"
>
启用
</span>
<span
v-if=
"text==2"
>
冻结
</span>
<span
v-else
></span>
</
template
>
<
template
slot=
"activeRender"
slot-scope=
"text"
>
<span
v-if=
"text==1"
>
活跃
</span>
<span
v-if=
"text==2"
>
不活跃
</span>
<span
v-else
></span>
</
template
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<
template
slot=
"operation"
slot-scope=
"text,record"
>
<a
@
click=
"modifyfunction(record)"
>
编辑
</a>
<a
@
click=
"modifyfunction(record)"
>
编辑
</a>
</
template
>
</
template
>
...
@@ -180,7 +250,7 @@
...
@@ -180,7 +250,7 @@
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"学子公司职位"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"学子公司职位"
>
<a-select
placeholder=
"请选择"
v-model=
"modifyForm.position"
@
change=
"changePosition(2)"
>
<a-select
placeholder=
"请选择"
v-model=
"modifyForm.position"
@
change=
"changePosition(2)"
>
<a-select-option
key=
""
>
非学子公司成员
</a-select-option>
<a-select-option
key=
""
>
非学子公司成员
</a-select-option>
<a-select-option
key=
"
督导"
>
督导
</a-select-option>
<a-select-option
key=
"
总经理"
>
总经理
</a-select-option>
<a-select-option
key=
"楼长"
>
楼长
</a-select-option>
<a-select-option
key=
"楼长"
>
楼长
</a-select-option>
<a-select-option
key=
"成员"
>
成员
</a-select-option>
<a-select-option
key=
"成员"
>
成员
</a-select-option>
</a-select>
</a-select>
...
@@ -213,10 +283,11 @@
...
@@ -213,10 +283,11 @@
<
script
>
<
script
>
import
STable
from
'@/components/table'
;
import
STable
from
'@/components/table'
;
import
{
import
{
findByList
,
modify
,
getlistysm
,
findByList
,
modify
,
getlistysm
,
getRoleList
,
addPartner
,
getSubstList
,
getSchoolList
,
getXzUserList
addPartner
,
getSubstList
,
getSchoolList
,
getXzUserList
,
exportUserList
}
from
"@/api/school-center/PartnerManagementAPI"
}
from
"@/api/school-center/PartnerManagementAPI"
import
{
cloneObject
}
from
'@/utils/util'
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
import
treecheck
from
'@/components/sysmanage/treeCheck'
import
treecheck
from
'@/components/sysmanage/treeCheck'
import
treeList
from
'@/components/sysmanage/treeList'
import
treeList
from
'@/components/sysmanage/treeList'
import
{
import
{
...
@@ -247,8 +318,13 @@
...
@@ -247,8 +318,13 @@
addFormtable
:
this
.
$form
.
createForm
(
this
,
{
name
:
'addFormtable'
}),
addFormtable
:
this
.
$form
.
createForm
(
this
,
{
name
:
'addFormtable'
}),
queryParam
:
{
queryParam
:
{
name
:
''
,
name
:
''
,
account
:
''
,
roleid
:
''
,
isUpload
:
''
,
status
:
''
,
isActive
:
''
,
substName
:
''
,
substName
:
''
,
school
:
''
school
:
''
,
},
},
addForm
:
{
addForm
:
{
account
:
''
,
account
:
''
,
...
@@ -268,6 +344,8 @@
...
@@ -268,6 +344,8 @@
},
},
leaderDisplay
:
'display:none'
,
leaderDisplay
:
'display:none'
,
modifyvisible
:
false
,
modifyvisible
:
false
,
allowStatus
:
true
,
schoolSelect
:
''
,
modifyForm
:
{
modifyForm
:
{
id
:
""
,
id
:
""
,
phone
:
''
,
phone
:
''
,
...
@@ -287,7 +365,10 @@
...
@@ -287,7 +365,10 @@
},
},
autoCompleteResult
:[],
autoCompleteResult
:[],
subNameList
:
[],
subNameList
:
[],
substList
:
[],
roleList
:
[],
schoolList
:[],
schoolList
:[],
schoolListParam
:
[],
xzUserList
:[],
xzUserList
:[],
addSubName
:
''
,
addSubName
:
''
,
columns
:
[
columns
:
[
...
@@ -296,8 +377,11 @@
...
@@ -296,8 +377,11 @@
{
dataIndex
:
'school'
,
width
:
200
,
title
:
'学校 '
,
align
:
"center"
},
{
dataIndex
:
'school'
,
width
:
200
,
title
:
'学校 '
,
align
:
"center"
},
{
dataIndex
:
'idCard'
,
width
:
200
,
title
:
'身份证 '
,
align
:
"center"
},
{
dataIndex
:
'idCard'
,
width
:
200
,
title
:
'身份证 '
,
align
:
"center"
},
{
dataIndex
:
'account'
,
width
:
200
,
title
:
'账号 '
,
align
:
"center"
},
{
dataIndex
:
'account'
,
width
:
200
,
title
:
'账号 '
,
align
:
"center"
},
{
dataIndex
:
'sex'
,
width
:
100
,
title
:
'性别 '
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'genderoperation'
},},
{
dataIndex
:
'substName'
,
width
:
100
,
title
:
'县分 '
,
align
:
"center"
},
{
dataIndex
:
'substName'
,
width
:
100
,
title
:
'县分 '
,
align
:
"center"
},
{
dataIndex
:
'roleName'
,
width
:
200
,
title
:
'角色 '
,
align
:
"center"
},
{
dataIndex
:
'status'
,
width
:
200
,
title
:
'状态'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'statusRender'
},},
{
dataIndex
:
'isActive'
,
width
:
200
,
title
:
'活跃状态'
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'activeRender'
},},
{
dataIndex
:
'sex'
,
width
:
100
,
title
:
'性别 '
,
align
:
"center"
,
scopedSlots
:
{
customRender
:
'genderoperation'
},},
{
{
dataIndex
:
'operation'
,
dataIndex
:
'operation'
,
width
:
100
,
width
:
100
,
...
@@ -315,11 +399,24 @@
...
@@ -315,11 +399,24 @@
//表示
//表示
let
obj
=
cloneObject
(
this
.
queryParam
)
let
obj
=
cloneObject
(
this
.
queryParam
)
this
.
substList
=
[];
this
.
subNameList
=
[];
// 获取县分下拉清单
// 获取县分下拉清单
getSubstList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
getSubstList
(
Object
.
assign
(
params
,
obj
)).
then
(
res
=>
{
if
(
res
.
state
==
'success'
)
{
if
(
res
.
state
==
'success'
)
{
res
.
data
.
forEach
((
key
)
=>
{
res
.
data
.
forEach
((
key
)
=>
{
this
.
subNameList
.
push
(
key
.
sub_name
)
this
.
subNameList
.
push
(
key
.
sub_name
)
this
.
substList
.
push
(
key
.
sub_name
)
})
}
})
// 获取角色下拉清单
this
.
roleList
=
[];
getRoleList
().
then
(
res
=>
{
if
(
res
.
state
==
'success'
)
{
res
.
data
.
forEach
((
key
)
=>
{
this
.
roleList
.
push
(
key
)
})
})
}
}
})
})
...
@@ -604,15 +701,25 @@
...
@@ -604,15 +701,25 @@
let
schoolParams
=
{};
let
schoolParams
=
{};
if
(
type
==
1
){
if
(
type
==
1
){
schoolParams
.
substName
=
this
.
addForm
.
subName
;
schoolParams
.
substName
=
this
.
addForm
.
subName
;
this
.
schoolList
=
[];
}
else
if
(
type
==
3
){
schoolParams
.
substName
=
this
.
queryParam
.
substName
;
this
.
schoolListParam
=
[];
}
else
{
}
else
{
schoolParams
.
substName
=
this
.
modifyForm
.
subName
;
schoolParams
.
substName
=
this
.
modifyForm
.
subName
;
this
.
schoolList
=
[];
}
}
this
.
schoolList
=
[];
getSchoolList
(
schoolParams
).
then
(
res
=>
{
getSchoolList
(
schoolParams
).
then
(
res
=>
{
if
(
res
.
state
==
'success'
)
{
if
(
res
.
state
==
'success'
)
{
res
.
data
.
forEach
((
key
)
=>
{
res
.
data
.
forEach
((
key
)
=>
{
this
.
schoolList
.
push
(
key
)
if
(
type
==
3
){
this
.
schoolListParam
.
push
(
key
)
}
else
{
this
.
schoolList
.
push
(
key
)
}
})
})
}
}
})
})
...
@@ -674,7 +781,12 @@
...
@@ -674,7 +781,12 @@
this
.
modifyForm
.
parentId
=
''
;
this
.
modifyForm
.
parentId
=
''
;
}
}
},
},
exportList
()
{
exportFile
(
exportUserList
(
this
.
queryParam
),
'用户清单.xlsx'
);
},
}
}
}
}
</
script
>
</
script
>
...
...
src/views/school-center/userManager/schoolAllocation.vue
View file @
8838d5e6
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</a-col>
</a-col>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<span
class=
"table-page-search-submitButtons"
style=
"float: left; overflow: hidden;"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
1
</a-button>
<a-button
@
click=
"search()"
type=
"primary"
>
查询
</a-button>
<a-button
@
click=
"openAllocation()"
style=
"margin-left: 8px"
icon=
"plus"
type=
"primary"
>
新增
</a-button>
<a-button
@
click=
"openAllocation()"
style=
"margin-left: 8px"
icon=
"plus"
type=
"primary"
>
新增
</a-button>
</a-col>
</a-col>
</span>
</span>
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
this
.
$refs
.
table
.
refresh
({
search
:
true
})
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
},
openAllocation
()
{
openAllocation
()
{
this
.
titleName
=
"添加学校
2323
分配"
;
this
.
titleName
=
"添加学校分配"
;
this
.
modifyvisible
=
true
;
this
.
modifyvisible
=
true
;
},
},
//提交表单
//提交表单
...
@@ -225,9 +225,10 @@
...
@@ -225,9 +225,10 @@
this
.
$message
.
success
(
res
.
data
?
res
.
data
:
'删除成功!'
,
5
);
this
.
$message
.
success
(
res
.
data
?
res
.
data
:
'删除成功!'
,
5
);
this
.
search
();
this
.
search
();
this
.
modifyvisible
=
false
;
this
.
modifyvisible
=
false
;
return
null
;
}
else
{
this
.
$message
.
error
(
res
.
data
?
res
.
data
:
'删除失败!'
,
5
);
}
}
this
.
$message
.
error
(
res
.
data
?
res
.
data
:
'删除失败!'
,
5
);
})
})
},
},
changeSubst
(){
changeSubst
(){
...
...
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