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
1364204c
Commit
1364204c
authored
Nov 19, 2018
by
xiaohai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
e4a0a2b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
11 deletions
+30
-11
groupTransfer.vue
src/components/groupTransfer.vue
+28
-10
memberGroupDetail.vue
src/view/memberGroup/memberGroupDetail.vue
+0
-1
memberGroupList.vue
src/view/memberGroup/memberGroupList.vue
+2
-0
No files found.
src/components/groupTransfer.vue
View file @
1364204c
...
...
@@ -13,6 +13,7 @@
</el-input>
</div>
<el-table
v-loading=
"loading"
v-loadmore=
"loadmore"
ref=
"originTable"
:data=
"tableData"
...
...
@@ -25,27 +26,29 @@
</el-table-column>
<el-table-column
label=
"分组名称"
min-width=
"170"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
>
<span>
{{
scope
.
row
.
describle
}}
</span>
<a
slot=
"reference"
class=
"pointer"
:href=
"'/memberGroupDetail?memberTagGroupId='+scope.row.memberTagGroupId"
>
{{
scope
.
row
.
groupName
}}
</a>
<a
slot=
"reference"
class=
"pointer"
:href=
"'
#
/memberGroupDetail?memberTagGroupId='+scope.row.memberTagGroupId"
>
{{
scope
.
row
.
groupName
}}
</a>
</el-popover>
</
template
>
</el-table-column>
<el-table-column
v-if=
"headerList.indexOf('isRealTime') > -1"
label=
"是否实时"
width=
"12
0px"
>
min-width=
"8
0px"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
isRealTime
==
1
?
'实时'
:
'非实时'
}}
</
template
>
</el-table-column>
<el-table-column
v-if=
"headerList.indexOf('latestUpdateTime') > -1"
label=
"最近更新时间"
width=
"20
0px"
min-width=
"12
0px"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
latestUpdateTime
|
formatTimeYMD
}}
...
...
@@ -53,11 +56,11 @@
</
template
>
</el-table-column>
<el-table-column
v-if=
"headerList.indexOf('updateType') > -1"
label=
"更新频率"
width=
"15
0px"
min-width=
"10
0px"
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
+
'号'
:
'每月一次'
)
}}
-->
<template
v-if=
"scope.row.isRealTime == 0"
>
{{
scope
.
row
.
updateType
,
scope
.
row
.
updateDay
|
formatUpdateFrequency
}}
</
template
>
...
...
@@ -67,17 +70,19 @@
</template>
</el-table-column>
<el-table-column
v-if=
"headerList.indexOf('effectiveStatus') > -1"
prop=
"state"
label=
"状态"
width=
"10
0px"
>
min-width=
"6
0px"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
effectiveStatus
==
1
?
'有效'
:
'失效'
}}
</
template
>
</el-table-column>
<el-table-column
v-if=
"headerList.indexOf('effectiveDate') > -1"
prop=
"recentUpdateDate"
label=
"到期时间"
width=
"2
00px"
min-width=
"1
00px"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
effectiveDate
|
formatTimeYMD
}}
...
...
@@ -85,9 +90,11 @@
</
template
>
</el-table-column>
<el-table-column
v-if=
"headerList.indexOf('handle') > -1"
min-width=
"60px"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<router-link
:to=
"
{path:'/memberGroupDetail',query:{memberTagGroupId:scope.row.memberTagGroupId}}" class="edit-btn el-button--text
p-r-20
">详情
</router-link>
<router-link
:to=
"
{path:'/memberGroupDetail',query:{memberTagGroupId:scope.row.memberTagGroupId}}" class="edit-btn el-button--text">详情
</router-link>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -160,6 +167,12 @@
projectName
:
{
type
:
String
,
default
:
'memberTag'
},
headerList
:
{
type
:
Array
,
default
()
{
return
[
'isRealTime'
,
'latestUpdateTime'
,
'updateType'
,
'effectiveStatus'
,
'effectiveDate'
,
'handle'
];
}
}
},
data
()
{
...
...
@@ -174,7 +187,8 @@
selectionToTransfer
:
[],
// 穿梭窗选入数据
selectionToRemove
:
[],
// 已选的将要删除的选入数据
countOfCoverTotal
:
0
,
totalPage
:
1
totalPage
:
1
,
loading
:
false
};
},
directives
:
{
...
...
@@ -224,19 +238,23 @@
*/
getGroupList
()
{
const
that
=
this
;
that
.
loading
=
true
;
that
.
axios
.
get
(
`
${
that
.
baseUrl
}
/gic-member-tag-web/member-tag-group/findList.json?requestProject=
${
that
.
projectName
}
&pageSize=
${
that
.
pageSize
}
&pageNum=
${
that
.
currentPage
}
&groupName=
${
that
.
dataSearch
}
&effectiveStatus=
${
1
}
`
)
.
then
(
res
=>
{
if
(
res
.
data
.
errorCode
==
1
)
{
that
.
tableData
=
that
.
tableData
.
concat
(
res
.
data
.
result
.
result
);
that
.
totalPage
=
res
.
data
.
result
.
totalPage
;
that
.
loading
=
false
;
return
;
}
that
.
loading
=
false
;
that
.
$message
.
error
({
duration
:
1000
,
message
:
res
.
data
.
message
});
})
.
catch
(
error
=>
{
that
.
loading
=
false
;
that
.
$message
.
error
({
duration
:
1000
,
message
:
error
.
message
...
...
src/view/memberGroup/memberGroupDetail.vue
View file @
1364204c
...
...
@@ -598,7 +598,6 @@
.tag-cell
{
padding
:
0
10px
;
margin-bottom
:
10px
;
height
:
36px
;
line-height
:
36px
;
background
:
#EBEEF5
;
border-radius
:
2px
;
...
...
src/view/memberGroup/memberGroupList.vue
View file @
1364204c
...
...
@@ -149,6 +149,7 @@
import
timeFormat
from
'@/common/js/timeFormat'
;
import
{
_debounce
}
from
"@/common/js/public"
;
import
{
getRequest
,
postRequest
,
postJson
,
postForm
}
from
'@/api/api'
;
// import groupTransfer from '@/components/groupTransfer';
export
default
{
name
:
'memberGroupList'
,
data
()
{
...
...
@@ -465,6 +466,7 @@
that
.
getGroupList
()
},
components
:
{
// groupTransfer,
navCrumb
}
}
...
...
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