This commit is contained in:
Taric Xin
2022-02-10 11:20:18 +08:00
parent 885e9eacb5
commit 10b7496b27
7 changed files with 30 additions and 86 deletions

View File

@ -3,7 +3,7 @@
<i *ngSwitchCase="'icon'" nz-icon [nzType]="i.value" class="alain-pro__menu-icon"></i> <i *ngSwitchCase="'icon'" nz-icon [nzType]="i.value" class="alain-pro__menu-icon"></i>
<i *ngSwitchCase="'iconfont'" nz-icon [nzIconfont]="i.iconfont" class="alain-pro__menu-icon icon"></i> <i *ngSwitchCase="'iconfont'" nz-icon [nzIconfont]="i.iconfont" class="alain-pro__menu-icon icon"></i>
<img *ngSwitchCase="'img'" src="{{ i.value }}" class="anticon alain-pro__menu-icon alain-pro__menu-img" /> <img *ngSwitchCase="'img'" src="{{ i.value }}" class="anticon alain-pro__menu-icon alain-pro__menu-img" />
<i *ngSwitchDefault class="anticon alain-pro__menu-icon {{ i.value }}"></i> <i *ngSwitchDefault class="icon alain-pro__menu-icon {{ i.value }}"></i>
</ng-container> </ng-container>
</ng-template> </ng-template>
<ng-template #mainLink let-i> <ng-template #mainLink let-i>

View File

@ -42,11 +42,13 @@ export class RoleManagementComponent implements OnInit {
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',
click: item => this.roleAction(item) click: item => this.roleAction(item),
iif: item => item.roleName !== '超级管理员'
}, },
{ {
text: '删除', text: '删除',
click: item => this.deleteAction(item) click: item => this.deleteAction(item),
iif: item => item.roleName !== '超级管理员'
} }
] ]
} }

View File

@ -197,7 +197,7 @@ export class FreightComponentsListComponent implements OnInit {
className: 'text-center', className: 'text-center',
buttons: [ buttons: [
{ {
text: '查看', text: '查看<br/>',
click: item => { click: item => {
this.router.navigate(['./detail', item.id], { relativeTo: this.ar }); this.router.navigate(['./detail', item.id], { relativeTo: this.ar });
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } }); // this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });

View File

@ -8,84 +8,66 @@
"children": [ "children": [
{ {
"text": "用户中心", "text": "用户中心",
"icon": { "icon": "iconfont icon-yonghu-copy",
"type": "iconfont",
"value": "icon-yonghu-copy",
"iconfont": "icon-yonghu-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
"text": "货主管理", "text": "货主管理",
"icon": "anticon anticon-dashboard",
"link": "/demo/zorro",
"children": [ "children": [
{ {
"text": "企业列表", "text": "企业列表",
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/list" "link": "/usercenter/freight/list"
}, },
{ {
"text": "道运证", "text": "道运证",
"hide": true, "hide": true,
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/list/view/:id" "link": "/usercenter/freight/list/view/:id"
}, },
{ {
"text": "货主详情", "text": "货主详情",
"hide": true, "hide": true,
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/list/detail/:id" "link": "/usercenter/freight/list/detail/:id"
}, },
{ {
"text": "企业认证", "text": "企业认证",
"hide": true, "hide": true,
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/new" "link": "/usercenter/freight/new"
}, },
{ {
"text": "企业审核列表", "text": "企业审核列表",
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/enterprise" "link": "/usercenter/freight/enterprise"
}, },
{ {
"text": "企业审核列表详情", "text": "企业审核列表详情",
"hide": true, "hide": true,
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/enterprise/view/:id" "link": "/usercenter/freight/enterprise/view/:id"
}, },
{ {
"text": "货主员工列表", "text": "货主员工列表",
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/user" "link": "/usercenter/freight/user"
}, },
{ {
"text": "货主员工详情", "text": "货主员工详情",
"hide": true, "hide": true,
"icon": "anticon anticon-dashboard",
"link": "/usercenter/freight/user/view/:id" "link": "/usercenter/freight/user/view/:id"
} }
] ]
}, },
{ {
"text": "司机管理", "text": "司机管理",
"icon": "anticon anticon-dashboard",
"link": "/demo/zorro", "link": "/demo/zorro",
"children": [ "children": [
{ {
"text": "司机列表", "text": "司机列表",
"icon": "anticon anticon-dashboard",
"link": "/usercenter/driver" "link": "/usercenter/driver"
}, },
{ {
"text": "司机详情", "text": "司机详情",
"hide": true, "hide": true,
"icon": "anticon anticon-dashboard",
"link": "/usercenter/driver/detail/:id" "link": "/usercenter/driver/detail/:id"
}, },
{ {
"text": "车队长列表", "text": "车队长列表",
"icon": "anticon anticon-dashboard",
"link": "/usercenter/driver/captain" "link": "/usercenter/driver/captain"
} }
] ]
@ -94,11 +76,7 @@
}, },
{ {
"text": "运力管理", "text": "运力管理",
"icon": { "icon": "iconfont icon-yunli-copy",
"type": "iconfont",
"value": "icon-yunli-copy",
"iconfont": "icon-yunli-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
@ -123,34 +101,26 @@
}, },
{ {
"text": "货源管理", "text": "货源管理",
"icon": { "icon": "iconfont icon-huoyuan-copy",
"type": "iconfont",
"value": "icon-huoyuan-copy",
"iconfont": "icon-huoyuan-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
"text": "货源管理", "text": "货源管理",
"icon": "anticon anticon-dashboard",
"link": "/supply-management/index", "link": "/supply-management/index",
"reuse": true "reuse": true
}, },
{ {
"text": "货源详情", "text": "货源详情",
"icon": "anticon anticon-dashboard",
"link": "/supply-management/bulk-detail", "link": "/supply-management/bulk-detail",
"hide": true "hide": true
}, },
{ {
"text": "修改货源", "text": "修改货源",
"icon": "anticon anticon-dashboard",
"link": "/supply-management/vehicle-amend/:id", "link": "/supply-management/vehicle-amend/:id",
"hide": true "hide": true
}, },
{ {
"text": "货源详情", "text": "货源详情",
"icon": "anticon anticon-dashboard",
"link": "/supply-management/vehicle-detail/:id", "link": "/supply-management/vehicle-detail/:id",
"hide": true "hide": true
} }
@ -158,11 +128,7 @@
}, },
{ {
"text": "订单管理", "text": "订单管理",
"icon": { "icon": "iconfont icon-dingdan-copy",
"type": "iconfont",
"value": "icon-dingdan-copy",
"iconfont": "icon-dingdan-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
@ -203,11 +169,7 @@
}, },
{ {
"text": "运单管理", "text": "运单管理",
"icon": { "icon": "iconfont icon-yundan-copy",
"type": "iconfont",
"value": "icon-yundan-copy",
"iconfont": "icon-yundan-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
@ -236,11 +198,7 @@
}, },
{ {
"text": "保险管理", "text": "保险管理",
"icon": { "icon": "iconfont icon-yundan-copy",
"type": "iconfont",
"value": "icon-yundan-copy",
"iconfont": "icon-yundan-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
@ -251,11 +209,7 @@
}, },
{ {
"text": "财务管理", "text": "财务管理",
"icon": { "icon": "iconfont icon-caiwu-copy",
"type": "iconfont",
"value": "icon-caiwu-copy",
"iconfont": "icon-caiwu-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
@ -358,11 +312,7 @@
}, },
{ {
"text": "票务管理", "text": "票务管理",
"icon": { "icon": "iconfont icon-piaowu-copy",
"type": "iconfont",
"value": "icon-piaowu-copy",
"iconfont": "icon-piaowu-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
@ -440,11 +390,7 @@
}, },
{ {
"text": "合同管理", "text": "合同管理",
"icon": { "icon": "iconfont icon-hetong-copy",
"type": "iconfont",
"value": "icon-hetong-copy",
"iconfont": "icon-hetong-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {
@ -463,11 +409,7 @@
}, },
{ {
"text": "系统设置", "text": "系统设置",
"icon": { "icon": "iconfont icon-shezhi-copy",
"type": "iconfont",
"value": "icon-shezhi-copy",
"iconfont": "icon-shezhi-copy"
},
"group": true, "group": true,
"children": [ "children": [
{ {

View File

@ -12,7 +12,6 @@
{ {
"text": "货主管理", "text": "货主管理",
"icon": "anticon anticon-dashboard", "icon": "anticon anticon-dashboard",
"link": "/demo/zorro",
"children": [ "children": [
{ {
"text": "企业列表", "text": "企业列表",

View File

@ -18,6 +18,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="x-ua-compatible" content="ie=edge" /> <meta http-equiv="x-ua-compatible" content="ie=edge" />
<link rel="icon" type="image/x-icon" href="favicon.ico" /> <link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" href="https://at.alicdn.com/t/font_3153207_udngwyp35db.css" />
<!-- Apple Touch Icon --> <!-- Apple Touch Icon -->
<!-- <link rel="apple-touch-icon" href="custom-icon.png"> --> <!-- <link rel="apple-touch-icon" href="custom-icon.png"> -->
<style type="text/css"> <style type="text/css">
@ -65,18 +66,18 @@
} }
var zoom = window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI; var zoom = window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI;
if (!!window.ActiveXObject || "ActiveXObject" in window) { if (!!window.ActiveXObject || "ActiveXObject" in window) {
if (zoom != 1 && zoom !=2 && zoom !=3) { if (zoom != 1 && zoom != 2 && zoom != 3) {
alert('系统检测到您的设备对显示进行放大,可能导致页面显示不全,请调整后打开/或使用其他浏览器!') alert('系统检测到您的设备对显示进行放大,可能导致页面显示不全,请调整后打开/或使用其他浏览器!')
} }
} else { } else {
if(document.body.clientWidth>=1280){ if (document.body.clientWidth >= 1280) {
if (zoom != 1 && zoom !=2 && zoom !=3) { if (zoom != 1 && zoom != 2 && zoom != 3) {
var c = document.querySelector('body'); var c = document.querySelector('body');
c.style.zoom = -0.62 * zoom + 1.65; c.style.zoom = -0.62 * zoom + 1.65;
} }
} }
} }
</script> </script>
<!-- <script type="text/javascript" src='//webapi.amap.com/maps?v=2.0&key=63f9573ca55fef2b92d4ffe0c85dea8f'></script> <!-- <script type="text/javascript" src='//webapi.amap.com/maps?v=2.0&key=63f9573ca55fef2b92d4ffe0c85dea8f'></script>
<script src="//webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script> --> <script src="//webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script> -->

View File

@ -8,11 +8,11 @@
.icon { .icon {
width : 18px; width : 18px;
height : 18px;
fill : currentColor; fill : currentColor;
overflow : hidden; overflow : hidden;
font-size: 18px !important; font-size: 18px !important;
color : #ffffff; color : #ffffff;
margin-right: 10px;
} }
@layout-gutter: 8px; @layout-gutter: 8px;