From 1037ab6df799bd49c0f10adf1c048cd5ccc7e3e8 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 06 Apr 2021 11:19:46 +0800 Subject: [PATCH] Merge branch 'hive2.0' into score_shop --- zq-erp/src/main/resources/templates/views/admin/activity/activity-list.html | 40 +++++++++++++++++++++++----------------- 1 files changed, 23 insertions(+), 17 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/activity/activity-list.html b/zq-erp/src/main/resources/templates/views/admin/activity/activity-list.html index 8487de0..697105b 100644 --- a/zq-erp/src/main/resources/templates/views/admin/activity/activity-list.html +++ b/zq-erp/src/main/resources/templates/views/admin/activity/activity-list.html @@ -32,20 +32,6 @@ margin: 0px 0px 10px 0px; text-align: right; } - - .box-card { - width: 240px; - border-radius: 5px; - color: #ffffff; - padding: 2px 0px; - margin-right: 20px; - cursor: pointer; - float: left; - text-align: center; - } - .el-card__body { - padding: 0px; - } </style> </head> @@ -136,11 +122,11 @@ </el-table-column> <el-table-column label="操作" width="400"> <template slot-scope="scope"> - <el-row style="display:flex;"> + <el-row style="display:flex;" v-if="scope.row.actType == 4"> <el-button type="primary" v-if="scope.row.actStatus == 1" size="mini" @click="beReady(scope.row)">发布</el-button> - <el-button type="primary" v-if="[1,2,3].includes(scope.row.actStatus)" size="mini">修改</el-button> + <el-button type="primary" v-if="[1,2,3].includes(scope.row.actStatus)" @click="beUpdate(scope.row)" size="mini">修改</el-button> <el-button type="primary" v-if="scope.row.actStatus == 3" size="mini">推广</el-button> - <el-button type="primary" v-if="[3,4,5].includes(scope.row.actStatus)" size="mini">活动统计</el-button> + <el-button type="primary" v-if="[3,4,5].includes(scope.row.actStatus)" @click="openSignReceive(scope.row)" size="mini">活动统计</el-button> <el-button type="primary" v-if="scope.row.actStatus == 3" @click="beClose(scope.row)" size="mini">关闭</el-button> <el-button type="danger" v-if="scope.row.actStatus != 5" size="mini" @click="delRow(scope.row)">删除</el-button> </el-row> @@ -211,6 +197,26 @@ let _this = this; _this.loadActivitysList(); }, + //修改 + beUpdate(row){ + layer.full(layer.open({ + type: 2, + title: "修改", + maxmin: true, + area: [MUI.SIZE_L, '500px'], + content : [ basePath + '/admin/redirect/activity/activity-sign-update?actId=' + row.id] + })); + }, + //活动统计 + openSignReceive(row){ + layer.full(layer.open({ + type: 2, + title: "活动统计", + maxmin: true, + area: [MUI.SIZE_L, '500px'], + content : [ basePath + '/admin/redirect/activity/activity-sign-receive?actId=' + row.id] + })); + }, //发布 beReady(row){ let _this = this; -- Gitblit v1.9.1