Commit b4b204e8 authored by mahui's avatar mahui

init

parent faf12d07
...@@ -4,10 +4,14 @@ import router from './router' ...@@ -4,10 +4,14 @@ import router from './router'
import { store } from '@/store' import { store } from '@/store'
import ElementPlus from 'element-plus' import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn' import zhCn from 'element-plus/dist/locale/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css' import 'element-plus/dist/index.css'
import vue3PhotoPreview from 'vue3-photo-preview'; import vue3PhotoPreview from 'vue3-photo-preview';
import 'vue3-photo-preview/dist/index.css'; import 'vue3-photo-preview/dist/index.css';
const app = createApp(App); const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(vue3PhotoPreview); app.use(vue3PhotoPreview);
app.use(store); app.use(store);
app.use(ElementPlus, { app.use(ElementPlus, {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
<div class="logo">@浙江丹靓环境工程有限公司</div> <div class="logo">@浙江丹靓环境工程有限公司</div>
<transition name="el-zoom-in-bottom"> <transition name="el-zoom-in-bottom">
<order-detail v-model="show" v-if="show" :order_id="order_id"></order-detail> <site-detail v-model="show" v-if="show" :site_id="site_id"></site-detail>
</transition> </transition>
</div> </div>
</template> </template>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
map:null, map:null,
timer:null, timer:null,
show:true, show:true,
order_id:'', site_id:'',
time:myPublic.dateFormat.format(Date.now(), 'HH:mm:ss YYYY年MM月DD日'), time:myPublic.dateFormat.format(Date.now(), 'HH:mm:ss YYYY年MM月DD日'),
list:[ list:[
{ {
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
} }
function seeDetail(item){ function seeDetail(item){
state.show = true; state.show = true;
state.order_id = item.order_id||'12'; state.site_id = item.site_id||'12';
} }
onMounted(()=>{ onMounted(()=>{
nextTick(()=>{ nextTick(()=>{
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
next(); next();
}, },
components:{ components:{
orderDetail:defineAsyncComponent(()=>import("@/views/order-detail.vue")) siteDetail:defineAsyncComponent(()=>import("@/views/site-detail.vue"))
} }
}) })
</script> </script>
......
This diff is collapsed.
This diff is collapsed.
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