Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d357dc24
authored
Apr 21, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改状态样式
1 parent
18e6cb3c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
1 deletions
src/assets/css/common.scss
src/views/account/index.vue
src/views/role/index.vue
src/assets/css/common.scss
View file @
d357dc2
...
@@ -172,3 +172,44 @@ img {
...
@@ -172,3 +172,44 @@ img {
z-index
:
999
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0
.1
);
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0
.1
);
}
}
.dot
{
display
:
inline-flex
;
align-items
:
center
;
span
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
.normal
{
background-color
:
#2CCA74
;
}
.draft
{
background-color
:
#FDB757
;
}
.dot1
{
background-color
:
#FDB757
;
}
.dot2
{
background-color
:
#2CCA74
;
}
.dot3
{
background-color
:
#999999
;
}
.dot4
{
background-color
:
#EB4E4E
;
}
.dot5
{
background-color
:
#FDB757
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/account/index.vue
View file @
d357dc2
...
@@ -21,6 +21,10 @@
...
@@ -21,6 +21,10 @@
</span>
</span>
</span>
</span>
</div>
</div>
<div
slot=
"statusName"
class=
"dot"
slot-scope=
"scope"
>
<span
:class=
"`dot$
{baseData.merchantStatusList.find(item => item.dictLabel == scope.scope.statusName).dictValue}`">
</span>
{{
scope
.
scope
.
statusName
}}
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<!--
<el-button
type=
"text"
@
click=
"handleLook(scope.scope)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleLook(scope.scope)"
>
查看
</el-button>
-->
...
@@ -107,6 +111,7 @@ export default {
...
@@ -107,6 +111,7 @@ export default {
label
:
'账户状态'
,
label
:
'账户状态'
,
prop
:
'statusName'
,
prop
:
'statusName'
,
width
:
'100'
,
width
:
'100'
,
addHtml
:
'statusName'
,
line
:
1
line
:
1
},
},
{
{
...
...
src/views/role/index.vue
View file @
d357dc2
...
@@ -9,6 +9,10 @@
...
@@ -9,6 +9,10 @@
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
:inline=
"true"
@
handleOk=
"toFindData"
@
handleRest=
"reSetFindData"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
:inline=
"true"
@
handleOk=
"toFindData"
@
handleRest=
"reSetFindData"
></GLCombiForm>
</div>
</div>
<GLTable
v-if=
"distoryTable"
ref=
"table"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"getTableData"
>
<GLTable
v-if=
"distoryTable"
ref=
"table"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"getTableData"
>
<div
slot=
"statusName"
class=
"dot"
slot-scope=
"scope"
>
<span
:class=
"roleStatus[scope.scope.statusName]"
></span>
{{
scope
.
scope
.
statusName
}}
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
<!--
<el-button
type=
"text"
@
click=
"toLookPage(scope.scope)"
>
查看
</el-button>
<!--
<el-button
type=
"text"
@
click=
"toLookPage(scope.scope)"
>
查看
</el-button>
...
@@ -21,11 +25,16 @@
...
@@ -21,11 +25,16 @@
</template>
</template>
<
script
>
<
script
>
const
roleStatus
=
{
正常
:
'normal'
,
草稿
:
'draft'
}
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
roleStatus
:
roleStatus
,
searchForm
:
{
searchForm
:
{
delFlag
:
''
,
delFlag
:
''
,
roleName
:
''
,
roleName
:
''
,
...
@@ -93,7 +102,8 @@ export default {
...
@@ -93,7 +102,8 @@ export default {
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'statusName'
prop
:
'statusName'
,
addHtml
:
'statusName'
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment