Commit fea66cef authored by zhengke's avatar zhengke

修改

parent b0204f2f
...@@ -64,6 +64,15 @@ ...@@ -64,6 +64,15 @@
<el-option v-for="item in ArrivalTypeArray" :value="item.ID" :key="item.ID" :label="item.Name"> <el-option v-for="item in ArrivalTypeArray" :value="item.ID" :key="item.ID" :label="item.Name">
</el-option> </el-option>
</el-select> </el-select>
<el-upload v-if="trafficObj.trafficIntroduce.TrafficType==3" class="St_uploadContent"
:http-request="uploadFileBtn"
:multiple="false"
:show-file-list="false"
action
>
<span @click='getItemTraffic()'>上传</span>
</el-upload>
<el-input class="w180" v-if="trafficObj.trafficIntroduce.TrafficType==4" placeholder="距离预计用时" v-model="trafficObj.trafficIntroduce.TrafficContent"></el-input> <el-input class="w180" v-if="trafficObj.trafficIntroduce.TrafficType==4" placeholder="距离预计用时" v-model="trafficObj.trafficIntroduce.TrafficContent"></el-input>
</div> </div>
<div v-if="CurrentDayNum!=totalDayNum" class="St_current" style="margin:10px 0"> <div v-if="CurrentDayNum!=totalDayNum" class="St_current" style="margin:10px 0">
...@@ -137,6 +146,7 @@ ...@@ -137,6 +146,7 @@
narrative: true //叙述, narrative: true //叙述,
}, },
checkedIndex:'', checkedIndex:'',
checkTraffic:0,
//交通类型数组 //交通类型数组
ArrivalTypeArray: [{ ArrivalTypeArray: [{
ID: 1, ID: 1,
...@@ -169,6 +179,9 @@ ...@@ -169,6 +179,9 @@
getItem(index) { getItem(index) {
this.checkedIndex = index this.checkedIndex = index
}, },
getItemTraffic(){
this.checkTraffic=1;
},
//上传图片 //上传图片
uploadFileBtn(file) { uploadFileBtn(file) {
let that = this let that = this
...@@ -177,8 +190,13 @@ ...@@ -177,8 +190,13 @@
let path = '/Upload/DMC' let path = '/Upload/DMC'
this.$message.info('上传中...') this.$message.info('上传中...')
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.ScenicArray[this.checkedIndex].TrafficImage = this.domainManager() if(this.checkTraffic==1){
.ViittoFileUrl + x.data.FilePath this.trafficObj.trafficIntroduce.TrafficImage = this.domainManager()
.ViittoFileUrl + x.data.FilePath;
}else{
this.ScenicArray[this.checkedIndex].TrafficImage = this.domainManager()
.ViittoFileUrl + x.data.FilePath;
}
this.$message.success(x.data.Message) this.$message.success(x.data.Message)
this.$forceUpdate() this.$forceUpdate()
}) })
......
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