Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
memberTag
memberTag-web
Commits
bdbc3952
Commit
bdbc3952
authored
May 06, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决更新频率显示异常的问题
parent
8fa1b0b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
memberGroupList.vue
src/view/memberGroup/memberGroupList.vue
+7
-6
No files found.
src/view/memberGroup/memberGroupList.vue
View file @
bdbc3952
...
...
@@ -67,7 +67,7 @@
</el-table-column>
<el-table-column
label=
"更新频率"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
(
scope
.
row
.
updateType
,
scope
.
row
.
updateDay
,
scope
.
row
.
isRealTime
|
formatUpdateFrequency
)
}}
{{
scope
.
row
|
formatUpdateFrequency
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"state"
label=
"状态"
>
...
...
@@ -242,18 +242,19 @@ export default {
const
reg
=
/
\d{1,3}(?=(\d{3})
+$
)
/g
;
return
(
data
+
''
).
replace
(
reg
,
'$&,'
);
},
formatUpdateFrequency
(
type
,
day
,
isReal
)
{
if
(
isReal
===
0
)
{
formatUpdateFrequency
(
rowData
)
{
const
{
updateType
,
updateDay
,
isRealTime
}
=
rowData
;
if
(
isRealTime
===
1
)
{
return
'--'
}
switch
(
t
ype
)
{
switch
(
updateT
ype
)
{
case
1
:
return
'每天一次'
;
case
2
:
let
weekArr
=
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
];
return
day
?
`每周
${
weekArr
[
d
ay
-
1
]}
`
:
'每周一次'
;
return
updateDay
?
`每周
${
weekArr
[
updateD
ay
-
1
]}
`
:
'每周一次'
;
case
3
:
return
day
?
`每月
${
d
ay
}
号`
:
'每月一次'
;
return
updateDay
?
`每月
${
updateD
ay
}
号`
:
'每月一次'
;
default
:
return
'--'
;
}
...
...
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