|
|
|
@ -64,21 +64,26 @@
|
|
|
|
|
@on-row-dblclick="showDetail"
|
|
|
|
|
:columns="columns1"
|
|
|
|
|
:data="data">
|
|
|
|
|
<template slot-scope="{row}" slot="qrCodeAction">
|
|
|
|
|
<img :src="require('../../../static/img/qrCode-init.png')" @click="navigateCode(row)"
|
|
|
|
|
class="table-img-qr-code"/>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot="action" slot-scope="{row}">
|
|
|
|
|
<i-col span="12">
|
|
|
|
|
<Button ghost class="router-btn"
|
|
|
|
|
@click="() => {stop(row)}">终止</Button>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="12">
|
|
|
|
|
<Button ghost class="router-btn"
|
|
|
|
|
@click="() => {modify(row)}">修改</Button>
|
|
|
|
|
</i-col>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot-scope="{row}"
|
|
|
|
|
slot="qrCodeAction">
|
|
|
|
|
<img :src="require('../../../static/img/qrCode-init.png')"
|
|
|
|
|
@click="navigateCode(row)"
|
|
|
|
|
class="table-img-qr-code" />
|
|
|
|
|
</template>
|
|
|
|
|
<template slot="action"
|
|
|
|
|
slot-scope="{row}">
|
|
|
|
|
<i-col span="12">
|
|
|
|
|
<Button ghost
|
|
|
|
|
class="router-btn"
|
|
|
|
|
@click="() => {stop(row)}">终止</Button>
|
|
|
|
|
</i-col>
|
|
|
|
|
<i-col span="12">
|
|
|
|
|
<Button ghost
|
|
|
|
|
class="router-btn"
|
|
|
|
|
@click="() => {modify(row)}">修改</Button>
|
|
|
|
|
</i-col>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</Table>
|
|
|
|
|
<Page :total="totalSize"
|
|
|
|
|
:current="pageNum"
|
|
|
|
@ -103,21 +108,23 @@
|
|
|
|
|
:detail="detail"></planDetail>
|
|
|
|
|
</Modal>
|
|
|
|
|
<!-- 预览二维码 -->
|
|
|
|
|
<Modal
|
|
|
|
|
v-model="isShow"
|
|
|
|
|
:title="showStoreName"
|
|
|
|
|
:footer-hide="true"
|
|
|
|
|
width="230"
|
|
|
|
|
class-name="vertical-center-modal"
|
|
|
|
|
@on-ok="ok">
|
|
|
|
|
<div slot="header">
|
|
|
|
|
<p></p>
|
|
|
|
|
</div>
|
|
|
|
|
<p>{{this.showStoreName}}</p>
|
|
|
|
|
<img :src="qrCodeImage" style="width:200px;height:200px;"/>
|
|
|
|
|
<div style="text-align: center;">
|
|
|
|
|
<Button ghost type="primary" @click="download(rowData)">下载</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<Modal v-model="isShow"
|
|
|
|
|
:title="showStoreName"
|
|
|
|
|
:footer-hide="true"
|
|
|
|
|
width="230"
|
|
|
|
|
class-name="vertical-center-modal"
|
|
|
|
|
@on-ok="ok">
|
|
|
|
|
<div slot="header">
|
|
|
|
|
<p></p>
|
|
|
|
|
</div>
|
|
|
|
|
<p>{{this.showStoreName}}</p>
|
|
|
|
|
<img :src="qrCodeImage"
|
|
|
|
|
style="width:200px;height:200px;" />
|
|
|
|
|
<div style="text-align: center;">
|
|
|
|
|
<Button ghost
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="download(rowData)">下载</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -139,7 +146,7 @@ export default {
|
|
|
|
|
data () {
|
|
|
|
|
const _this = this;
|
|
|
|
|
return {
|
|
|
|
|
showStoreName:"",
|
|
|
|
|
showStoreName: "",
|
|
|
|
|
isShow: false,
|
|
|
|
|
loading: false,
|
|
|
|
|
isShowDetail: false,
|
|
|
|
@ -456,6 +463,7 @@ export default {
|
|
|
|
|
if (params.status == 0) {
|
|
|
|
|
params.status = undefined;
|
|
|
|
|
}
|
|
|
|
|
params.categoryCode = "promotion"
|
|
|
|
|
params.date = undefined;
|
|
|
|
|
http.get("/activity/instance/list", params).then(res => {
|
|
|
|
|
const data = res.data.results.this || {};
|
|
|
|
@ -496,7 +504,7 @@ export default {
|
|
|
|
|
debugger
|
|
|
|
|
let fileName = index.name + "-门店码";
|
|
|
|
|
http.downloadImg({
|
|
|
|
|
url: index.qrCodeAction
|
|
|
|
|
url: index.qrCodeAction
|
|
|
|
|
}, fileName, function (/*data*/) {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
@ -517,7 +525,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
.router-btn {
|
|
|
|
|
border: none;
|
|
|
|
|
color: #3496EB !important;
|
|
|
|
|
color: #3496eb !important;
|
|
|
|
|
margin-left: -15px;
|
|
|
|
|
}
|
|
|
|
|
.table-img-qr-code {
|
|
|
|
@ -526,7 +534,7 @@ export default {
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
}
|
|
|
|
|
button:hover {
|
|
|
|
|
background:inherit!important;
|
|
|
|
|
button:hover {
|
|
|
|
|
background: inherit !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|