|
@@ -474,7 +474,10 @@
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<a-form-item label="水印链接" v-if="watermarkUrl">
|
|
<a-form-item label="水印链接" v-if="watermarkUrl">
|
|
- <a-input v-model="watermarkUrl" type="text" style="width:200%" readonly />
|
|
|
|
|
|
+ <a-input v-model="watermarkUrl" type="text" style="width:200%" readonly />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <a-form-item label="生成水印" v-else>
|
|
|
|
+ <a-button type="primary" @click="createWater" :loading="creatLoading">生成</a-button>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
@@ -514,7 +517,7 @@
|
|
<img :src="bohui" alt="" style="width:100%">
|
|
<img :src="bohui" alt="" style="width:100%">
|
|
</a-modal>
|
|
</a-modal>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
</a-card>
|
|
</a-card>
|
|
</template>
|
|
</template>
|
|
@@ -658,7 +661,7 @@
|
|
name: [],
|
|
name: [],
|
|
size: []
|
|
size: []
|
|
},
|
|
},
|
|
- watermarkUrl: "",
|
|
|
|
|
|
+ watermarkUrl: null,
|
|
url: {
|
|
url: {
|
|
list: '/ctop/materialInfo/supplierList'
|
|
list: '/ctop/materialInfo/supplierList'
|
|
},
|
|
},
|
|
@@ -706,7 +709,8 @@
|
|
kuaishouData: null,
|
|
kuaishouData: null,
|
|
douyinData: null,
|
|
douyinData: null,
|
|
bohui: "",
|
|
bohui: "",
|
|
- bohuiShow: false
|
|
|
|
|
|
+ bohuiShow: false,
|
|
|
|
+ creatLoading: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
@@ -795,6 +799,20 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ createWater() {
|
|
|
|
+ this.creatLoading = true
|
|
|
|
+ getAction('/ctop/materialInfo/supplierWatermark', {
|
|
|
|
+ id: this.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ console.log(res)
|
|
|
|
+ this.watermarkUrl = res.result
|
|
|
|
+ this.creatLoading = false
|
|
|
|
+ } else {
|
|
|
|
+ this.creatLoading = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
showBoHui(item) {
|
|
showBoHui(item) {
|
|
this.bohui = item
|
|
this.bohui = item
|
|
this.bohuiShow = true
|
|
this.bohuiShow = true
|
|
@@ -839,6 +857,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
showDetail(item) {
|
|
showDetail(item) {
|
|
|
|
+ this.watermarkUrl = null
|
|
this.visibleDetail = true
|
|
this.visibleDetail = true
|
|
this.showUrl = item.url
|
|
this.showUrl = item.url
|
|
this.id = item.id
|
|
this.id = item.id
|
|
@@ -868,7 +887,9 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
- this.watermarkUrl = res.result.records[0].watermarkUrl
|
|
|
|
|
|
+ this.watermarkUrl = res.result.records.length > 0 ? res.result.records[0].watermarkUrl : null
|
|
|
|
+ } else {
|
|
|
|
+ this.watermarkUrl = null
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|