|
@@ -44,17 +44,7 @@
|
|
|
<!-- 右侧主体内容 -->
|
|
|
<el-container>
|
|
|
|
|
|
- <!-- 标签内容 -->
|
|
|
- <!-- <el-tabs v-model="editableTabsValue" type="card" closable @tab-remove="removeTab" @tab-click="handleClick">
|
|
|
- <el-tab-pane
|
|
|
- v-for="(item, index) in editableTabs"
|
|
|
- :key="item.name"
|
|
|
- :label="item.title"
|
|
|
- :name="item.name"
|
|
|
- >
|
|
|
- {{item.content}}
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs> -->
|
|
|
+
|
|
|
|
|
|
<el-main >
|
|
|
<!-- 路由占位符 -->
|
|
@@ -97,59 +87,59 @@ export default {
|
|
|
menuList:[
|
|
|
|
|
|
// {
|
|
|
- // authName:"数据统计", id:20, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
+ // name:"数据统计", id:20, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
// children:[
|
|
|
- // {id:101,authName:"饲喂过程",iconclass:'iconfont el-icon-message',path: 'FeedProcess'},
|
|
|
+ // {id:101,name:"饲喂过程",iconclass:'iconfont el-icon-message',path: 'FeedProcess'},
|
|
|
|
|
|
// ]
|
|
|
// },
|
|
|
// {
|
|
|
- // authName:"牛只管理", id:20, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
+ // name:"牛只管理", id:20, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
// children:[
|
|
|
- // {id:201,authName:"牛只信息",iconclass:'iconfont el-icon-message',path: 'CowInfo'},
|
|
|
- // {id:202,authName:"事件记录",iconclass:'iconfont el-icon-message',path: 'EventRecord'},
|
|
|
+ // {id:201,name:"牛只信息",iconclass:'iconfont el-icon-message',path: 'CowInfo'},
|
|
|
+ // {id:202,name:"事件记录",iconclass:'iconfont el-icon-message',path: 'EventRecord'},
|
|
|
|
|
|
// ]
|
|
|
// },
|
|
|
// {
|
|
|
- // authName:"栏舍管理", id:30, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
+ // name:"栏舍管理", id:30, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
// children:[
|
|
|
- // {id:303,authName:"牛只栏舍",iconclass:'iconfont el-icon-message',path: 'CowCowShed'},
|
|
|
- // {id:304,authName:"栏舍分组",iconclass:'iconfont el-icon-message',path: 'CowShedGroup'},
|
|
|
- // // {id:304,authName:"分类参数",iconclass:'iconfont el-icon-message',path: 'users56'},
|
|
|
- // // {id:305,authName:"产品分类",iconclass:'iconfont el-icon-message',path: 'categories'},
|
|
|
+ // {id:303,name:"牛只栏舍",iconclass:'iconfont el-icon-message',path: 'CowCowShed'},
|
|
|
+ // {id:304,name:"栏舍分组",iconclass:'iconfont el-icon-message',path: 'CowShedGroup'},
|
|
|
+ // // {id:304,name:"分类参数",iconclass:'iconfont el-icon-message',path: 'users56'},
|
|
|
+ // // {id:305,name:"产品分类",iconclass:'iconfont el-icon-message',path: 'categories'},
|
|
|
// ]
|
|
|
// },
|
|
|
// {
|
|
|
- // authName:"配方计划", id:40, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
+ // name:"配方计划", id:40, order:1,iconclass:'iconfont el-icon-s-order',
|
|
|
// children:[
|
|
|
- // {id:403,authName:"饲喂计划",iconclass:'iconfont el-icon-message',path: 'FeedPlan'},
|
|
|
- // {id:404,authName:"配方模板",iconclass:'iconfont el-icon-message',path: 'FormulaTemplate'},
|
|
|
+ // {id:403,name:"饲喂计划",iconclass:'iconfont el-icon-message',path: 'FeedPlan'},
|
|
|
+ // {id:404,name:"配方模板",iconclass:'iconfont el-icon-message',path: 'FormulaTemplate'},
|
|
|
// ]
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
- // authName:"基础数据", id:60, order:6,iconclass:'iconfont el-icon-s-order',
|
|
|
+ // name:"基础数据", id:60, order:6,iconclass:'iconfont el-icon-s-order',
|
|
|
// children:[
|
|
|
- // {id:601,authName:"犊牛类型",iconclass:'iconfont el-icon-message',path: 'CalfType'},
|
|
|
- // {id:602,authName:"工单类型",iconclass:'iconfont el-icon-message',path: 'WorkOrderType'},
|
|
|
- // {id:603,authName:"饲喂车管理",iconclass:'iconfont el-icon-message',path: 'FeedCarManagement'},
|
|
|
- // // {id:604,authName:"疾病类型",iconclass:'iconfont el-icon-message',path: 'DiseaseType'},
|
|
|
- // {id:605,authName:"预设饲喂模板",iconclass:'iconfont el-icon-message',path: 'FeedTemplate'},
|
|
|
-
|
|
|
- // {id:606,authName:"默认标准参数",iconclass:'iconfont el-icon-message',path: 'DefaultPara'},
|
|
|
- // {id:607,authName:"饲料成本设置",iconclass:'iconfont el-icon-message',path: 'FeedCost'},
|
|
|
+ // {id:601,name:"犊牛类型",iconclass:'iconfont el-icon-message',path: 'CalfType'},
|
|
|
+ // {id:602,name:"工单类型",iconclass:'iconfont el-icon-message',path: 'WorkOrderType'},
|
|
|
+ // {id:603,name:"饲喂车管理",iconclass:'iconfont el-icon-message',path: 'FeedCarManagement'},
|
|
|
+ // // {id:604,name:"疾病类型",iconclass:'iconfont el-icon-message',path: 'DiseaseType'},
|
|
|
+ // {id:605,name:"预设饲喂模板",iconclass:'iconfont el-icon-message',path: 'FeedTemplate'},
|
|
|
+
|
|
|
+ // {id:606,name:"默认标准参数",iconclass:'iconfont el-icon-message',path: 'DefaultPara'},
|
|
|
+ // {id:607,name:"饲料成本设置",iconclass:'iconfont el-icon-message',path: 'FeedCost'},
|
|
|
|
|
|
// ]
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
- // authName:"系统管理", id:60, order:6,iconclass:'iconfont el-icon-s-order',
|
|
|
+ // name:"系统管理", id:60, order:6,iconclass:'iconfont el-icon-s-order',
|
|
|
// children:[
|
|
|
- // {id:701,authName:"用户管理",iconclass:'iconfont el-icon-message',path: 'User'},
|
|
|
- // {id:702,authName:"角色管理",iconclass:'iconfont el-icon-message',path: 'Role'},
|
|
|
+ // {id:701,name:"用户管理",iconclass:'iconfont el-icon-message',path: 'User'},
|
|
|
+ // {id:702,name:"角色管理",iconclass:'iconfont el-icon-message',path: 'Role'},
|
|
|
|
|
|
// ]
|
|
|
// },
|
|
@@ -179,7 +169,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
- handleClick(val) {
|
|
|
+ handleClick(val) {
|
|
|
// console.log(tab, event);
|
|
|
console.log(val.name);
|
|
|
this.$router.push(val.name)
|
|
@@ -247,18 +237,12 @@ export default {
|
|
|
saveNavState(items){
|
|
|
|
|
|
var activePath = '/' + items.path
|
|
|
- var authName = items.authName
|
|
|
+ var name = items.name
|
|
|
console.log("activePath",activePath)
|
|
|
window.sessionStorage.setItem('activePath',activePath)
|
|
|
|
|
|
|
|
|
-
|
|
|
- // this.editableTabs.push({
|
|
|
- // title: authName,
|
|
|
- // name: activePath,
|
|
|
- // });
|
|
|
- // this.editableTabsValue = activePath;
|
|
|
-
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -279,7 +263,7 @@ export default {
|
|
|
.el-aside{background-color:#333744;}
|
|
|
.el-aside .el-menu{border-right: none;text-align: left}
|
|
|
|
|
|
-.el-main{background-color:#eaedf1; height:80vh}
|
|
|
+.el-main{background-color:#eaedf1; height:80vh;padding:0px}
|
|
|
|
|
|
.iconfont{margin-right:10px}
|
|
|
|