Commit 61e82121 authored by zhengke's avatar zhengke

广告取消非必要参数验证

parent 869fc491
...@@ -269,12 +269,12 @@ const setNewDatas = (type,i) => { ...@@ -269,12 +269,12 @@ const setNewDatas = (type,i) => {
CoverImgStore.setCoverImg(null) CoverImgStore.setCoverImg(null)
} }
} }
// 导入PSD6 // 导入PSD
const UploadPsdHandler = () => { const UploadPsdHandler = () => {
psdVisibleStatus.value = true psdVisibleStatus.value = true
} }
// 销售新增修改模版 // 销售新增修改行程、广告
const SetSellTemplate = async (type) => { const SetSellTemplate = async (type) => {
try { try {
let TempId = 0 let TempId = 0
...@@ -323,7 +323,7 @@ const SetSellTemplate = async (type) => { ...@@ -323,7 +323,7 @@ const SetSellTemplate = async (type) => {
} }
// 新增修改模版 // 新增修改行程、广告模版
const SetTripTemplateSlide = async () => { const SetTripTemplateSlide = async () => {
try { try {
let TemplateRes = await ConfigService.SetTripTemplateSlide(queryObj.value); let TemplateRes = await ConfigService.SetTripTemplateSlide(queryObj.value);
...@@ -421,7 +421,7 @@ const dataURLtoFile = (dataurl:string, filename:string) => { ...@@ -421,7 +421,7 @@ const dataURLtoFile = (dataurl:string, filename:string) => {
return new File([u8arr], filename, { type: mime }); return new File([u8arr], filename, { type: mime });
} }
// 用户新增修改数据 // 用户新增修改行程数据
const SetTripTemplateConfig = async () => { const SetTripTemplateConfig = async () => {
try { try {
let queryMsg = { let queryMsg = {
...@@ -483,9 +483,9 @@ const setTemplate = async (type) =>{ ...@@ -483,9 +483,9 @@ const setTemplate = async (type) =>{
let url = await AliyunUpload.UploadAsync(file,`Feature/CoverImg_${name}`) let url = await AliyunUpload.UploadAsync(file,`Feature/CoverImg_${name}`)
queryObj.value.CoverImg = url queryObj.value.CoverImg = url
} }
if(queryObj.value.Title==''||!queryObj.value.LineId||queryObj.value.LineName=='' if(searchData.value.TemplateType!=2&&(queryObj.value.Title==''
||queryObj.value.CountryName==''||queryObj.value.SeasonName=='' ||!queryObj.value.LineId||queryObj.value.LineName==''
){ ||queryObj.value.CountryName==''||queryObj.value.SeasonName=='')){
datas.loading = false datas.loading = false
mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA) mainStore.setToolbarState(ToolbarStates.EL_TEMPLATEDATA)
return ElMessage({ return ElMessage({
......
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