Commit b4b204e8 authored by mahui's avatar mahui

init

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