Commit 631ea768 authored by youjie's avatar youjie

no message

parent 6ea03194
......@@ -7,7 +7,6 @@
:isDeletePage="FeatureData.isDeletePage" :pagesType="3" @toAddPages="toAddPages"
@toDeletePages="toDeletePages">
</FeatureControls>
<input type="file" style="display:none" :id="'GouDetaFile_'+(index * 2 + 1)+'_0'" @change="uploadpic">
</div>
</div>
<div class="UpgradedVersionDetails-box column" v-for="(item,i) in FeatureData.dataObj.SubList">
......@@ -17,6 +16,7 @@
<FeatureControls v-if="FeatureData" :index="index" :FeatureData="FeatureData" :ControlsType="'row'" isImg="1" :isUploadImg="true"
:isSelectImg="true" @toUploadImg="UploadImg(i)" @toSelectImg="SelectImg(i)" @toAddImg="AddImg"
@toDeleteImg="DeleteImg(i)" :x="312" :y="312" />
<input type="file" style="display:none" :id="'GouDetaFile_'+(FeatureData * 2 + 1)+'_'+i+'_'+index" @change="uploadpic">
</div>
<div class="UpgradedVersionDetails-imgOne relative bjE6"
:id="'viewSpotBox_' + (FeatureData * 4) +'_deta_'+i+index">
......@@ -172,7 +172,7 @@
UploadImg(index) {
this.MasterMapIndex = index
document.querySelector(`#GouDetaFile_${(this.index * 2 + 1)}_0`).click();
document.querySelector(`#GouDetaFile_${(this.FeatureData * 2 + 1)}_${index}_${this.index}`).click();
},
uploadpic(e) {
let that = this;
......@@ -190,6 +190,8 @@
let allPath = that.domainManager().ViittoFileUrl + x.data.FilePath;
let i = e.target.id.split("_")[2];
that.FeatureData.dataObj.SubList[that.MasterMapIndex].ImgList[0].url = allPath
that.FeatureData.dataObj.SubList[that.MasterMapIndex].ImgList[0].x = 0
that.FeatureData.dataObj.SubList[that.MasterMapIndex].ImgList[0].y = 0
that.$message.success('上传成功');
});
};
......@@ -223,6 +225,8 @@
getDMCimg(selectImgArr) {
let Path = selectImgArr[0].Path
this.FeatureData.dataObj.SubList[this.MasterMapIndex].ImgList[0].url = Path
this.FeatureData.dataObj.SubList[this.MasterMapIndex].ImgList[0].x = 0
this.FeatureData.dataObj.SubList[this.MasterMapIndex].ImgList[0].y = 0
this.isShowScenicImg = false
}
},
......
......@@ -165,7 +165,7 @@
let i = e.target.id.split("_")[2];
that.FeatureItem.dataObj.ImgList[0].url = allPath
that.FeatureItem.dataObj.ImgList[0].x = 0
that.FeatureItem.dataObj.ImgList[0].y = y
that.FeatureItem.dataObj.ImgList[0].y = 0
that.$message.success('上传成功');
});
};
......
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