實(shí)踐 | Element UI + Vue 管理系統(tǒng)首頁

進(jìn)行組件化

創(chuàng)建相關(guān)的url
{
path: '/index',
name: 'index',
component: () => import('../views/Index')
},
?
index頁面組件信息
?
頭部文件
?
菜單文件
保險(xiǎn)產(chǎn)品管理
保險(xiǎn)產(chǎn)品查詢
用戶管理
封號管理
問答管理
問題管理
回答管理
數(shù)據(jù)統(tǒng)計(jì)
保險(xiǎn)產(chǎn)品數(shù)據(jù)
保險(xiǎn)公司數(shù)據(jù)
?
主頁文件
查看
新增
刪除
王小虎
{{ msg }}
For a guide and recipes on how to configure / customize this project,
check out the
vue-cli documentation.
Installed CLI Plugins
Essential Links
Ecosystem
?
進(jìn)行事件綁定
父組件創(chuàng)建相關(guān)方法,并綁定事件
創(chuàng)建相關(guān)方法
methods: {
changeData(){
console.log(444444);
this.cur = 1;
}
}
綁定相關(guān)事件
子組件創(chuàng)建相關(guān)方法并調(diào)用
ming(){
console.log("3333");
this.$emit("callFather");
}
子組件創(chuàng)建相關(guān)方法并完成方法綁定
保險(xiǎn)產(chǎn)品查詢
子組件全部代碼如下
保險(xiǎn)產(chǎn)品管理
保險(xiǎn)產(chǎn)品查詢
用戶管理
封號管理
問答管理
問題管理
回答管理
數(shù)據(jù)統(tǒng)計(jì)
保險(xiǎn)產(chǎn)品數(shù)據(jù)
保險(xiǎn)公司數(shù)據(jù)
父組件全部代碼如下
完成效果圖
前

后

有道無術(shù),術(shù)可成;有術(shù)無道,止于術(shù)
歡迎大家關(guān)注Java之道公眾號
好文章,我在看??
評論
圖片
表情
