Commit aa7046b6 authored by zhengke's avatar zhengke

修复并优化保存提示

parent bfd05c87
......@@ -117,6 +117,7 @@ import PsdUpload from '@/components/PSD/Index.vue'
import { svg2Base64 } from '@/utils/svg2Base64'
import UploadService from '@/services/UploadService'
import { domainManager } from '@/utils/domainManager'
import { ToolbarStates } from '@/types/toolbar'
......@@ -306,12 +307,13 @@ const setTemplate = async () =>{
showClose: true,
message: '请生成封面图',
type: 'warning',
})
})
if(queryObj.value.Title==''||!queryObj.value.LineId||!queryObj.value.LtId
||queryObj.value.CoverImg==''
||queryObj.value.CountryName==''||queryObj.value.SeasonName==''
||queryObj.value.ColorName==''||queryObj.value.ColorStr==''||queryObj.value.LineName==''){
mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA)
return ElMessage({
showClose: true,
message: '请完善右侧模版数据',
......@@ -322,6 +324,7 @@ const setTemplate = async () =>{
for(let i=0;i<slides.value.length;i++){
if(slides.value[i].elements.length==0) {
mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA)
return ElMessage({
showClose: true,
message: `请设计 第 ${i+1} 页 的数据`,
......
......@@ -267,6 +267,7 @@
let response = await LineService.GetLineListAsync()
if (response.data.resultCode == 1) {
lines.value = response.data.data;
onLineChangeHandler()
}
} catch (error) {
console.log("getLinesHandler", error);
......@@ -280,7 +281,9 @@
let obj = lines.value.find(x=>{
return x.LineID == queryObj.value.LineId
})
queryObj.value.LtId = null
if(queryObj.value.LtId){
queryObj.value.LtId = null
}
queryObj.value.LineName = obj.LineName
try {
let queryMsg = {
......
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