mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 21:18:05 +08:00
修改上传图片action值
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div>上传图片</div>
|
<div>上传图片</div>
|
||||||
<el-upload
|
<el-upload
|
||||||
action="http://localhost:8080/common/uploadOSS"
|
:action="actionUrl"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
:on-preview="handlePictureCardPreview"
|
:on-preview="handlePictureCardPreview"
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
:rules="rules"
|
:rules="rules"
|
||||||
ref="stationRef"
|
ref="stationRef"
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="站点名称" prop="stationName">
|
<el-form-item label="站点名称" prop="stationName">
|
||||||
<el-input v-model="station.stationName"></el-input>
|
<el-input v-model="station.stationName"></el-input>
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row>
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="matchCars" label="适配车辆类型">
|
<el-form-item prop="matchCars" label="适配车辆类型">
|
||||||
<el-select v-model="station.selectMatchCars" multiple placeholder="请选择">
|
<el-select v-model="station.selectMatchCars" multiple placeholder="请选择">
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="merchantAdminName" label="管理员">
|
<el-form-item prop="merchantAdminName" label="管理员">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="
|
:value="
|
||||||
station.merchantAdminName === null
|
station.merchantAdminName === null
|
||||||
? '无'
|
? '无'
|
||||||
: station.merchantAdminName
|
: station.merchantAdminName
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row>
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="stationLng" label="经度">
|
<el-form-item prop="stationLng" label="经度">
|
||||||
<el-input v-model="station.stationLng" disabled></el-input>
|
<el-input v-model="station.stationLng" disabled></el-input>
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="merchantName" label="运营商">
|
<el-form-item prop="merchantName" label="运营商">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="
|
:value="
|
||||||
station.merchantName === null ? '无' : station.merchantName
|
station.merchantName === null ? '无' : station.merchantName
|
||||||
"
|
"
|
||||||
disabled
|
disabled
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row>
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="construction" label="建设场所">
|
<el-form-item prop="construction" label="建设场所">
|
||||||
<el-select v-model="station.construction" placeholder="请选择">
|
<el-select v-model="station.construction" placeholder="请选择">
|
||||||
@@ -157,8 +157,7 @@
|
|||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="electricityPrice" label="充电费率">
|
<el-form-item prop="electricityPrice" label="充电费率">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="
|
:value="station.electricityPrice === null ? 0 : station.electricityPrice
|
||||||
station.electricityPrice === null ? 0 : station.electricityPrice
|
|
||||||
"
|
"
|
||||||
disabled
|
disabled
|
||||||
></el-input>
|
></el-input>
|
||||||
@@ -167,7 +166,7 @@
|
|||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item prop="servicePrice" label="服务费率">
|
<el-form-item prop="servicePrice" label="服务费率">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="station.servicePrice === null ? 0 : station.servicePrice"
|
:value="station.servicePrice === null ? 0 : station.servicePrice"
|
||||||
disabled
|
disabled
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -196,6 +195,7 @@ export default {
|
|||||||
dicts: ["station_type", "match_cars", "construction_type"],
|
dicts: ["station_type", "match_cars", "construction_type"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
actionUrl:process.env.VUE_APP_BASE_API+'/common/uploadOSS',
|
||||||
dialogVisible:false,
|
dialogVisible:false,
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: "Bearer " + getToken()
|
Authorization: "Bearer " + getToken()
|
||||||
@@ -299,7 +299,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSuccess(res, file) {
|
handleSuccess(res, file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user