Commit 215fc934 authored by lixy's avatar lixy

上传图片域名调整

parent 7e2c7251
......@@ -76,7 +76,7 @@
</el-form-item>
<el-form-item label="数据权限" prop="dataState">
<el-checkbox-group v-model="form.dataLimit" >
<el-checkbox v-for="item in dataOptions" :label="item.id" >{{item.val}}</el-checkbox>
<el-checkbox v-for="item in dataOptions" :label="item.id" :key="item">{{item.val}}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="描述">
......
......@@ -238,7 +238,6 @@
},
listLoading: true,
tableKey: 0,
BASE_API: process.env.BASE_API,
query: {
limit: 10,
page: 1,
......
......@@ -95,7 +95,7 @@
<el-form-item label="弹窗图片" prop="background" :style="{display:'block'}">
<el-upload
class="avatar-uploader"
:action="'https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload'"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:headers="getHeaderWithToken"
:on-success="handleAvatarSuccess">
......@@ -106,7 +106,7 @@
<el-form-item label="按钮图片" prop="buttonImages" :style="{display:'block'}">
<el-upload
class="avatar-uploader"
:action="'https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload'"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:headers="getHeaderWithToken"
:on-success="handleBtnSuccess">
......
......@@ -87,7 +87,7 @@
<el-form-item label="图片" prop="picture" :style="{display:'block'}">
<el-upload
class="avatar-uploader"
:action="'https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload'"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:headers="getHeaderWithToken"
:on-success="handleAvatarSuccess">
......
......@@ -77,7 +77,7 @@
<el-form-item label="banner图" prop="cover" :style="{display:'block'}">
<el-upload
class="avatar-uploader"
:action="'https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload'"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:headers="getHeaderWithToken"
:on-success="handleAvatarSuccess">
......
......@@ -55,7 +55,7 @@
<el-form-item label="标签底图" :style="{display:'block'}">
<el-upload
class="avatar-uploader"
:action="'https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload'"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:headers="getHeaderWithToken"
:on-success="handleAvatarSuccess">
......
......@@ -55,7 +55,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:on-success="handleAvatarSuccess"
list-type="picture">
......@@ -67,7 +67,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleRemove"
:file-list="fileList2"
:on-success="handleBannerSuccess"
......@@ -155,6 +155,7 @@
},
data() {
return {
BASE_API: process.env.BASE_API,
defaultMsg: '这里是UE测试',
config: {
initialFrameWidth: null,
......
......@@ -153,7 +153,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:on-success="handleAvatarSuccess"
list-type="picture">
......
......@@ -121,7 +121,7 @@
</el-table-column>
<el-table-column width="150" align="center" label="家庭成员">
<template scope="scope">
<el-row v-for="item in scope.row.family">
<el-row v-for="item in scope.row.family" :key="item">
{{item.name}} - {{item.relationship}}
</el-row>
</template>
......@@ -232,7 +232,7 @@
</el-form-item>
<el-form-item label="家庭成员" prop="family">
<el-row v-for="(item, index) in form.family">
<el-row v-for="(item, index) in form.family" :key="item">
<el-col :span="9">
<el-input v-model="item.name" placeholder="成员名称"></el-input>
</el-col>
......
......@@ -3,7 +3,7 @@
<!-- 图片上传组件辅助-->
<el-upload
class="avatar-uploader"
:action="'https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload'"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:headers="getHeaderWithToken"
:before-upload="beforeUpload"
......@@ -79,6 +79,7 @@
data() {
return {
BASE_API: process.env.BASE_API,
content: this.value,
quillUpdateImg: false, // 根据图片上传状态来确定是否显示loading动画,刚开始是false,不显示
quill: undefined,
......
......@@ -57,7 +57,7 @@
<el-col>
<el-form-item label="违章截图" :style="{display:'block'}">
<!--<el-upload-->
<!--action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"-->
<!--:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"-->
<!--list-type="picture-card"-->
<!--:headers="getHeaderWithToken"-->
<!--:on-success="handleSuccess"-->
......@@ -70,7 +70,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleRemove"
:file-list="fileList2"
:on-success="handleSuccess"
......@@ -126,6 +126,7 @@
},
data() {
return {
BASE_API: process.env.BASE_API,
price: undefined,//违章罚款金额
isVisible: false,
fileList2:[],//违章截图
......
......@@ -138,7 +138,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:on-success="handleAvatarSuccess"
:on-progress="uploadProcess"
......@@ -152,7 +152,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleRemove"
:file-list="fileList2"
:on-success="handleBannerSuccess"
......@@ -256,6 +256,7 @@ import UE from '../../modal/Ueditor';//百度ue富文本
},
data() {
return {
BASE_API: process.env.BASE_API,
config: {
initialFrameWidth: null,
initialFrameHeight: 350
......
......@@ -72,7 +72,7 @@
<el-form-item label="封面图" :style="{display:'block'}">
<el-upload
class="avatar-uploader"
:action="'https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload'"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:headers="getHeaderWithToken"
:on-success="handleAvatarSuccess">
......@@ -84,7 +84,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleRemove"
:file-list="fileList2"
:on-success="handleBannerSuccess"
......@@ -156,11 +156,11 @@
},
data() {
return {
BASE_API: process.env.BASE_API,
isCreate: false,//是否点击了确定按钮
isExist: false,//标签是否已存在
tableKey:0,
modalTitle: "创建",
BASE_API: process.env.BASE_API,
bannerDialogVisible: false,//添加、编辑弹框
showLoadingBody: false,
fileList2: [],//轮播图
......
......@@ -106,7 +106,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false"
:on-success="handleAvatarSuccess"
list-type="picture">
......
......@@ -5,9 +5,9 @@
element-loading-spinner="el-icon-loading" :visible.sync="dialogVisible">
<el-form :model="selected" :inline="true" ref="form4Selected" label-width="100px">
<el-collapse v-model="activeTypes">
<el-collapse-item v-for=" (val, key, index) in allAccItem " :title="getTypeName(key)" :name="key">
<el-collapse-item v-for=" (val, key, index) in allAccItem " :title="getTypeName(key)" :name="key" :key="item">
<el-row :gutter="10">
<el-col v-for=" item in val " :span="8" :style="{padding: '2px'}">
<el-col v-for=" item in val " :span="8" :style="{padding: '2px'}" :key="item">
<el-col :span="16" :style="{textAlign: 'center'}">
<span :style="{padding: '3px 10px', fontSize: '14px' ,display: 'inline-block'}">{{item.name}}</span>
</el-col>
......
......@@ -441,7 +441,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleDepartureRemove"
:file-list="departurePicList"
:on-success="handleDepartureSuccess"
......@@ -495,7 +495,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleArrivalRemove"
:file-list="arrivalPicList"
:on-success="handleArrivalSuccess"
......@@ -520,7 +520,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleRemove"
:file-list="fileList2"
:on-success="handleSuccess"
......@@ -606,6 +606,7 @@
},
data() {
return {
BASE_API: process.env.BASE_API,
departureFormrules:{
checkMan:{
required: true,
......
......@@ -86,7 +86,7 @@
<el-form-item label="房车配置"></el-form-item>
<el-row>
<el-col :span="8" v-for="(item, index) in labelList">
<el-col :span="8" v-for="(item, index) in labelList" :key="item">
<el-form-item>
<span style="width: 150px;text-align:right;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;padding-right: 10px;">{{item.parent.name}}</span>
<el-input v-model="item.selectChild" readonly icon="edit" @click="editConfig(item)" style="width: 70%;"></el-input>
......@@ -126,7 +126,7 @@
</el-row>
<el-form-item label="房车参数">
<el-button size="small" class="el-button el-button--primary" type="button" icon="plus" @click="addModelParam()">添加</el-button>
<el-col v-for="(item, index) in form.modelParam">
<el-col v-for="(item, index) in form.modelParam" :key="item.id">
<el-form-item label="参数名称" style="margin: 10px 5px;">
<el-input style="width: 30%;" v-model="item.key"></el-input>
<el-input style="width: 30%;" v-model="item.val"></el-input>
......@@ -138,7 +138,7 @@
<el-upload
class="upload-demo"
:headers="getHeaderWithToken"
action="https://xxtest.upyuns.com/api/universal/file/app/unauth/admin/upload"
:action="BASE_API+'/api/universal/file/app/unauth/admin/upload'"
:on-remove="handleRemove"
:file-list="fileList2"
:on-success="handleBannerSuccess"
......@@ -241,6 +241,7 @@ import UE from '../../modal/Ueditor';//百度ue富文本
},
data() {
return {
BASE_API: process.env.BASE_API,
config: {
initialFrameWidth: null,
initialFrameHeight: 350
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment