Commit d1a5eeed authored by zhengke's avatar zhengke

重命名

parent ac2f6e32
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<el-icon> <el-icon>
<RefreshRight v-if="!datas.journeyAds.RefreshLoading" <RefreshRight v-if="!datas.journeyAds.RefreshLoading"
@click="datas.journeyAds.RefreshLoading=true"/> @click="datas.journeyAds.RefreshLoading=true"/>
<Refresh v-else /> <Loading v-else />
</el-icon> </el-icon>
</div> </div>
</div> </div>
...@@ -109,7 +109,7 @@ import { ref,reactive,provide,inject } from 'vue'; ...@@ -109,7 +109,7 @@ import { ref,reactive,provide,inject } from 'vue';
import SearchDocument from './components/SearchDocument.vue' import SearchDocument from './components/SearchDocument.vue'
import Example from './components/Example.vue' import Example from './components/Example.vue'
import journeyAds from './components/journeyAds.vue' import journeyAds from './components/journeyAds.vue'
import { Plus,ArrowDown,Clock,Star,Share,Picture,Management,Delete,RefreshRight,Refresh } from '@element-plus/icons-vue'; import { Plus,ArrowDown,Clock,Star,Share,Picture,Management,Delete,RefreshRight,Refresh,Loading } from '@element-plus/icons-vue';
import { injectKeyTemplate } from '@/types/injectKey' import { injectKeyTemplate } from '@/types/injectKey'
import { useSellTemplateStore, useScreenStore, useSlidesStore } from '@/store' import { useSellTemplateStore, useScreenStore, useSlidesStore } from '@/store'
...@@ -126,13 +126,13 @@ provide('journeyAds',datas.journeyAds) ...@@ -126,13 +126,13 @@ provide('journeyAds',datas.journeyAds)
const searchData = ref({} as any) const searchData = ref({} as any)
searchData.value = inject(injectKeyTemplate) searchData.value = inject(injectKeyTemplate)
searchData.value.currentMenu = currentMenu.value
if(searchData.value.SellTemplateType){ if(searchData.value.SellTemplateType){
let current = 0 let current = 0
if(searchData.value.SellTemplateType==1) current = 3 if(searchData.value.SellTemplateType==1) current = 3
if(searchData.value.SellTemplateType==2) current = 4 if(searchData.value.SellTemplateType==2) current = 4
currentMenu.value = current currentMenu.value = current
} }else currentMenu.value = searchData.value.currentMenu
const SalesEditorStore = useSellTemplateStore() const SalesEditorStore = useSellTemplateStore()
const marketStore = useScreenStore() const marketStore = useScreenStore()
...@@ -145,10 +145,11 @@ const sellAdd = (type:number) =>{ ...@@ -145,10 +145,11 @@ const sellAdd = (type:number) =>{
const setCurrentMenuHandler=(i:number)=>{ const setCurrentMenuHandler=(i:number)=>{
currentMenu.value=i currentMenu.value=i
let TemplateType = 1 searchData.value.currentMenu=i
let TemplateType = 0
if(i==3) TemplateType = 1 if(i==3) TemplateType = 1
if(i==4) TemplateType = 2 if(i==4) TemplateType = 2
if(TemplateType) searchData.value.SellTemplateType = TemplateType searchData.value.SellTemplateType = TemplateType
} }
</script> </script>
<style scoped> <style scoped>
......
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