|
@@ -67,8 +67,8 @@
|
|
|
<el-table-column label="二维码" align="center" prop="qrCodeUrl">
|
|
|
<template slot-scope="scope">
|
|
|
<el-popover placement="right" trigger="hover">
|
|
|
- <image-preview :src="getFullUrl(scope.row.qrCodeUrl)" style="width:200px;height:200px;"/>
|
|
|
- <image-preview slot="reference" :src="getFullUrl(scope.row.qrCodeUrl)" style="max-width: 50px;max-height: 100px"/>
|
|
|
+ <image-preview :src="scope.row.qrCodeUrl" style="width:200px;height:200px;"/>
|
|
|
+ <image-preview slot="reference" :src="scope.row.qrCodeUrl" style="max-width: 50px;max-height: 100px"/>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -238,16 +238,14 @@ export default {
|
|
|
var defaultDate = `${year}-${month}-${date}`
|
|
|
this.$set(this.form, 'releaseTime', defaultDate)
|
|
|
},
|
|
|
- getFullUrl(qrCodeUrl) {
|
|
|
- return `${this.serverUrl}${qrCodeUrl}`;
|
|
|
- },
|
|
|
handleQrCode(row) {
|
|
|
let that = this;
|
|
|
let params = {
|
|
|
id: row.id,
|
|
|
voiceName: row.voiceName,
|
|
|
- voiceUrl: this.serverUrl + "/details?id=" + row.id,
|
|
|
+ voiceUrl: this.serverUrl + "/details/?id=" + row.id,
|
|
|
}
|
|
|
+ console.log("params",params)
|
|
|
createQrCode(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
that.$modal.msgSuccess("生成成功");
|