Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
软件工程实践2022年春W班
Followers
TeamPractice4
提交
7f68685b
T
TeamPractice4
项目概览
软件工程实践2022年春W班
/
Followers
/
TeamPractice4
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TeamPractice4
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7f68685b
编写于
4月 23, 2022
作者:
Danilas
🏸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
111
上级
4d67ec38
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
25 deletion
+23
-25
frontend/src/views/MainPage/activity/activity.vue
frontend/src/views/MainPage/activity/activity.vue
+23
-25
未找到文件。
frontend/src/views/MainPage/activity/activity.vue
浏览文件 @
7f68685b
...
...
@@ -5,43 +5,36 @@
</el-breadcrumb>
<div
class=
"operation"
>
<el-radio-group
v-model=
"radio1"
>
<el-radio-group
v-model=
"radio1"
:change=
"search()"
>
<el-radio-button
label=
"全部活动"
></el-radio-button>
<el-radio-button
label=
"未开始"
></el-radio-button>
<el-radio-button
label=
"进行中"
></el-radio-button>
<el-radio-button
label=
"已结束"
style=
"margin-right:400px"
></el-radio-button>
</el-radio-group>
<el-input
v-model=
"input"
placeholder=
"请输入内容"
style=
"width: 300px"
></el-input>
<el-button
type=
"primary"
icon=
"el-icon-search"
circle
style=
"margin-left:10px"
></el-button>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
<el-table
:data=
"tableData.filter(data => !sear || sear=='全部活动' || data.state.toLowerCase().includes(sear.toLowerCase()) )
"
style=
"width: 100%"
:header-cell-style=
"headStyle"
:cell-style=
"rowStyle"
:header-cell-class-name=
"headerStyle"
>
<el-table-column
prop=
"activityname"
label=
"活动名称"
></el-table-column>
<el-table-column
prop=
"state"
label=
"状态"
></el-table-column>
<el-table-column
prop=
"state"
label=
"状态"
:filters=
"[
{text: '全部活动', value: '全部活动'}, {text: '未开始', value: '未开始'}, {text: '进行中', value: '进行中'}, {text: '已结束', value: '已结束'}]"
:filter-method="filterHandler">
</el-table-column>
<el-table-column
prop=
"date"
label=
"创建日期"
></el-table-column>
<el-table-column
prop=
"anticipate"
label=
"参与人数"
></el-table-column>
<el-table-column
prop=
""
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"success"
@
click=
"handleClick(scope.row)"
size=
"small"
>
预览活动
</el-button>
<el-table-column
align=
"right"
>
<template
slot=
"header"
slot-scope=
"scope"
>
<el-input
style=
"display:none;"
v-model=
"sear"
/>
</
template
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
@
click=
"handleClick(scope.row)"
size=
"small"
>
预览活动
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
class=
"operation"
>
<!-- <el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage4"
:page-sizes="[10,20]"
:page-size="10"
layout="total, sizes, prev, pager, next, jumper"
:total="50">
</el-pagination> -->
</div>
</div>
</template>
...
...
@@ -51,30 +44,28 @@
return
{
input
:
''
,
radio1
:
'
全部活动
'
,
sear
:
''
,
keysearch
:
''
,
tableData
:
[{
date
:
'
2016-05-02
'
,
name
:
'
王小虎
'
,
activityname
:
'
上海市
'
,
state
:
'
进行中
'
,
anticipate
:
'
22
'
,
},
{
date
:
'
2016-05-02
'
,
name
:
'
王小虎
'
,
activityname
:
'
上海市
'
,
state
:
'
进行中
'
,
anticipate
:
'
25
'
,
},
{
date
:
'
2016-05-02
'
,
name
:
'
王小虎
'
,
activityname
:
'
上海市
'
,
state
:
'
进行中
'
,
anticipate
:
'
12
'
,
},
{
date
:
'
2016-05-02
'
,
name
:
'
王小虎
'
,
activityname
:
'
上海市
'
,
state
:
'
进行中
'
,
anticipate
:
'
52
'
,
...
...
@@ -99,6 +90,13 @@
path
:
"
/detailactivity
"
,
query
:
{
titleid
:
index
},
});
},
filterHandler
(
value
,
row
,
column
)
{
const
property
=
column
[
'
property
'
];
return
row
[
property
]
===
value
;
},
search
()
{
this
.
sear
=
this
.
radio1
;
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录