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
6a6a624b
Commit
6a6a624b
authored
Feb 06, 2020
by
xulili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
柜组列表和通讯录树样式修改
parent
2d8dd839
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
38 deletions
+44
-38
counter.vue
ybf_admin/src/pages/in/contact/counter.vue
+27
-18
mail.vue
ybf_admin/src/pages/in/contact/mail.vue
+17
-20
No files found.
ybf_admin/src/pages/in/contact/counter.vue
View file @
6a6a624b
<
template
>
<div
class=
"main"
>
<div
class=
"title"
>
全部柜组( 共
5
个 )
</div>
<div
class=
"title"
>
全部柜组( 共
<span>
{{
page
.
total
}}
</span>
个 )
</div>
<div
class=
"searchs"
>
<div
class=
"buttons"
>
<el-button
class=
"button buttonlight"
size=
"small"
@
click=
"addCounter"
>
添加柜组
</el-button>
...
...
@@ -37,7 +37,7 @@
align=
"center"
></el-table-column>
<el-table-column
prop=
"principal"
prop=
"principal
Name
"
label=
"柜组负责人"
align=
"center"
></el-table-column>
...
...
@@ -60,18 +60,9 @@
<el-table-column
label=
"创建时间"
width=
"120"
align=
"center"
prop=
"createDate"
/>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
class=
"btn"
@
click=
"handleDetail(scope.row.id)"
>
详情
</el-button
>
<el-button
type=
"text"
class=
"btn"
@
click=
"handleEdit(scope.row.id)"
>
编辑
</el-button
>
<el-button
type=
"text"
@
click=
"handleDelete(scope.row.id)"
class=
"listButtonRed"
>
删除
</el-button
>
<el-button
type=
"text"
class=
"btn"
@
click=
"handleDetail(scope.row.id)"
>
详情
</el-button>
<el-button
type=
"text"
class=
"btn"
@
click=
"handleEdit(scope.row.id)"
>
编辑
</el-button
>
<el-button
type=
"text"
@
click=
"handleDelete(scope.row.id)"
class=
"listButtonRed"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -160,8 +151,16 @@ export default {
_this
.
tableData
=
[]
}
if
(
res
.
result
==
'success'
){
_this
.
tableData
=
res
.
data
.
adminShops
.
list
_this
.
page
.
total
=
Number
(
res
.
data
.
adminShops
.
total
)
let
data
=
res
.
data
.
pageInfo
.
list
_this
.
tableData
=
data
.
map
((
v
,
i
)
=>
{
let
obj
=
{}
for
(
let
key
in
v
.
adminShop
){
obj
[
key
]
=
v
.
adminShop
[
key
]
obj
.
principalName
=
v
.
principal
}
return
obj
})
_this
.
page
.
total
=
Number
(
res
.
data
.
pageInfo
.
total
)
}
})
},
...
...
@@ -179,7 +178,12 @@ export default {
this
.
$confirm
(
'确定删除该柜组吗?'
,
{
}).
then
(()
=>
{
stallDel
({
shopIds
:
id
}).
then
(
res
=>
{
_this
.
$message
(
res
.
data
)
if
(
res
.
result
==
'fail'
){
_this
.
$message
.
error
(
res
.
errorMsg
)
}
if
(
res
.
result
==
'success'
){
_this
.
getListData
()
}
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
"取消删除"
)
...
...
@@ -194,7 +198,12 @@ export default {
this
.
$confirm
(
'确定批量删除柜组吗?'
,
{
}).
then
(()
=>
{
stallDel
({
shopIds
:
delIds
}).
then
(
res
=>
{
_this
.
$message
(
res
.
data
)
if
(
res
.
result
==
'fail'
){
_this
.
$message
.
error
(
res
.
errorMsg
)
}
if
(
res
.
result
==
'success'
){
_this
.
getListData
()
}
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
"取消删除"
)
...
...
ybf_admin/src/pages/in/contact/mail.vue
View file @
6a6a624b
...
...
@@ -10,7 +10,7 @@
<span
class=
"number"
>
{{
allNumber
}}
</span>
</div>
</div>
<div
class=
"ty"
style=
"margin:1
5
px 0;"
@
click=
"getNoGroupMember(1,1)"
>
<div
class=
"ty"
style=
"margin:1
2
px 0;"
@
click=
"getNoGroupMember(1,1)"
>
<div>
<span>
未分组
</span>
<span
class=
"number"
>
{{
wNumber
}}
</span>
...
...
@@ -26,9 +26,6 @@
expand-on-click-node
@
node-click=
"handleTreeClick"
>
<!--
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span>
{{
node
.
label
}}
</span>
</span>
-->
</el-tree>
</div>
</div>
...
...
@@ -713,11 +710,11 @@ export default {
<
style
scoped
>
.trees
>>>
.el-tree-node__content
{
padding
:
10
px
;
border-bottom
:
1px
solid
#fff
;
padding
:
5
px
;
/*border-bottom: 1px solid #fff;*/
}
.trees
>>>
.el-tree-node__children
.el-tree-node__content
{
background-color
:
#dadad97
a
;
/*background-color: #dadad97a;*/
}
.btn
>>>
.el-button
+
.el-button
{
...
...
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