|
@@ -146,7 +146,7 @@
|
|
|
<i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview"></i>
|
|
|
<i class="el-icon-delete" @click.stop="handleRemove"></i></span>
|
|
|
</span>
|
|
|
- <el-image ref="image" style="width:100%;height: 100%;" :src="productForm.pictures[0].id? $p + productForm.pictures[0].url:productForm.pictures[0].url" :preview-src-list="productForm.pictures"></el-image>
|
|
|
+ <el-image ref="image" style="width:100%;height: 100%;" :src="productForm.pictures[0].id? $p2 + productForm.pictures[0].url:productForm.pictures[0].url" :preview-src-list="productForm.pictures"></el-image>
|
|
|
</span>
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
@@ -182,7 +182,7 @@
|
|
|
<el-input v-model="categoryForm.licenseRate" placeholder="请输入参考许可费率(许可费率介于0-1之间)"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="图片 ">
|
|
|
- <el-upload ref="upload" action="#" :auto-upload="false" :on-change="handleChange" list-type="picture" :show-file-list="false">
|
|
|
+ <el-upload ref="upload" action="#" :auto-upload="false" :on-change="handleChange1" list-type="picture" :show-file-list="false">
|
|
|
<span v-if="categoryForm.pictures&&categoryForm.pictures.length>0" class="avatar">
|
|
|
<span class="deleteImg">
|
|
|
<span>
|
|
@@ -190,7 +190,7 @@
|
|
|
<i class="el-icon-delete" @click.stop="handleRemove"></i>
|
|
|
</span>
|
|
|
</span>
|
|
|
- <el-image ref="image" style="width:100%;height: 100%;" :src="categoryForm.pictures[0].id?$p + categoryForm.pictures[0].url:categoryForm.pictures[0].url" :preview-src-list="categoryForm.pictures"></el-image>
|
|
|
+ <el-image ref="image" style="width:100%;height: 100%;" :src="categoryForm.pictures[0].id?$p2 + categoryForm.pictures[0].url:categoryForm.pictures[0].url" :preview-src-list="categoryForm.pictures"></el-image>
|
|
|
</span>
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
@@ -276,7 +276,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
userinfo() {
|
|
|
- return this.$store.state.user.userinfo
|
|
|
+ return this.$store.state.admin.userinfo
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -521,7 +521,7 @@ export default {
|
|
|
previewPictures(row) {
|
|
|
if (row.pictures && row.pictures.length>0) {
|
|
|
var item = row.pictures[0]//图片每条信息
|
|
|
- var FileUrl = this.$p + row.pictures[0].url//每张图片的url
|
|
|
+ var FileUrl = this.$p2 + row.pictures[0].url//每张图片的url
|
|
|
var isPicture = 1
|
|
|
const router = this.$router.resolve({
|
|
|
path: '/checkFile',
|
|
@@ -613,7 +613,10 @@ export default {
|
|
|
this.$set(this.productForm,'pictures', [{url:file.url}])
|
|
|
this.file=[file.raw]
|
|
|
},
|
|
|
-
|
|
|
+ handleChange1(file, fileList) {
|
|
|
+ this.$set(this.categoryForm,'pictures', [{url:file.url}])
|
|
|
+ this.file=[file.raw]
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|