|
@@ -92,7 +92,6 @@
|
|
|
<el-table-column :label="$t('goodList.Name')" align="center" prop="name" />
|
|
|
<el-table-column :label="$t('goodList.image')" align="center" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
- <!-- imagePath + -->
|
|
|
<img class="list-img" :src="scope.row.logo" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -224,7 +223,7 @@
|
|
|
:headers="uploadHeader"
|
|
|
:on-success="handleUploadSuccess"
|
|
|
>
|
|
|
- <img v-if="this.form.logo" :src="this.form.logo" class="list-img" />
|
|
|
+ <img v-if="form.logo" :src="form.logo" class="list-img" />
|
|
|
<i class="el-icon-plus"></i>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
@@ -365,12 +364,12 @@ export default {
|
|
|
handleStatusChange(row) {
|
|
|
let text = row.status == 'A' ? this.$t('goodList.enable') : this.$t('goodList.disable')
|
|
|
this.$modal
|
|
|
- .confirm(this.$t('goodList.confirmGoods', { text: text, name: row.name }))
|
|
|
+ .confirm(this.$t('goodList.confirmGoods', { text: text, name: row.name }))
|
|
|
.then(function () {
|
|
|
return updateGoodsCateStatus(row.id, row.status)
|
|
|
})
|
|
|
.then(() => {
|
|
|
- this.$modal.msgSuccess(this.$t('goodList.success', { text: text }))
|
|
|
+ this.$modal.msgSuccess(this.$t('goodList.success', { text: text }))
|
|
|
})
|
|
|
.catch(function () {
|
|
|
row.status = row.status === 'N' ? 'A' : 'N'
|
|
@@ -441,7 +440,7 @@ export default {
|
|
|
const id = row.id || this.ids
|
|
|
getGoodsCateInfo(id).then((response) => {
|
|
|
this.form = response.data.cateInfo
|
|
|
- this.uploadFiles = [{ url: response.data.imagePath + this.form.logo, status: 'finished' }]
|
|
|
+ this.uploadFiles = [{ url: this.form.logo, status: 'finished' }]
|
|
|
this.open = true
|
|
|
this.title = this.$t('goodList.editProductCategory')
|
|
|
})
|