增加明确上传图片路径

master
1020109007@qq.com 2022-05-01 08:59:50 +08:00
parent 99708d9743
commit 6545d2a75f
4 changed files with 32 additions and 19 deletions

2
.gitignore vendored
View File

@ -1,6 +1,7 @@
.DS_Store
node_modules/
dist/
segchk_vue/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
@ -22,3 +23,4 @@ selenium-debug.log
package-lock.json
yarn.lock
dist.zip
segchk_vue.zip

BIN
dist.zip

Binary file not shown.

View File

@ -117,7 +117,7 @@ export default {
computed: {
// url
getUploadUrl() {
console.log('getUploadUrl--->' + this.uploadUrl)
// console.log('getUploadUrl--->' + this.uploadUrl)
this.uploadImgUrl = process.env.VUE_APP_BASE_API + "/common/" + this.uploadUrl;
return process.env.VUE_APP_BASE_API + "/common/" + this.uploadUrl;
},
@ -142,7 +142,7 @@ export default {
},
// loading
handleBeforeUpload(file) {
console.log('handleBeforeUpload--->' + this.uploadUrl)
// console.log('handleBeforeUpload--->' + this.uploadUrl)
let url = process.env.VUE_APP_BASE_API + "/common/" + this.uploadUrl
this.uploadImgUrl = url
let isImg = false;

View File

@ -501,79 +501,79 @@
<el-table-column label="序号" align="center" prop="index" width="50"/>
<el-table-column label="商家营业执照图1路径" prop="storeCertificate1" width="200">
<template slot-scope="scope">
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCertificate1" aria-placeholder="1" />
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCertificate1" aria-placeholder="1" :upload-url="store_cert"/>
</template>
</el-table-column>
<el-table-column label="商家营业执照图2路径" prop="storeCertificate2" width="200">
<template slot-scope="scope">
<imageUpload v-model="scope.row.storeCertificate2" aria-placeholder="2" :limit="1"/>
<imageUpload v-model="scope.row.storeCertificate2" aria-placeholder="2" :limit="1" :upload-url="store_cert"/>
</template>
</el-table-column>
<el-table-column label="商家图标路径" prop="storeIcon" width="200">
<template slot-scope="scope">
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeIcon" aria-placeholder=""/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeIcon" aria-placeholder="" :upload-url="store_smallicon"/>
</template>
</el-table-column>
<el-table-column label="商家大图标路径" prop="storeGificon" width="200">
<template slot-scope="scope">
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeGificon" aria-placeholder=""/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeGificon" aria-placeholder="" :upload-url="store_bigicon"/>
</template>
</el-table-column>
<el-table-column label="商家轮播图1路径" prop="storeCarousel1" width="200">
<template slot-scope="scope">
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel1" aria-placeholder="1"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel1" aria-placeholder="1" :upload-url="store_banner"/>
</template>
</el-table-column>
<el-table-column label="商家轮播图2路径" prop="storeCarousel2" width="200">
<template slot-scope="scope">
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel2" aria-placeholder="2"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel2" aria-placeholder="2" :upload-url="store_banner"/>
</template>
</el-table-column>
<el-table-column label="商家轮播图3路径" prop="storeCarousel3" width="200">
<template slot-scope="scope">
<!-- <el-input v-model="scope.row.storeCarousel3" placeholder="请输入商家轮播图3路径" />-->
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel3" aria-placeholder="3"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel3" aria-placeholder="3" :upload-url="store_banner"/>
</template>
</el-table-column>
<el-table-column label="商家轮播图4路径" prop="storeCarousel4" width="200">
<template slot-scope="scope">
<!-- <el-input v-model="scope.row.storeCarousel4" placeholder="请输入商家轮播图4路径" />-->
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel4" aria-placeholder="4"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel4" aria-placeholder="4" :upload-url="store_banner"/>
</template>
</el-table-column>
<el-table-column label="商家轮播图5路径" prop="storeCarousel5" width="200">
<template slot-scope="scope">
<!-- <el-input v-model="scope.row.storeCarousel5" placeholder="请输入商家轮播图5路径" />-->
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel5" aria-placeholder="5"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel5" aria-placeholder="5" :upload-url="store_banner"/>
</template>
</el-table-column>
<el-table-column label="商家轮播图6路径" prop="storeCarousel6" width="200">
<template slot-scope="scope">
<!-- <el-input v-model="scope.row.storeCarousel6" placeholder="请输入商家轮播图6路径" />-->
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel6" aria-placeholder="6"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeCarousel6" aria-placeholder="6" :upload-url="store_banner"/>
</template>
</el-table-column>
<el-table-column label="商家环境图1" prop="storeEnv1" width="200">
<template slot-scope="scope">
<!-- <el-input v-model="scope.row.storeEnv1" placeholder="请输入商家环境图1" />-->
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv1" aria-placeholder="1"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv1" aria-placeholder="1" :upload-url="store_env"/>
</template>
</el-table-column>
<el-table-column label="商家环境图2" prop="storeEnv2" width="200">
<template slot-scope="scope">
<!-- <el-input v-model="scope.row.storeEnv2" placeholder="请输入商家环境图2" />-->
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv2" aria-placeholder="2"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv2" aria-placeholder="2" :upload-url="store_env"/>
</template>
</el-table-column>
<el-table-column label="商家环境图3" prop="storeEnv3" width="200">
<template slot-scope="scope">
<!-- <el-input v-model="scope.row.storeEnv3" placeholder="请输入商家环境图3" />-->
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv3" aria-placeholder="3"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv3" aria-placeholder="3" :upload-url="store_env"/>
</template>
</el-table-column>
<el-table-column label="商家环境图4" prop="storeEnv4" width="200">
<template slot-scope="scope">
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv4" aria-placeholder="4"/>
<imageUpload :file-size=1 :limit=1 v-model="scope.row.storeEnv4" aria-placeholder="4" :upload-url="store_env"/>
</template>
</el-table-column>
<!--<el-table-column label="创建或修改时间" prop="modTime" width="150">
@ -647,7 +647,13 @@
</el-table-column>
</el-table>
<el-divider content-position="center">商家标签管理信息</el-divider>
<el-divider content-position="center">
<el-tooltip content="添加标签时,如果希望用户可以使用会员卡标签搜索到,请将商家支持的会员卡也添加进来" placement="top">
<i class="el-icon-warning-outline"></i>
</el-tooltip>
商家标签管理信息
</el-divider>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddSegchkStoreLableMgt"></el-button>
@ -869,6 +875,11 @@ export default {
modTime: null
},
store_details: 'store_details',
store_cert: 'store_cert',
store_smallicon: 'store_smallicon',
store_bigicon: 'store_bigicon',
store_banner: 'store_banner',
store_env: 'store_env',
//
segchk_charge_cardList: [],
//