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
ed5dabeb
Commit
ed5dabeb
authored
Nov 15, 2018
by
xiaohai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分组列表更新频率字段调整显示
parent
1a92ed6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
14 deletions
+24
-14
groupTransfer.vue
src/components/groupTransfer.vue
+13
-8
memberGroupList.vue
src/view/memberGroup/memberGroupList.vue
+11
-6
No files found.
src/components/groupTransfer.vue
View file @
ed5dabeb
...
...
@@ -58,7 +58,12 @@
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<!--
{{
scope
.
row
.
updateType
==
1
?
'每天一次'
:
scope
.
row
.
updateType
==
2
?
(
scope
.
row
.
updateDay
?
'每周'
+
weekArr
[
scope
.
row
.
updateDay
-
1
]
:
'每周一次'
)
:
(
scope
.
row
.
updateDay
?
'每月'
+
scope
.
row
.
updateDay
+
'号'
:
'每月一次'
)
}}
-->
{{
scope
.
row
.
updateType
,
scope
.
row
.
updateDay
|
formatUpdateFrequency
}}
<template
v-if=
"scope.row.isRealTime == 1"
>
{{
scope
.
row
.
updateType
,
scope
.
row
.
updateDay
|
formatUpdateFrequency
}}
</
template
>
<
template
v-else
>
--
</
template
>
</template>
</el-table-column>
<el-table-column
...
...
@@ -161,7 +166,6 @@
return
{
tableData
:
[],
pageSize
:
20
,
weekArr
:
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
],
currentPage
:
1
,
dataSearch
:
""
,
baseUrl
:
""
,
...
...
@@ -353,16 +357,17 @@
const
that
=
this
;
switch
(
type
)
{
case
1
:
return
'每天一次'
;
break
;
return
'每天一次'
;
break
;
case
2
:
return
day
?
`每周
${
that
.
weekArr
[
day
-
1
]}
`
:
'每周一次'
;
let
weekArr
=
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
];
return
day
?
`每周
${
weekArr
[
day
-
1
]}
`
:
'每周一次'
;
break
;
case
3
:
return
day
?
`每月
${
that
.
weekArr
[
day
-
1
]
}
号`
:
'每月一次'
;
break
;
return
day
?
`每月
${
day
}
号`
:
'每月一次'
;
break
;
default
:
return
'--'
;
return
'--'
;
}
}
},
...
...
src/view/memberGroup/memberGroupList.vue
View file @
ed5dabeb
...
...
@@ -58,7 +58,12 @@
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<!--
{{
scope
.
row
.
updateType
==
1
?
'每天一次'
:
scope
.
row
.
updateType
==
2
?
(
scope
.
row
.
updateDay
?
'每周'
+
weekArr
[
scope
.
row
.
updateDay
-
1
]
:
'每周一次'
)
:
(
scope
.
row
.
updateDay
?
'每月'
+
scope
.
row
.
updateDay
+
'号'
:
'每月一次'
)
}}
-->
{{
scope
.
row
.
updateType
,
scope
.
row
.
updateDay
|
formatUpdateFrequency
}}
<template
v-if=
"scope.row.isRealTime == 1"
>
{{
scope
.
row
.
updateType
,
scope
.
row
.
updateDay
|
formatUpdateFrequency
}}
</
template
>
<
template
v-else
>
--
</
template
>
</template>
</el-table-column>
<el-table-column
...
...
@@ -171,8 +176,7 @@
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
groupSetShow
:
false
,
weekArr
:
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
]
groupSetShow
:
false
}
},
filters
:
{
...
...
@@ -187,16 +191,17 @@
return
(
data
+
''
).
replace
(
reg
,
'$&,'
);
},
formatUpdateFrequency
(
type
,
day
)
{
cons
t
that
=
this
;
le
t
that
=
this
;
switch
(
type
)
{
case
1
:
return
'每天一次'
;
break
;
case
2
:
return
day
?
`每周
${
that
.
weekArr
[
day
-
1
]}
`
:
'每周一次'
;
let
weekArr
=
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
];
return
day
?
`每周
${
weekArr
[
day
-
1
]}
`
:
'每周一次'
;
break
;
case
3
:
return
day
?
`每月
${
that
.
weekArr
[
day
-
1
]
}
号`
:
'每月一次'
;
return
day
?
`每月
${
day
}
号`
:
'每月一次'
;
break
;
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