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
Hide 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
>
<
template
>
<div
class=
"main"
>
<div
class=
"main"
>
<div
class=
"title"
>
全部柜组( 共
5
个 )
</div>
<div
class=
"title"
>
全部柜组( 共
<span>
{{
page
.
total
}}
</span>
个 )
</div>
<div
class=
"searchs"
>
<div
class=
"searchs"
>
<div
class=
"buttons"
>
<div
class=
"buttons"
>
<el-button
class=
"button buttonlight"
size=
"small"
@
click=
"addCounter"
>
添加柜组
</el-button>
<el-button
class=
"button buttonlight"
size=
"small"
@
click=
"addCounter"
>
添加柜组
</el-button>
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
align=
"center"
align=
"center"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
prop=
"principal"
prop=
"principal
Name
"
label=
"柜组负责人"
label=
"柜组负责人"
align=
"center"
align=
"center"
></el-table-column>
></el-table-column>
...
@@ -60,18 +60,9 @@
...
@@ -60,18 +60,9 @@
<el-table-column
label=
"创建时间"
width=
"120"
align=
"center"
prop=
"createDate"
/>
<el-table-column
label=
"创建时间"
width=
"120"
align=
"center"
prop=
"createDate"
/>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"200"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
class=
"btn"
@
click=
"handleDetail(scope.row.id)"
<el-button
type=
"text"
class=
"btn"
@
click=
"handleDetail(scope.row.id)"
>
详情
</el-button>
>
详情
</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=
"handleEdit(scope.row.id)"
>
编辑
</el-button
>
<el-button
type=
"text"
@
click=
"handleDelete(scope.row.id)"
class=
"listButtonRed"
>
删除
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -160,8 +151,16 @@ export default {
...
@@ -160,8 +151,16 @@ export default {
_this
.
tableData
=
[]
_this
.
tableData
=
[]
}
}
if
(
res
.
result
==
'success'
){
if
(
res
.
result
==
'success'
){
_this
.
tableData
=
res
.
data
.
adminShops
.
list
let
data
=
res
.
data
.
pageInfo
.
list
_this
.
page
.
total
=
Number
(
res
.
data
.
adminShops
.
total
)
_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 {
...
@@ -179,7 +178,12 @@ export default {
this
.
$confirm
(
'确定删除该柜组吗?'
,
{
this
.
$confirm
(
'确定删除该柜组吗?'
,
{
}).
then
(()
=>
{
}).
then
(()
=>
{
stallDel
({
shopIds
:
id
}).
then
(
res
=>
{
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
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
.
info
(
"取消删除"
)
this
.
$message
.
info
(
"取消删除"
)
...
@@ -194,7 +198,12 @@ export default {
...
@@ -194,7 +198,12 @@ export default {
this
.
$confirm
(
'确定批量删除柜组吗?'
,
{
this
.
$confirm
(
'确定批量删除柜组吗?'
,
{
}).
then
(()
=>
{
}).
then
(()
=>
{
stallDel
({
shopIds
:
delIds
}).
then
(
res
=>
{
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
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
.
info
(
"取消删除"
)
this
.
$message
.
info
(
"取消删除"
)
...
...
ybf_admin/src/pages/in/contact/mail.vue
View file @
6a6a624b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<span
class=
"number"
>
{{
allNumber
}}
</span>
<span
class=
"number"
>
{{
allNumber
}}
</span>
</div>
</div>
</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>
<div>
<span>
未分组
</span>
<span>
未分组
</span>
<span
class=
"number"
>
{{
wNumber
}}
</span>
<span
class=
"number"
>
{{
wNumber
}}
</span>
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
expand-on-click-node
expand-on-click-node
@
node-click=
"handleTreeClick"
@
node-click=
"handleTreeClick"
>
>
<!--
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span>
{{
node
.
label
}}
</span>
</span>
-->
</el-tree>
</el-tree>
</div>
</div>
</div>
</div>
...
@@ -626,7 +623,7 @@ export default {
...
@@ -626,7 +623,7 @@ export default {
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
let
ctPage
=
val
let
ctPage
=
val
this
.
handleTypeChange
(
val
,
ctPage
)
this
.
handleTypeChange
(
val
,
ctPage
)
},
},
getMailList
(
page
,
ctPage
)
{
getMailList
(
page
,
ctPage
)
{
this
.
formData
.
keywords
=
''
this
.
formData
.
keywords
=
''
...
@@ -644,8 +641,8 @@ export default {
...
@@ -644,8 +641,8 @@ export default {
},
},
handleShopowner
()
{},
handleShopowner
()
{},
getNoGroupMember
(
page
,
ctPage
)
{
getNoGroupMember
(
page
,
ctPage
)
{
this
.
formData
.
keywords
=
''
this
.
formData
.
keywords
=
''
this
.
page
.
currentPage
=
ctPage
this
.
page
.
currentPage
=
ctPage
this
.
title
=
"未分组"
this
.
title
=
"未分组"
this
.
type
=
this
.
sType
=
2
;
this
.
type
=
this
.
sType
=
2
;
let
params
=
{
let
params
=
{
...
@@ -661,20 +658,20 @@ export default {
...
@@ -661,20 +658,20 @@ export default {
let
ids
=
[]
let
ids
=
[]
val
.
map
(
function
(
item
)
{
val
.
map
(
function
(
item
)
{
ids
.
push
(
item
.
id
)
ids
.
push
(
item
.
id
)
});
});
this
.
idList
=
ids
this
.
idList
=
ids
console
.
log
(
this
.
idList
,
","
);
console
.
log
(
this
.
idList
,
","
);
},
},
handleTypeChange
(
val
,
ctPage
)
{
handleTypeChange
(
val
,
ctPage
)
{
if
(
this
.
type
==
1
)
{
if
(
this
.
type
==
1
)
{
this
.
getMailList
(
val
,
ctPage
)
this
.
getMailList
(
val
,
ctPage
)
}
else
if
(
this
.
type
==
2
)
{
}
else
if
(
this
.
type
==
2
)
{
this
.
getNoGroupMember
(
val
,
ctPage
)
this
.
getNoGroupMember
(
val
,
ctPage
)
}
else
if
(
this
.
type
==
3
)
{
}
else
if
(
this
.
type
==
3
)
{
this
.
getGroupMember
(
val
,
ctPage
)
this
.
getGroupMember
(
val
,
ctPage
)
}
else
if
(
this
.
type
==
4
)
{
}
else
if
(
this
.
type
==
4
)
{
this
.
handleSearch
(
val
,
ctPage
)
this
.
handleSearch
(
val
,
ctPage
)
}
}
else
{
else
{
...
@@ -702,10 +699,10 @@ export default {
...
@@ -702,10 +699,10 @@ export default {
stallId
:
this
.
counterId
,
stallId
:
this
.
counterId
,
pageNum
:
page
pageNum
:
page
}
}
search
(
params
).
then
(
res
=>
{
search
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
.
list
this
.
tableData
=
res
.
data
.
list
this
.
page
.
total
=
Number
(
res
.
data
.
total
);
this
.
page
.
total
=
Number
(
res
.
data
.
total
);
})
})
}
}
}
}
};
};
...
@@ -713,12 +710,12 @@ export default {
...
@@ -713,12 +710,12 @@ export default {
<
style
scoped
>
<
style
scoped
>
.trees
>>>
.el-tree-node__content
{
.trees
>>>
.el-tree-node__content
{
padding
:
10
px
;
padding
:
5
px
;
border-bottom
:
1px
solid
#fff
;
/*border-bottom: 1px solid #fff;*/
}
}
.trees
>>>
.el-tree-node__children
.el-tree-node__content
{
.trees
>>>
.el-tree-node__children
.el-tree-node__content
{
background-color
:
#dadad97
a
;
/*background-color: #dadad97a;*/
}
}
.btn
>>>
.el-button
+
.el-button
{
.btn
>>>
.el-button
+
.el-button
{
margin-left
:
5px
;
margin-left
:
5px
;
...
...
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