正在显示
7 个修改的文件
包含
62 行增加
和
44 行删除
| @@ -72,7 +72,7 @@ export default { | @@ -72,7 +72,7 @@ export default { | ||
| 72 | 72 | ||
| 73 | }, | 73 | }, |
| 74 | checkNull: params => { | 74 | checkNull: params => { |
| 75 | - if (params!==null && typeof(params)!="undefined"){ | 75 | + if (params!==null && typeof(params)!="undefined" && params !== ""){ |
| 76 | return true; | 76 | return true; |
| 77 | }else { | 77 | }else { |
| 78 | return false; | 78 | return false; |
| @@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
| 19 | <!-- </el-radio-group>--> | 19 | <!-- </el-radio-group>--> |
| 20 | 20 | ||
| 21 | <div align="center" style="height: 66px;line-height: 66px;"> | 21 | <div align="center" style="height: 66px;line-height: 66px;"> |
| 22 | - <img id="logo" src="~@/assets/logo1.png"> | 22 | +<!-- <img id="logo" src="~@/assets/logo1.png">--> |
| 23 | <h1 id="logo-text" style="color:white;display: inline-block;font-weight: 600;font-size: 15px;line-height: 50px"> 物流公共信息服务平台</h1> | 23 | <h1 id="logo-text" style="color:white;display: inline-block;font-weight: 600;font-size: 15px;line-height: 50px"> 物流公共信息服务平台</h1> |
| 24 | </div> | 24 | </div> |
| 25 | <template v-for="(item,index) in menu"> | 25 | <template v-for="(item,index) in menu"> |
| @@ -7,22 +7,22 @@ | @@ -7,22 +7,22 @@ | ||
| 7 | :closable = "tabCloseable" | 7 | :closable = "tabCloseable" |
| 8 | @tab-click='tabClick' | 8 | @tab-click='tabClick' |
| 9 | @tab-remove="tabRemove" | 9 | @tab-remove="tabRemove" |
| 10 | - style="width: 100%;margin-top: 0px;height: 50px"> | 10 | + style="width: 100%;margin-top: 0px;"> |
| 11 | <el-tab-pane | 11 | <el-tab-pane |
| 12 | v-for="(item, index) in this.$store.state.openTab" | 12 | v-for="(item, index) in this.$store.state.openTab" |
| 13 | :key="item.name" | 13 | :key="item.name" |
| 14 | :label="item.name" | 14 | :label="item.name" |
| 15 | :name="item.route"> | 15 | :name="item.route"> |
| 16 | + <section class="content-container"> | ||
| 17 | + <div> | ||
| 18 | + <el-col :span="24" class="content-wrapper"> | ||
| 19 | + <transition name="fade" mode="out-in"> | ||
| 20 | + <router-view></router-view> | ||
| 21 | + </transition> | ||
| 22 | + </el-col> | ||
| 23 | + </div> | ||
| 24 | + </section> | ||
| 16 | </el-tab-pane> | 25 | </el-tab-pane> |
| 17 | - <section class="content-container"> | ||
| 18 | - <div> | ||
| 19 | - <el-col :span="24" class="content-wrapper"> | ||
| 20 | - <transition name="fade" mode="out-in"> | ||
| 21 | - <router-view></router-view> | ||
| 22 | - </transition> | ||
| 23 | - </el-col> | ||
| 24 | - </div> | ||
| 25 | - </section> | ||
| 26 | </el-tabs> | 26 | </el-tabs> |
| 27 | </div> | 27 | </div> |
| 28 | </template> | 28 | </template> |
| @@ -145,9 +145,12 @@ | @@ -145,9 +145,12 @@ | ||
| 145 | } | 145 | } |
| 146 | /*底层背景色*/ | 146 | /*底层背景色*/ |
| 147 | .el-tabs__nav-scroll{ | 147 | .el-tabs__nav-scroll{ |
| 148 | - background-color: rgb(239,243,246); | 148 | + /*background-color: rgb(239,243,246);*/ |
| 149 | } | 149 | } |
| 150 | - /*首个内部边框*/ | 150 | + .el-tabs--card>.el-tabs__header{ |
| 151 | + border: none; | ||
| 152 | + } | ||
| 153 | + /*首个内部边框*/ | ||
| 151 | .el-tabs--card>.el-tabs__header .el-tabs__item:first-child{ | 154 | .el-tabs--card>.el-tabs__header .el-tabs__item:first-child{ |
| 152 | border: 1px solid rgba(80,109,130,.64); | 155 | border: 1px solid rgba(80,109,130,.64); |
| 153 | } | 156 | } |
| @@ -164,9 +167,9 @@ | @@ -164,9 +167,9 @@ | ||
| 164 | color:#495060; | 167 | color:#495060; |
| 165 | height: 26px; | 168 | height: 26px; |
| 166 | border: 1px solid rgba(80,109,130,.64); | 169 | border: 1px solid rgba(80,109,130,.64); |
| 167 | - margin: 4px 3px; | 170 | + margin: 0px 3px; |
| 168 | line-height: 26px; | 171 | line-height: 26px; |
| 169 | - border-radius: 5px 5px 0 0; | 172 | + border-radius: 0 0 5px 5px; |
| 170 | background-color: #fff; | 173 | background-color: #fff; |
| 171 | font-size: 12px; | 174 | font-size: 12px; |
| 172 | font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif; | 175 | font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif; |
| @@ -174,7 +177,7 @@ | @@ -174,7 +177,7 @@ | ||
| 174 | /* 选中的黑框的样式*/ | 177 | /* 选中的黑框的样式*/ |
| 175 | .el-tabs--card>.el-tabs__header .el-tabs__item.is-active{ | 178 | .el-tabs--card>.el-tabs__header .el-tabs__item.is-active{ |
| 176 | border-bottom: 1px solid rgba(80,109,130,.64); | 179 | border-bottom: 1px solid rgba(80,109,130,.64); |
| 177 | - border-radius: 5px 5px 0 0; | 180 | + border-radius: 0 0 5px 5px; |
| 178 | background-color: #398af1; | 181 | background-color: #398af1; |
| 179 | color: #fff; | 182 | color: #fff; |
| 180 | border-color: #398af1; | 183 | border-color: #398af1; |
| @@ -189,20 +189,14 @@ let routes = [ | @@ -189,20 +189,14 @@ let routes = [ | ||
| 189 | // 货运系统--航班预配 | 189 | // 货运系统--航班预配 |
| 190 | { | 190 | { |
| 191 | path: '/domdep', | 191 | path: '/domdep', |
| 192 | - component: Home, | 192 | + component: HomeNew, |
| 193 | name: '国内出港', | 193 | name: '国内出港', |
| 194 | iconCls: 'el-icon-position', | 194 | iconCls: 'el-icon-position', |
| 195 | children: [ | 195 | children: [ |
| 196 | { path: '/preConfiguration', component: preConfiguration, name: '航班预配' }, | 196 | { path: '/preConfiguration', component: preConfiguration, name: '航班预配' }, |
| 197 | { path: '/allocate', component: allocate, name: '航班配载' }, | 197 | { path: '/allocate', component: allocate, name: '航班配载' }, |
| 198 | { path: '/documents', component: documents, name: '航班文件' }, | 198 | { path: '/documents', component: documents, name: '航班文件' }, |
| 199 | - { path: '/charge', component: charge, name: '付费处理' }, | ||
| 200 | - | ||
| 201 | - { path: '/perm', component: Perm, name: '权限管理' }, | ||
| 202 | - { path: '/log', component: LOG, name: '系统日志' }, | ||
| 203 | - { path: '/department', component: Department, name: '部门管理' }, | ||
| 204 | - { path: '/company', component: Company, name: '公司管理'}, | ||
| 205 | - { path: '/group', component: Group, name: '集团管理'} | 199 | + { path: '/charge', component: charge, name: '付费处理' } |
| 206 | ] | 200 | ] |
| 207 | }, | 201 | }, |
| 208 | { | 202 | { |
| @@ -234,7 +228,7 @@ let routes = [ | @@ -234,7 +228,7 @@ let routes = [ | ||
| 234 | }, | 228 | }, |
| 235 | { | 229 | { |
| 236 | path: '/output', | 230 | path: '/output', |
| 237 | - component: Home, | 231 | + component: HomeNew, |
| 238 | name: '国际出港业务申报', | 232 | name: '国际出港业务申报', |
| 239 | iconCls: 'el-icon-collection', | 233 | iconCls: 'el-icon-collection', |
| 240 | children: [ | 234 | children: [ |
| @@ -310,7 +304,7 @@ let routes = [ | @@ -310,7 +304,7 @@ let routes = [ | ||
| 310 | 304 | ||
| 311 | { | 305 | { |
| 312 | path: '/nmms2', | 306 | path: '/nmms2', |
| 313 | - component: Home, | 307 | + component: HomeNew, |
| 314 | name: '进港业务申报', | 308 | name: '进港业务申报', |
| 315 | iconCls: 'fa fa-id-card-o', | 309 | iconCls: 'fa fa-id-card-o', |
| 316 | children: [ | 310 | children: [ |
| @@ -328,7 +322,7 @@ let routes = [ | @@ -328,7 +322,7 @@ let routes = [ | ||
| 328 | // 货运系统--航班预配 | 322 | // 货运系统--航班预配 |
| 329 | { | 323 | { |
| 330 | path: '/flight_scheduling', | 324 | path: '/flight_scheduling', |
| 331 | - component: Home, | 325 | + component: HomeNew, |
| 332 | name: '航班计划', | 326 | name: '航班计划', |
| 333 | iconCls: 'el-icon-delete-location', | 327 | iconCls: 'el-icon-delete-location', |
| 334 | children: [ | 328 | children: [ |
| @@ -348,7 +342,7 @@ let routes = [ | @@ -348,7 +342,7 @@ let routes = [ | ||
| 348 | }, | 342 | }, |
| 349 | { | 343 | { |
| 350 | path: '/airtransport', | 344 | path: '/airtransport', |
| 351 | - component: Home, | 345 | + component: HomeNew, |
| 352 | name: '通用业务申报', | 346 | name: '通用业务申报', |
| 353 | iconCls:'el-icon-goods', | 347 | iconCls:'el-icon-goods', |
| 354 | children:[ | 348 | children:[ |
| @@ -362,7 +356,7 @@ let routes = [ | @@ -362,7 +356,7 @@ let routes = [ | ||
| 362 | }, | 356 | }, |
| 363 | { | 357 | { |
| 364 | path: '/querytransport', | 358 | path: '/querytransport', |
| 365 | - component: Home, | 359 | + component: HomeNew, |
| 366 | name: '通用业务查询', | 360 | name: '通用业务查询', |
| 367 | iconCls:'el-icon-goods', | 361 | iconCls:'el-icon-goods', |
| 368 | children:[ | 362 | children:[ |
| @@ -376,7 +370,7 @@ let routes = [ | @@ -376,7 +370,7 @@ let routes = [ | ||
| 376 | }, | 370 | }, |
| 377 | { | 371 | { |
| 378 | path: '/input', | 372 | path: '/input', |
| 379 | - component: Home, | 373 | + component: HomeNew, |
| 380 | name: '进港航班申报', | 374 | name: '进港航班申报', |
| 381 | iconCls:'el-icon-goods', | 375 | iconCls:'el-icon-goods', |
| 382 | children:[ | 376 | children:[ |
| @@ -402,7 +396,7 @@ let routes = [ | @@ -402,7 +396,7 @@ let routes = [ | ||
| 402 | }, | 396 | }, |
| 403 | { | 397 | { |
| 404 | path: '/', | 398 | path: '/', |
| 405 | - component: Home, | 399 | + component: HomeNew, |
| 406 | name: '转关运抵', | 400 | name: '转关运抵', |
| 407 | iconCls: 'el-icon-delete-location', | 401 | iconCls: 'el-icon-delete-location', |
| 408 | children: [ | 402 | children: [ |
| @@ -411,7 +405,7 @@ let routes = [ | @@ -411,7 +405,7 @@ let routes = [ | ||
| 411 | }, | 405 | }, |
| 412 | { | 406 | { |
| 413 | path: '/out', | 407 | path: '/out', |
| 414 | - component: Home, | 408 | + component: HomeNew, |
| 415 | name: '出港航班申报', | 409 | name: '出港航班申报', |
| 416 | iconCls:'el-icon-goods', | 410 | iconCls:'el-icon-goods', |
| 417 | children:[ | 411 | children:[ |
| @@ -425,7 +419,7 @@ let routes = [ | @@ -425,7 +419,7 @@ let routes = [ | ||
| 425 | }, | 419 | }, |
| 426 | { | 420 | { |
| 427 | path: '/at', | 421 | path: '/at', |
| 428 | - component: Home, | 422 | + component: HomeNew, |
| 429 | name: '在港动态', | 423 | name: '在港动态', |
| 430 | iconCls:'el-icon-goods', | 424 | iconCls:'el-icon-goods', |
| 431 | children:[ | 425 | children:[ |
| @@ -327,7 +327,7 @@ | @@ -327,7 +327,7 @@ | ||
| 327 | .header { | 327 | .header { |
| 328 | height: 70px; | 328 | height: 70px; |
| 329 | line-height: 70px; | 329 | line-height: 70px; |
| 330 | - background: $color-primary url("~img/banner.png"); | 330 | + background: $color-primary url("~img/air-banner.png"); |
| 331 | color:#fff; | 331 | color:#fff; |
| 332 | .userinfo { | 332 | .userinfo { |
| 333 | text-align: right; | 333 | text-align: right; |
| @@ -10,9 +10,9 @@ | @@ -10,9 +10,9 @@ | ||
| 10 | <!-- ;margin-top: 80px;z-index:9999;margin-left: 170px--> | 10 | <!-- ;margin-top: 80px;z-index:9999;margin-left: 170px--> |
| 11 | <i style="color:#a6b6c6;vertical-align: middle;line-height: 60px;" :class="[collapsed?'el-icon-s-unfold':'el-icon-s-fold']"></i> | 11 | <i style="color:#a6b6c6;vertical-align: middle;line-height: 60px;" :class="[collapsed?'el-icon-s-unfold':'el-icon-s-fold']"></i> |
| 12 | </div> | 12 | </div> |
| 13 | + <i class="el-icon-question" style="vertical-align: middle;"></i> | ||
| 14 | + <i class="el-icon-message-solid" style="vertical-align: middle;"></i> | ||
| 13 | <el-dropdown trigger="hover" style="margin-top:10px"> | 15 | <el-dropdown trigger="hover" style="margin-top:10px"> |
| 14 | - <i class="el-icon-question" style="vertical-align: middle;"></i> | ||
| 15 | - <i class="el-icon-message-solid" style="vertical-align: middle;"></i> | ||
| 16 | <span class="el-dropdown-link userinfo-inner"> | 16 | <span class="el-dropdown-link userinfo-inner"> |
| 17 | <img width="40" height="40" style="border-radius:50%;" src="~img/faceDefault.jpg"/></span> | 17 | <img width="40" height="40" style="border-radius:50%;" src="~img/faceDefault.jpg"/></span> |
| 18 | <el-dropdown-menu slot="dropdown"> | 18 | <el-dropdown-menu slot="dropdown"> |
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | </el-dropdown> | 25 | </el-dropdown> |
| 26 | </el-header> | 26 | </el-header> |
| 27 | 27 | ||
| 28 | - <el-main style="background-color:#f5f7fd;padding:10px"> | 28 | + <el-main> |
| 29 | <TabMenu></TabMenu> | 29 | <TabMenu></TabMenu> |
| 30 | </el-main> | 30 | </el-main> |
| 31 | </el-container> | 31 | </el-container> |
| @@ -52,7 +52,7 @@ | @@ -52,7 +52,7 @@ | ||
| 52 | rotate:false, | 52 | rotate:false, |
| 53 | sysName:'', | 53 | sysName:'', |
| 54 | collapsed:false, | 54 | collapsed:false, |
| 55 | - // sysUserName: '', | 55 | + sysUserName: '', |
| 56 | sysUserId:'', | 56 | sysUserId:'', |
| 57 | // sysUserAvatar: '', | 57 | // sysUserAvatar: '', |
| 58 | isRouterAlive: true, | 58 | isRouterAlive: true, |
| @@ -181,8 +181,9 @@ | @@ -181,8 +181,9 @@ | ||
| 181 | width: 30px; | 181 | width: 30px; |
| 182 | } | 182 | } |
| 183 | } | 183 | } |
| 184 | - main{ | ||
| 185 | - | 184 | + main.el-main{ |
| 185 | + background-color:#f5f7fd; | ||
| 186 | + padding:0 10px 10px 10px; | ||
| 186 | } | 187 | } |
| 187 | 188 | ||
| 188 | </style> | 189 | </style> |
| @@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
| 15 | <el-button type="success" @click="handleAdd" icon="el-icon-document">新  增</el-button> | 15 | <el-button type="success" @click="handleAdd" icon="el-icon-document">新  增</el-button> |
| 16 | </el-form-item> | 16 | </el-form-item> |
| 17 | <el-form-item> | 17 | <el-form-item> |
| 18 | - <el-button type="danger" @click="batchRemove" :disabled="this.sels.length===0">批量删除</el-button> | 18 | + <el-button type="danger" @click="batchRemove" :disabled="this.sels.length===0" icon="el-icon-delete">批量删除</el-button> |
| 19 | </el-form-item> | 19 | </el-form-item> |
| 20 | 20 | ||
| 21 | 21 | ||
| @@ -115,11 +115,24 @@ | @@ -115,11 +115,24 @@ | ||
| 115 | </el-dialog> | 115 | </el-dialog> |
| 116 | 116 | ||
| 117 | <!--权限设置界面--> | 117 | <!--权限设置界面--> |
| 118 | - <el-dialog title="岗位的权限设置" :visible.sync="PermFormVisible" :close-on-click-modal="false"> | 118 | + <el-dialog title="岗位的权限设置" |
| 119 | + :visible.sync="PermFormVisible" | ||
| 120 | + :close-on-click-modal="false" | ||
| 121 | + top="5vh" | ||
| 122 | + > | ||
| 123 | + <el-row> | ||
| 124 | + <el-col :span="4" > | ||
| 125 | + <el-button type="primary" @click.native="treeMerge(false)">合并节点</el-button> | ||
| 126 | + </el-col> | ||
| 127 | + <el-col :span="4"> | ||
| 128 | + <el-button type="success" @click.native="treeMerge(true)">展开节点</el-button> | ||
| 129 | + </el-col> | ||
| 130 | + </el-row> | ||
| 119 | <el-form :model="permForm" label-width="80px" ref="permForm"> | 131 | <el-form :model="permForm" label-width="80px" ref="permForm"> |
| 120 | <el-tree :data="permissons" :props="treeDefaultProps" | 132 | <el-tree :data="permissons" :props="treeDefaultProps" |
| 121 | @check="clickDeal" | 133 | @check="clickDeal" |
| 122 | - show-checkbox highlight-current default-expand-all check-on-click-node check-strictly | 134 | + :default-expand-all = "treeExpand" |
| 135 | + show-checkbox highlight-current check-on-click-node check-strictly | ||
| 123 | node-key="permissionId" ref="tree"> | 136 | node-key="permissionId" ref="tree"> |
| 124 | </el-tree> | 137 | </el-tree> |
| 125 | </el-form> | 138 | </el-form> |
| @@ -158,6 +171,7 @@ | @@ -158,6 +171,7 @@ | ||
| 158 | children: 'children', | 171 | children: 'children', |
| 159 | label: 'name', | 172 | label: 'name', |
| 160 | }, | 173 | }, |
| 174 | + treeExpand: false, | ||
| 161 | departmentNameList:[], | 175 | departmentNameList:[], |
| 162 | roles: [], | 176 | roles: [], |
| 163 | permissons: [], | 177 | permissons: [], |
| @@ -209,6 +223,12 @@ | @@ -209,6 +223,12 @@ | ||
| 209 | } | 223 | } |
| 210 | }, | 224 | }, |
| 211 | methods: { | 225 | methods: { |
| 226 | + treeMerge: function (expand) { | ||
| 227 | + this.treeExpand = expand; | ||
| 228 | + for(var i=0;i<this.$refs.tree.store._getAllNodes().length;i++){ | ||
| 229 | + this.$refs.tree.store._getAllNodes()[i].expanded=this.treeExpand; | ||
| 230 | + } | ||
| 231 | + }, | ||
| 212 | handleCurrentChange(val) { | 232 | handleCurrentChange(val) { |
| 213 | this.pageNum = val; | 233 | this.pageNum = val; |
| 214 | this.getRoles(); | 234 | this.getRoles(); |
-
请 注册 或 登录 后发表评论