Commit 3c528e58 authored by zhengke's avatar zhengke

no message

parent 3af372a2
......@@ -76,7 +76,7 @@ const { slidesLoadLimit } = useLoadSlides()
const TemplateTypeStore = useScreenStore()
const CoverImgStore = useScreenStore()
const dataLoadingStore = useScreenStore()
const { TemplateDataSource, TemplateType, dataLoading } = storeToRefs(TemplateTypeStore)
const { ConfigId, TemplateDataSource, TemplateType, dataLoading } = storeToRefs(TemplateTypeStore)
const selectedSlidesIndex = computed(() => [..._selectedSlidesIndex.value, slideIndex.value])
const presetLayoutPopoverVisible = ref(false)
......@@ -129,12 +129,12 @@ queryObj.value = inject(injectKeyDataSource).queryObj
// 获取行程团数据
const GetTripFiledData = async () =>{
if(queryObj.value.TempId) return
const GetTripFiledData = async (status) =>{
if(queryObj.value.TempId&&!status) return
const slidesData = slides.value
try {
let queryMsg = {
ConfigId:datas.DataSource.ConfigId
ConfigId: ConfigId.value
}
let dataRes = await ConfigService.triptemplateGetTripFiledData(queryMsg);
if (dataRes.data.resultCode == 1) {
......@@ -230,7 +230,7 @@ const GetTripTemplate = async () =>{
queryObj.value.ColorName = dataRes.data.data.ColorName
queryObj.value.ColorStr = dataRes.data.data.ColorStr
queryObj.value.TempType = dataRes.data.data.TempType
await GetTripFiledData()
await GetTripFiledData(1)
}
} catch (error) {
console.log("GetTripTemplateSlide", error);
......
......@@ -166,7 +166,7 @@
* 页面跳转
*/
const goToTemplate = (item: any) => {
if(!ConfigId.value||!model.value) return
if(!ConfigId.value&&!model.value) return
searchData.value.TempId = item.TempId
marketStore.setMarket(!market)
// console.log("item", item.TempId);
......
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