Commit e2e74903 authored by zhengke's avatar zhengke

修复提交 等待时间过长

parent 11cc8a87
......@@ -104,9 +104,7 @@
<FullscreenSpin :loading="exporting" tip="正在导入..." />
<Psd-Upload :visible="psdVisibleStatus" @closed="psdVisibleStatus=false"></Psd-Upload>
</div>
<!-- ConfigId&& -->
<!-- opacity: 0;position: absolute;left: 100px;top: 0;bottom: 0;overflow: auto;z-index: -1; -->
<div style="position: relative;z-index: -1;">
<div v-if="ConfigId" style="opacity: 0;position: absolute;left: 100px;top: 0;bottom: 0;overflow: auto;z-index: -1;">
<div class="export-img-dialog">
<div class="thumbnails-view">
<div class="thumbnails" v-for="slide in slides" ref="FeatureImgRef">
......@@ -361,6 +359,7 @@ const SetTripTemplateConfig = async () => {
}
// 保存
const setTemplate = async () =>{
datas.loading = true
if(SourceLoading.value) setNewDatasList(datas.DataSource)
await uploadImageHandler()
......@@ -377,6 +376,7 @@ const setTemplate = async () =>{
})
if(CoverImg&&CoverImg.value) queryObj.value.CoverImg = CoverImg.value
else {
datas.loading = false
mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA)
return ElMessage({
showClose: true,
......@@ -388,6 +388,7 @@ const setTemplate = async () =>{
||queryObj.value.CoverImg==''
||queryObj.value.CountryName==''||queryObj.value.SeasonName==''
){
datas.loading = false
mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA)
return ElMessage({
showClose: true,
......@@ -405,6 +406,7 @@ const setTemplate = async () =>{
}
for(let i=0;i<slides.value.length;i++){
if(slides.value[i].elements.length==0) {
datas.loading = false
mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA)
return ElMessage({
showClose: true,
......@@ -416,7 +418,7 @@ const setTemplate = async () =>{
// console.log(arr,'-------tttt')
queryObj.value.TempData = JSON.stringify(arr)
datas.loading = true
if(model.value&&userInfo.value.IsEditTripTemplate==1){
await SetTripTemplateSlide()
}
......@@ -429,7 +431,6 @@ const setTemplate = async () =>{
const testHandler = async ()=>{
FeatureImgStore.setFeatureImg([])
if(FeatureImgRef.value&&FeatureImgRef.value.length>0){
console.log(FeatureImgRef.value)
for (let i = 0; i < FeatureImgRef.value.length; i++) {
let result = await exportFeatureImg(FeatureImgRef.value[i], 'jpeg', 1, false, i)
if(!result){
......
......@@ -226,7 +226,7 @@ const GetTripFiledData = async () =>{
y.content= y.content.replace(getHtmlPlainText(y.content),value)
}else if(value && Array.isArray(value)){
//替换
if(y.type=='image'){
if(y.type=='image'&&value[0]!=''){
console.log('下载图片开始',new Date().getSeconds())
try {
let tempSize = await FileService.getImageSizeWithoutDownloading(value[0])
......
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