2024年8月13日 二维码生成
This commit is contained in:
parent
e0bf39f3fa
commit
2aa71d0e74
|
@ -20,11 +20,11 @@
|
|||
</el-input>
|
||||
</div>
|
||||
|
||||
<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="refresh">刷新
|
||||
<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="refresh">刷新
|
||||
</el-button>
|
||||
<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="chognzhi">重置
|
||||
<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="chognzhi">重置
|
||||
</el-button>
|
||||
<el-button style='margin-left:15px;' :disabled="!isAuth('couponYhq:add')" size="mini" type="primary"
|
||||
<el-button style="margin-left:15px;" :disabled="!isAuth('couponYhq:add')" size="mini" type="primary"
|
||||
icon="document" @click="addCoupon">添加</el-button>
|
||||
</div>
|
||||
<el-table v-loading="tableDataLoading" :data="tableData.list">
|
||||
|
@ -114,6 +114,9 @@
|
|||
<el-button size="mini" type="primary" @click="syCompile(scope.row)" style="margin: 3px;">
|
||||
收益明细
|
||||
</el-button>
|
||||
<el-button size="mini" type="primary" @click="genQrCode(scope.row)" style="margin: 3px;">
|
||||
生成二维码
|
||||
</el-button>
|
||||
<el-button size="mini" type="danger" :disabled="!isAuth('couponYhq:delete')"
|
||||
@click="shopdeletes(scope.row)" style="margin: 3px;">删除
|
||||
</el-button>
|
||||
|
@ -486,6 +489,17 @@
|
|||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog title="二维码" :visible.sync="showQrCodePage" center width="30%">
|
||||
<div v-loading="qrCodeLoading" style="text-align: center;">
|
||||
<template v-if="qrCodePath">
|
||||
<img :src="qrCodePath">
|
||||
</template>
|
||||
<template v-else>
|
||||
<el-empty description="暂无数据"></el-empty>
|
||||
</template>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
@ -592,6 +606,10 @@ import { serverPaths } from '@/utils/enumData'
|
|||
percentage2: 0,
|
||||
certification:[],
|
||||
imagePhoto:[],
|
||||
|
||||
showQrCodePage: false,
|
||||
qrCodePath: "",
|
||||
qrCodeLoading: false,
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1289,6 +1307,27 @@ import { serverPaths } from '@/utils/enumData'
|
|||
}
|
||||
})
|
||||
},
|
||||
genQrCode(row) {
|
||||
//打开弹窗,窗口里有二维码,或者空,
|
||||
|
||||
this.showQrCodePage = true;
|
||||
this.qrCodePath = "";
|
||||
this.qrCodeLoading = true;
|
||||
|
||||
let params = {
|
||||
id: row.consortiaId,
|
||||
};
|
||||
this.$http({ url: this.$http.adornUrl('consortia/genOrGetQrCodePath'), method: 'get', params: this.$http.adornParams(params) }).then(({ data }) => {
|
||||
if (data.code == 0) {
|
||||
//this.$message({ message: '加载成功', type: 'success', duration: 1500 })
|
||||
this.qrCodePath = data.imagePath;
|
||||
} else {
|
||||
this.$message({ message: data.msg, type: 'error', duration: 1500 })
|
||||
}
|
||||
this.qrCodeLoading = false;
|
||||
});
|
||||
|
||||
},
|
||||
handleAvatarSuccess1(file, fileList) {
|
||||
this.logo = file.data
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue