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
fc8c09bf
Commit
fc8c09bf
authored
Jun 02, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销员(PC端完成缺二维码,未在链接上新增分销员参数)
parent
5f234d6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
8 deletions
+30
-8
src/api/school-center/PartnerManagementAPI.js
+3
-1
src/views/school-center/userManager/PartnerManagement.vue
+27
-7
No files found.
src/api/school-center/PartnerManagementAPI.js
View file @
fc8c09bf
...
...
@@ -38,7 +38,9 @@ let unlockUser = (params) => postAction(prefix + "/userDeploy/unlockUser" , para
// 锁定账户
let
lockUser
=
(
params
)
=>
postAction
(
prefix
+
"/userDeploy/lockUser"
,
params
);
let
pushFxyList
=
(
params
)
=>
postAction
(
prefix
+
"/school/partner/pushFxyList"
,
params
);
export
{
findByList
,
modify
,
getlistysm
,
addPartner
,
getSubstList
,
getSchoolList
,
getXzUserList
,
getRoleList
,
exportUserList
,
deleteUser
,
unlockUser
,
lockUser
getRoleList
,
exportUserList
,
deleteUser
,
unlockUser
,
lockUser
,
pushFxyList
}
src/views/school-center/userManager/PartnerManagement.vue
View file @
fc8c09bf
...
...
@@ -297,8 +297,8 @@
<a-modal
:title=
"titleName"
:visible=
"modifyvisibleFXY"
@
ok=
"createFXYOk"
@
cancel=
"createCancel"
html-type=
"submit"
width=
"720px"
>
<a-button
@
click=
"handleTabsAdd()"
style=
"margin-left: 8px"
icon=
"plus"
type=
"primary"
>
新增分销商
</a-button>
<a-button
@
click=
"handleTabRemove()"
style=
"margin-left: 8px"
icon=
"close"
type=
"primary"
>
删除当前分销商
</a-button>
<a-tabs
name=
"tab"
ref
s=
"tab
"
>
<a-tab-pane
:key=
"item"
v-for=
"item in fxyList"
>
<a-tabs
name=
"tab"
ref
=
"tabs"
@
tabClick=
"handleTabClick
"
>
<a-tab-pane
:key=
"item"
:name=
"item"
v-for=
"item in fxyList"
>
<span
slot=
"tab"
>
{{ modifyFormFXY.name+item }}
</span>
<div
id=
"qrcodeImg"
></div>
</a-tab-pane>
...
...
@@ -314,7 +314,7 @@
import
{
findByList
,
modify
,
getlistysm
,
getRoleList
,
addPartner
,
getSubstList
,
getSchoolList
,
getXzUserList
,
exportUserList
,
deleteUser
,
lockUser
,
unlockUser
exportUserList
,
deleteUser
,
lockUser
,
unlockUser
,
pushFxyList
}
from
"../../../api/school-center/PartnerManagementAPI"
import
{
cloneObject
,
exportFile
}
from
'@/utils/util'
import
treecheck
from
'@/components/sysmanage/treeCheck'
...
...
@@ -723,21 +723,41 @@
this
.
fxyList
=
data
.
fxs
==
""
?[]:
data
.
fxs
.
split
(
","
);
this
.
modifyvisibleFXY
=
true
;
},
handleTabsAdd
(){
this
.
fxyList
.
length
if
(
this
.
fxyList
.
length
>=
5
){
this
.
$message
.
info
(
"分销商不得超过5个"
,
2
);
return
;
}
this
.
fxyList
.
push
(
""
);
let
i
=
1
;
for
(
i
=
1
;
i
<=
5
;
i
++
){
if
(
this
.
fxyList
.
indexOf
(
i
)
==
-
1
){
this
.
fxyList
.
push
(
i
);
break
;
}
}
this
.
$refs
.
tabs
.
activeKey
=
i
;
this
.
setFxyList
()
},
handleTabClick
(
name
){
this
.
$refs
.
tabs
.
activeKey
=
name
;
},
handleTabRemove
(){
debugger
this
.
$refs
.
tab
let
index
=
this
.
fxyList
.
indexOf
(
this
.
$refs
.
tabs
.
activeKey
);
this
.
fxyList
.
splice
(
index
,
1
);
this
.
$refs
.
tabs
.
activeKey
=
this
.
fxyList
[
0
];
this
.
setFxyList
()
},
setFxyList
(){
pushFxyList
({
id
:
this
.
modifyFormFXY
.
id
,
fxy
:
this
.
fxyList
.
sort
().
toString
()}).
then
(
res
=>
{
if
(
res
.
state
==
'success'
)
{
this
.
$message
.
success
(
"分销商更新成功"
,
2
);
}
});
},
createFXYOk
(){
this
.
modifyvisibleFXY
=
false
;
this
.
search
();
},
createCancel
(){
this
.
addUser
=
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