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
ad230a2e
Commit
ad230a2e
authored
Nov 19, 2018
by
xiaohai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新功能添加
parent
576ba03d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
7 deletions
+62
-7
memberGroupList.vue
src/view/memberGroup/memberGroupList.vue
+62
-7
No files found.
src/view/memberGroup/memberGroupList.vue
View file @
ad230a2e
...
...
@@ -13,6 +13,27 @@
@
clear=
"clearSearch"
@
keyup
.
enter
.
native=
"searchEnterFun"
>
</el-input>
<el-select
v-model=
"statusSelect"
@
change=
"searchByStatus"
placeholder=
"请选择"
class=
"w-220"
>
<el-option
:key=
"0"
label=
"失效"
:value=
"0"
>
</el-option>
<el-option
:key=
"1"
label=
"有效"
:value=
"1"
>
</el-option>
<el-option
key=
""
label=
"全部"
value=
""
>
</el-option>
</el-select>
<el-button
type=
"primary"
@
click=
"toAddGroup"
class=
"fr"
>
新增分组
</el-button>
</div>
<div
class=
"common-wrap__table m-t-20"
>
...
...
@@ -87,6 +108,18 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"appStatus"
label=
"好办展示"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.appStatus"
active-color=
"#1890ff"
@
change=
"switchAppStatus(scope.row.appStatus, scope.row)"
>
</el-switch>
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
width=
"150px"
...
...
@@ -180,7 +213,8 @@
pageSize
:
20
,
total
:
0
,
groupSetShow
:
false
,
loading
:
false
loading
:
false
,
statusSelect
:
''
}
},
created
()
{
...
...
@@ -217,10 +251,7 @@
},
methods
:
{
setRowClassName
({
row
,
rowIndex
})
{
console
.
log
(
row
,
rowIndex
);
// if (rowIndex === 1) {
// return 'row-need-loading';
// }
// console.log(row, rowIndex);
},
/**
*
...
...
@@ -305,6 +336,22 @@
},
/**
* 更新好办展示状态
*/
switchAppStatus
(
status
,
obj
)
{
console
.
log
(
status
,
obj
);
const
that
=
this
;
that
.
loading
=
true
;
const
appStatus
=
status
?
1
:
0
;
const
memberTagGroupId
=
obj
.
memberTagGroupId
;
let
param
=
{
memberTagGroupId
,
appStatus
};
that
.
updateGroup
(
param
,
obj
);
},
/**
* 刷新当前分组
*/
refreshGroup
(
obj
)
{
...
...
@@ -415,7 +462,14 @@
});
});
},
/**
* 通过状态筛选列表
*/
searchByStatus
(
val
)
{
this
.
loading
=
true
;
console
.
log
(
val
,
this
.
statusSelect
);
this
.
getGroupList
();
},
/**
* 获取列表数据
*/
...
...
@@ -424,7 +478,8 @@
const
para
=
{
groupName
:
that
.
tagSearch
,
// 搜索字段
pageSize
:
that
.
pageSize
,
pageNum
:
that
.
currentPage
pageNum
:
that
.
currentPage
,
effectiveStatus
:
that
.
statusSelect
};
getRequest
(
'/member-tag-group/findList.json'
,
para
)
.
then
((
res
)
=>
{
...
...
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