Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
ybf
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xulili
ybf
Commits
79105438
Commit
79105438
authored
5 years ago
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通讯录部分接口完成
parent
824ffb43
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
55 deletions
+88
-55
mail.js
ybf_admin/src/api/in/mail.js
+9
-0
move.vue
ybf_admin/src/pages/in/contact/components/move.vue
+3
-6
mail.vue
ybf_admin/src/pages/in/contact/mail.vue
+76
-49
No files found.
ybf_admin/src/api/in/mail.js
View file @
79105438
...
...
@@ -82,3 +82,12 @@ export function getHistoryList(data) {
params
:
data
})
}
// 模糊查询
export
function
search
(
data
)
{
return
request
({
url
:
'/admin/auth/addressbook/getUserByKeyWords'
,
method
:
'get'
,
params
:
data
})
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/components/move.vue
View file @
79105438
...
...
@@ -111,16 +111,13 @@ export default {
handleFinish
()
{
let
groupId
=
this
.
$refs
.
tree
.
getCheckedKeys
()[
0
]
let
data
=
{
/* stallIds: groupId*1,
userId: this.idList[0]*1 */
stallIds
:
groupId
,
userId
:
this
.
idList
[
0
]
userId
s
:
this
.
idList
[
0
]
}
moveMember
(
data
).
then
(
res
=>
{
console
.
log
(
res
,
"???"
);
})
this
.
$emit
(
"handleFinish"
,
false
);
})
},
/* handleChange() {},
handleClose() {
...
...
This diff is collapsed.
Click to expand it.
ybf_admin/src/pages/in/contact/mail.vue
View file @
79105438
...
...
@@ -10,7 +10,7 @@
<span
class=
"number"
>
{{
allNumber
}}
</span>
</div>
</div>
<div
class=
"ty"
style=
"margin:15px 0;"
@
click=
"getNoGroupMember(1)"
>
<div
class=
"ty"
style=
"margin:15px 0;"
@
click=
"getNoGroupMember(1
,1
)"
>
<div>
<span>
未分组
</span>
<span
class=
"number"
>
{{
wNumber
}}
</span>
...
...
@@ -31,13 +31,9 @@
</div>
</div>
</div>
<!--
<div
class=
"end"
>
<span
class=
"add-r"
@
click=
"addStore"
>
添加门店/专柜
</span>
</div>
-->
</div>
<div
class=
"right"
>
<!--
<div
class=
"right-c"
>
-->
<div
class=
"top"
>
三号柜组(共18人)
</div>
<div
class=
"top"
><span>
{{
title
}}
</span>
共(
<span>
{{
totalNumber
}}
</span>
)人
</div>
<div
class=
"searchs"
>
<div
class=
"buttons"
>
<el-button
class=
"button buttondark"
size=
"small"
@
click=
"handleMove"
:disabled=
"idList.length>0? false:true "
...
...
@@ -60,12 +56,12 @@
<el-form-item
label=
"关键词"
>
<el-input
size=
"small"
v-model=
"formData.keys"
v-model=
"formData.key
word
s"
style=
"width:160px"
placeholder=
"请输入关键词"
/>
</el-form-item>
<el-button
class=
"button buttondark"
size=
"small"
>
搜索
</el-button>
<el-button
class=
"button buttondark"
size=
"small"
@
click=
"handleSearch"
>
搜索
</el-button>
</el-form>
</div>
<el-table
...
...
@@ -131,16 +127,6 @@
@
handleFinish=
"removeFinish"
:idList=
"idList"
></move-dialog>
<!-- <el-dialog title="提示" v-if="nameDialog" :visible.sync="nameDialog" width="30%" >
<div class="changeName">
<span style="margin:0 10px;">门店名称:</span>
<el-input v-model="store.name" placeholder="请输入名称"></el-input>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="nameDialog = false">取 消</el-button>
<el-button type="primary" @click="handleNameChange">确 定</el-button>
</span>
</el-dialog> -->
</div>
</template>
...
...
@@ -152,7 +138,8 @@ import {
getNoGroupMember
,
getMemberById
,
storeNameChange
,
getGroupById
getGroupById
,
search
}
from
"@/api/in/mail"
;
export
default
{
data
()
{
...
...
@@ -540,8 +527,7 @@ export default {
tableData
:
[],
isShow
:
false
,
formData
:
{
status
:
""
,
keys
:
""
keywords
:
""
},
statusList
:
[],
page
:
{
...
...
@@ -563,7 +549,10 @@ export default {
type
:
1
,
idList
:
[],
storeId
:
""
,
groupId
:
""
groupId
:
""
,
counterId
:
0
,
title
:
"全部"
,
totalNumber
:
""
};
},
components
:
{
...
...
@@ -571,7 +560,7 @@ export default {
},
created
()
{
this
.
getOrgTree
();
this
.
getMailList
(
1
);
this
.
getMailList
(
1
,
1
);
},
methods
:
{
getOrgTree
()
{
...
...
@@ -583,15 +572,20 @@ export default {
});
},
handleTreeClick
(
data
)
{
this
.
title
=
data
.
name
if
(
data
.
shopId
)
{
this
.
groupId
=
data
.
shopId
}
if
(
data
.
type
){
this
.
storeId
=
data
.
id
this
.
getStoreMember
(
1
)
this
.
getStoreMember
(
1
,
1
)
}
else
{
this
.
groupId
=
data
.
id
this
.
getGroupMember
(
1
)
this
.
getGroupMember
(
1
,
1
)
}
},
getGroupMember
(
page
)
{
getGroupMember
(
page
,
ctPage
)
{
this
.
page
.
currentPage
=
ctPage
this
.
type
=
3
let
params
=
{
pageNum
:
page
,
...
...
@@ -599,10 +593,11 @@ export default {
};
getGroupById
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
list
;
this
.
page
.
total
=
Number
(
res
.
data
.
total
);
this
.
page
.
total
=
this
.
totalNumber
=
Number
(
res
.
data
.
total
);
});
},
getStoreMember
(
page
)
{
getStoreMember
(
page
,
ctPage
)
{
this
.
page
.
currentPage
=
ctPage
this
.
type
=
4
let
params
=
{
pageNum
:
page
,
...
...
@@ -611,12 +606,9 @@ export default {
getMemberById
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
list
;
this
.
page
.
total
=
Number
(
res
.
data
.
total
);
this
.
totalNumber
=
Number
(
res
.
data
.
total
)
});
},
listPick
()
{},
testButtonClick
()
{},
pagesSizeChange
()
{},
pagesNowPageChange
()
{},
synchronismMember
()
{
this
.
isShow
=
true
;
this
.
$emit
(
"isShow"
,
this
.
isShow
);
...
...
@@ -625,41 +617,38 @@ export default {
this
.
moveDialogShow
=
true
;
},
removeFinish
()
{
this
.
handleTypeChange
(
1
,
1
)
this
.
moveDialogShow
=
false
;
},
handleCurrentChange
(
val
)
{
console
.
log
(
val
,
"每页"
);
if
(
this
.
type
==
1
)
{
this
.
getMailList
(
val
)
}
else
if
(
this
.
type
==
2
)
{
this
.
getNoGroupMember
(
val
)
}
else
if
(
this
.
type
==
3
)
{
this
.
getGroupMember
(
val
)
}
else
{
this
.
getStoreMember
(
val
)
}
let
ctPage
=
val
this
.
handleTypeChange
(
val
,
ctPage
)
},
getMailList
(
page
)
{
getMailList
(
page
,
ctPage
)
{
this
.
title
=
"全部"
this
.
type
=
1
;
this
.
page
.
currentPage
=
ctPage
let
params
=
{
pageNum
:
page
};
getAllMemberList
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
"res"
);
this
.
tableData
=
res
.
data
.
list
;
this
.
page
.
total
=
Number
(
res
.
data
.
total
);
this
.
page
.
total
=
this
.
totalNumber
=
this
.
allNumber
=
Number
(
res
.
data
.
total
);
});
},
handleShopowner
()
{},
getNoGroupMember
(
page
)
{
getNoGroupMember
(
page
,
ctPage
)
{
this
.
title
=
"未分组"
this
.
page
.
currentPage
=
ctPage
this
.
type
=
2
;
let
params
=
{
pageNum
:
page
};
getNoGroupMember
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
list
;
this
.
page
.
total
=
Number
(
res
.
data
.
total
);
this
.
page
.
total
=
this
.
totalNumber
=
this
.
wNumber
=
Number
(
res
.
data
.
total
);
});
},
handleMemberChange
(
val
)
{
...
...
@@ -672,6 +661,44 @@ export default {
this
.
idList
=
ids
console
.
log
(
this
.
idList
,
","
);
},
handleTypeChange
(
val
,
ctPage
)
{
if
(
this
.
type
==
1
)
{
this
.
getMailList
(
val
,
ctPage
)
}
else
if
(
this
.
type
==
2
)
{
this
.
getNoGroupMember
(
val
,
ctPage
)
}
else
if
(
this
.
type
==
3
)
{
this
.
getGroupMember
(
val
,
ctPage
)
}
else
{
this
.
getStoreMember
(
val
,
ctPage
)
}
},
handleSearch
()
{
switch
(
this
.
type
)
{
case
1
:
this
.
counterId
=
0
;
break
case
2
:
this
.
counterId
=
-
1
;
break
case
3
:
this
.
counterId
=
this
.
groupId
;
break
}
let
params
=
{
keyWords
:
this
.
formData
.
keywords
,
stallId
:
this
.
counterId
}
search
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
"搜索结果"
);
let
array
=
[]
array
.
push
(
res
.
data
.
userInfo
)
console
.
log
(
array
,
"???"
);
this
.
tableData
=
array
;
this
.
page
.
total
=
1
})
}
}
};
...
...
This diff is collapsed.
Click to expand it.
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