Commit ba2c98b1 authored by zhengke's avatar zhengke

修改上传

parent 555d6086
......@@ -1579,9 +1579,9 @@
<el-button type="primary" icon="iconfont icon-img_delete_small" @click="DeleteAirticket(item.ID)"
style="margin-left:0;"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.TripItinerary==''?'行程单上传':'行程单下载'"
<el-tooltip class="item" effect="dark" :content="item.TripItinerary==null||item.TripItinerary==''?'行程单上传':'行程单下载'"
placement="top-start">
<el-button v-if="item.TripItinerary==''" type="primary" icon="iconfont icon-upload"
<el-button v-if="item.TripItinerary==null||item.TripItinerary==''" type="primary" icon="iconfont icon-upload"
style="margin-left:0;"
@click="outerVisible1=true,UploadItineraryMsg.ID=item.ID"></el-button>
<el-button v-else type="primary" icon="iconfont icon-xiazai2" style="margin-left:0;"
......@@ -2369,9 +2369,8 @@
let newArr = [];
newArr.push(item.file);
let path = "/Upload/Ticket/";
this.uploadFile(path, newArr, x => {
var str = x.res.requestUrls[0];
var fileUrl = this.$commonUtils.GetALiFileUrl(str);
this.UploadSelfFile(path, newArr, x => {
var fileUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.UploadItineraryMsg.TripItinerary = fileUrl;
this.apipost(
"AirTicket_Post_SetTripItinerary",
......@@ -2381,6 +2380,7 @@
this.Success("上传行程单成功!");
this.UploadItineraryMsg.ID = 0;
this.UploadItineraryMsg.TripItinerary = "";
this.getList();
}
this.outerVisible1 = false;
},
......
......@@ -196,7 +196,7 @@
let newArr = [];
newArr.push(item.file);
let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0];
var fileObj = this.$commonUtils.FileObject();
// fileObj.Url = this.$commonUtils.GetALiFileUrl(str);
......
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