|
@@ -5,9 +5,6 @@
|
|
|
<div class="filter-container">
|
|
|
<el-input clearable class="filter-item" style="width: 200px;" placeholder="活动名称"
|
|
|
v-model="listQuery.title"></el-input>
|
|
|
-
|
|
|
- <!-- <el-date-picker class="filter-item" v-model="listQuery.createTime" type="datetime" placeholder="创建时间">
|
|
|
- </el-date-picker> -->
|
|
|
<el-date-picker
|
|
|
class="filter-item"
|
|
|
value-format="yyyy-MM-dd"
|
|
@@ -43,9 +40,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
|
|
|
<el-button v-if="scope.row.status == 0" type="success" size="small"
|
|
|
- @click="changeState(scope.row.welfareId, 1)">开启</el-button>
|
|
|
+ @click="changeState(scope.row.actId, 1)">开启</el-button>
|
|
|
<el-button v-if="scope.row.status == 1" type="warning" size="small"
|
|
|
- @click="changeState(scope.row.welfareId, 0)">关闭</el-button>
|
|
|
+ @click="changeState(scope.row.actId, 0)">关闭</el-button>
|
|
|
<el-button type="danger" size="mini" @click="handleDelete(scope.row.welfareId, -1)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -178,7 +175,7 @@ export default {
|
|
|
],
|
|
|
content: [{ required: true, message: "内容不能为空", trigger: "blur" }],
|
|
|
},
|
|
|
- fileImgUrl: "https://xiaoyou.dgtis.com/admin/storage/create",
|
|
|
+ fileImgUrl: this.upLoadUrl,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -260,7 +257,7 @@ export default {
|
|
|
activityUrl: '',
|
|
|
startTimeStr: '',
|
|
|
endTimeStr: '',
|
|
|
- participants: [],
|
|
|
+ participants: undefined,
|
|
|
content: '',
|
|
|
images: [],
|
|
|
};
|
|
@@ -337,8 +334,8 @@ export default {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
- changeState(welfareId, index) {
|
|
|
- activityState({ welfareId: welfareId, status: index }).then(response => {
|
|
|
+ changeState(actId, index) {
|
|
|
+ activityState({ actId: actId, status: index }).then(response => {
|
|
|
this.$notify({
|
|
|
title: '成功',
|
|
|
message: '活动状态修改成功',
|