|
@@ -120,6 +120,14 @@
|
120
|
120
|
size="mini"
|
121
|
121
|
type="success"
|
122
|
122
|
@click="getRecordListInfo(scope.row.Id)">抽奖记录</el-button>
|
|
123
|
+ <el-button
|
|
124
|
+ v-if="scope.row.Status === 1 && new Date(scope.row.EndDate).getTime() > new Date().getTime()"
|
|
125
|
+ size="mini"
|
|
126
|
+ type="primary"
|
|
127
|
+ v-clipboard:copy="clientUrl + '/game/luckdraw/#/?lotteryId=' + scope.row.Id"
|
|
128
|
+ v-clipboard:success="onCopy"
|
|
129
|
+ v-clipboard:error="onError"
|
|
130
|
+ >点击复制链接</el-button>
|
123
|
131
|
</template>
|
124
|
132
|
</el-table-column>
|
125
|
133
|
</el-table>
|
|
@@ -331,7 +339,8 @@ export default {
|
331
|
339
|
computed: {
|
332
|
340
|
...mapState({
|
333
|
341
|
cases: x => x.app.cases.list,
|
334
|
|
- defaultCaseId: x => x.app.cases.default
|
|
342
|
+ defaultCaseId: x => x.app.cases.default,
|
|
343
|
+ clientUrl: x => x.app.clientUrl,
|
335
|
344
|
}),
|
336
|
345
|
CaseId: {
|
337
|
346
|
get () {
|
|
@@ -354,6 +363,18 @@ export default {
|
354
|
363
|
'openActivity',
|
355
|
364
|
'stopActivity',
|
356
|
365
|
]),
|
|
366
|
+ onCopy () {
|
|
367
|
+ this.$message({
|
|
368
|
+ type: 'success',
|
|
369
|
+ message: '复制成功!'
|
|
370
|
+ })
|
|
371
|
+ },
|
|
372
|
+ onError () {
|
|
373
|
+ this.$message({
|
|
374
|
+ type: 'error',
|
|
375
|
+ message: '复制失败!'
|
|
376
|
+ })
|
|
377
|
+ },
|
357
|
378
|
toOpenActivity (id) { // 开启活动
|
358
|
379
|
this.$confirm('确认开启此活动?', '提示', {
|
359
|
380
|
confirmButtonText: '确定',
|