mirror of
https://gitee.com/ZhongBangKeJi/crmeb_java.git
synced 2026-04-24 20:28:33 +08:00
v1.1
1、提货点 2、客服(腾讯云智服) 3、接口权限控制 4、复制第三方商品可配置 4、优化附件上传配置 5、手机端核销订单 6、手机端订单统计、订单管理 7、短信优化 8、订阅消息全自动化
This commit is contained in:
@@ -8,60 +8,60 @@
|
||||
:show-file-list="false"
|
||||
multiple
|
||||
>
|
||||
<div class="upLoadPicBox" v-if="url">
|
||||
<div v-if="url" class="upLoadPicBox">
|
||||
<div class="upLoad">
|
||||
<i class="el-icon-document-checked cameraIconfont" />
|
||||
</div>
|
||||
</div>
|
||||
<el-button size="mini" type="primary" v-else>点击上传</el-button>
|
||||
<el-button v-else size="mini" type="primary">点击上传</el-button>
|
||||
</el-upload>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { fileFileApi } from '@/api/systemSetting'
|
||||
import { getToken } from '@/utils/auth'
|
||||
export default {
|
||||
name: "uploadFile",
|
||||
data() {
|
||||
return {
|
||||
myHeaders: {'X-Token': getToken()},
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
props:{
|
||||
value: {}
|
||||
},
|
||||
beforeMount(){
|
||||
if(this.value){
|
||||
this.url = this.value
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 上传
|
||||
handleUploadForm(param){
|
||||
const formData = new FormData()
|
||||
const data = {
|
||||
model: this.$route.path.split("/")[1],
|
||||
pid: 10
|
||||
}
|
||||
formData.append('multipart', param.file)
|
||||
let loading = this.$loading({
|
||||
lock: true,
|
||||
text: '上传中,请稍候...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
fileFileApi(formData, data).then(res => {
|
||||
loading.close()
|
||||
this.url = res.url
|
||||
this.$emit('input', this.url)
|
||||
this.$message.success('上传成功')
|
||||
}).catch(res => {
|
||||
loading.close()
|
||||
})
|
||||
import { fileFileApi } from '@/api/systemSetting'
|
||||
import { getToken } from '@/utils/auth'
|
||||
export default {
|
||||
name: 'UploadFile',
|
||||
props: {
|
||||
value: {}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
myHeaders: { 'X-Token': getToken() },
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
if (this.value) {
|
||||
this.url = this.value
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 上传
|
||||
handleUploadForm(param) {
|
||||
const formData = new FormData()
|
||||
const data = {
|
||||
model: this.$route.path.split('/')[1],
|
||||
pid: 10
|
||||
}
|
||||
formData.append('multipart', param.file)
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '上传中,请稍候...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
fileFileApi(formData, data).then(res => {
|
||||
loading.close()
|
||||
this.url = res.url
|
||||
this.$emit('input', this.url)
|
||||
this.$message.success('上传成功')
|
||||
}).catch(res => {
|
||||
loading.close()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user