作者 shenhailong

卡口分支

import axios from 'axios'
let base = '/cloud-user-center/perm';
// let base = '/cloud-kako-user-center/perm';
// let base = '/cloud-user-center/perm';
let base = '/cloud-kako-user-center/perm';
export const getList = params => { return axios.get(`${base}/list`, { params: params }); };
... ...
import axios from 'axios'
let base = '/cloud-user-center/role';
// let baseUrl = '/cloud-kako-user-center/role'
// let base = '/cloud-user-center/role';
let base = '/cloud-kako-user-center/role'
export const getList = params => { return axios.get(`${base}/list`, { params: params }); };
... ...
... ... @@ -121,8 +121,6 @@ let routes = [
{path: '/main', component: Main, name: '首页'},
]
},
// { path: '/test', component: Main },
{
path: '/',
component: Home,
... ... @@ -133,41 +131,6 @@ let routes = [
{ path: '/Page7', component: Page7, name: '申请添加' },
]
},
{
path: '/domdep',
component: Home,
name: '订舱系统',
iconCls: 'el-icon-delete-location',
children: [
{ path: '/booking', component: booking, name: '在线订舱' },
{ path: '/order', component: order, name: '订舱信息' },
{ path: '/airlift', component: airlift, name: '空运专线' },
]
},
// 货运系统--航班预配
{
path: '/domdep',
component: Home,
name: '国内出港',
iconCls: 'el-icon-position',
children: [
{ path: '/preConfiguration', component: preConfiguration, name: '航班预配' },
{ path: '/allocate', component: allocate, name: '航班配载' },
{ path: '/documents', component: documents, name: '航班文件' },
{ path: '/charge', component: charge, name: '付费处理' },
// { path: '/perm', component: Perm, name: '权限管理' },
// { path: '/log', component: LOG, name: '系统日志' },
// { path: '/department', component: Department, name: '部门管理' },
// { path: '/company', component: Company, name: '公司管理'},
// { path: '/group', component: Group, name: '集团管理'}
]
},
{
path: '/admin',
component: Home,
... ... @@ -183,145 +146,7 @@ let routes = [
{ path: '/group', component: Group, name: '集团管理'}
]
},
{
path: '/guestService',
component: Home,
name: '客服系统',
iconCls: 'fa fa-id-card-o',
children: [
{ path: '/process', component: Process, name: '工单管理' },
{ path: '/job', component: Job, name: '任务管理' },
{path: '/pre1', component: PreManifest, name: '预配'},
]
},
{
path: '/output',
component: Home,
name: '出港业务申报',
iconCls: 'el-icon-collection',
children: [
{path: '/flight', component: ExitFlight, name: '出港航班申报'},
{path: '/manifest', component: ExitManifest, name: '出港运单申报'},
{path: '/pre', component: ExitPre, name: '出港预配舱单'},
{path: '/arrive', component: ExitArrive, name: '出港运抵'},
{path: '/loadingView', component: ExitFlightDesc, name: '出港航班信息'},
{path: '/loading', component: ExitLoading, name: '出港装载'},
{path: '/tidy', component: ExitTidy, name: '出港理货'}
]
},
{
path: '/sec',
component: Home,
name: '安检清单申报管理',
iconCls: 'el-icon-collection',
children: [
{path: '/security', component: Security, name: '安检清单申报'}
]
},
{
path: '/nmms2',
component: Home,
name: '进港业务申报',
iconCls: 'fa fa-id-card-o',
children: [
{ path: '/orig', component: OrigFlightList, name: '进港航班申报' },
{path:'/waybill',component:Waybill,name:'进港运单申报'},
{path:'/allocateSearch',component:AllocateSearch,name:'运单分拨申报'},
{ path: '/enter', component: EnterFlightInfo, name: '原始舱单'},
{ path:'/origmaster',component:OrigMaster,name:'进港原始舱单'},
{path:'/entertall',component:EnterTally,name:'进港理货'},
{path:'/tallymaster',component:TallyMster,name:'进港理货舱单'},
{path:'/importallocation',component:Importallocation,name:'进港分拨'},
{path:'/allocatearrive',component:Allocatearrive,name:'分拨运抵'},
]
},
// 货运系统--航班预配
{
path: '/flight_scheduling',
component: Home,
name: '航班计划',
iconCls: 'el-icon-delete-location',
children: [
{ path: '/inquiry', component: inquiry, name: '航班计划查询' },
]
},
{
path: '/lost',
component: Home,
name: '落装改配申报',
iconCls:'el-icon-goods',
children:[
{path:'/lostLoad',component:LostLoad,name:'落装业务申报'},
{path:'/lostLoadChange',component:LostLoadChange,name:'改配业务申报'}
]
},
{
path: '/airtransport',
component: Home,
name: '通用业务申报',
iconCls:'el-icon-goods',
children:[
{path:'/route',component:Route,name:'航线申报'},
{path:'/bill',component:Bill,name:'单据申报'},
{path:'/flights',component:Flight,name:'航班申报'},
{path:'/flightplan',component:Flightplan,name:'当日飞行计划'},
{path:'/aircraft',component:Aircraft,name:'通用航空器申报'},
{path:'/routeaircraft',component:Routeaircraft,name:'航线航空器申报'},
]
},
{
path: '/querytransport',
component: Home,
name: '通用业务查询',
iconCls:'el-icon-goods',
children:[
{path:'/queryRoute',component:queryRoute,name:'航线查询'},
{path:'/queryBill',component:queryBill,name:'单据查询'},
{path:'/queryFlights',component:queryFlight,name:'航班查询'},
{path:'/queryFlightplan',component:queryFlightplan,name:'当日飞行计划查询'},
{path:'/queryAircraft',component:queryAircraft,name:'通用航空器查询'},
{path:'/queryRouteaircraft',component:queryRouteaircraft,name:'航线航空器查询'},
]
},
{
path: '/input',
component: Home,
name: '进港航班申报',
iconCls:'el-icon-goods',
children:[
{path:'/arrival',component:arrival,name:'进港预报申报'},
{path:'/confirmatory',component:confirmatory,name:'进港确报申报'},
{path:'/queryArrival',component:queryArrival,name:'进港预报查询'},
{path:'/queryConfirmatory',component:queryConfirmatory,name:'进港确报查询'},
{path:'/configure',component:configure,name:'进港航班配置'},
{path:'/queryConfigure',component:queryConfigure,name:'航班配置查询'},
]
},
{
path: '/con',
component: Home,
name: '收发货人管理',
iconCls:'el-icon-goods',
children:[
{path:'/consigner',component:Consigner,name:'发货人管理'},
{path:'/consignee',component:Consignee,name:'收货人管理'},
]
},
{
path: '/out',
component: Home,
name: '出港申报',
iconCls:'el-icon-goods',
children:[
{path:'/departure',component:departure,name:'出港预报申报'},
{path:'/declare',component:declare,name:'出港确报申报'},
{path:'/queryDeparture',component:queryDeparture,name:'出港预报查询'},
{path:'/queryDeclare',component:queryDeclare,name:'出港确报查询'},
{path:'/outConfigure',component:outConfigure,name:'出港航班配置'},
{path:'/queryFlightConfigure',component:queryFlightConfigure,name:'航班配置查询'},
]
},
{
path: '/',
component: Home,
... ... @@ -334,43 +159,7 @@ let routes = [
]
},
{
path: '/empt',
component: Home,
name: '能源管理',
iconCls: 'fa fa-id-card-o',
children: [
{ path: '/location', component: Location, name: '能源缴费' },
]
},
{
path: '/satff',
component: Home,
name: '生活保障部门',
iconCls: 'fa fa-id-card-o',
children: [
{ path: '/security_inspection', component: SecrityInspection, name: '职工公寓安全巡视管理' },
{ path: '/key', component: Key, name: '职工公寓备用钥匙使用登记管理' },
{ path: '/maintain', component: Maintain, name: '职工公寓设施设备维修记录管理' },
{ path: '/come_car', component: ComeCar, name: '职工公寓外来人员车辆登记管理' },
{ path: '/on_duty', component: OnDuty, name: '职工公寓值班巡视记录管理' },
]
},
{
path: '/water_heating_chamber',
component: Home,
name: '水暖室',
iconCls: 'fa fa-address-card',
// leaf: true,//只有一个节点
children: [
{ path: '/water_stations_patrol', component: WaterStationsPatrol, name: '二水厂-水站巡视记录单管理' },
// { path: '/page6', component: Page6, name: '水质量检测' },
// { path: '/page6', component: Page6, name: '污水站' },
// { path: '/page6', component: Page6, name: '一水厂' },
// { path: '/page6', component: Page6, name: '综合楼空调站' },
]
},
{
path: '/',
component: Home,
... ...
... ... @@ -22,27 +22,21 @@
<el-table :data="users" highlight-current-row border v-loading="listLoading" @selection-change="selsChange" style="width: 100%;">
<el-table-column type="selection" width="55">
</el-table-column>
<!--<el-table-column type="index" width="60">-->
<!--</el-table-column>-->
<el-table-column prop="userId" label="ID" width="100" sortable>
<el-table-column prop="loginName" label="账号" width="120" sortable>
</el-table-column>
<el-table-column prop="username" label="账号" width="120" sortable>
<el-table-column prop="name" label="姓名" width="120" sortable>
</el-table-column>
<el-table-column prop="realname" label="姓名" width="120" sortable>
<el-table-column prop="mobile" label="电话" width="125">
</el-table-column>
<el-table-column prop="sex" label="性别" width="100" :formatter="formatSex" sortable>
<el-table-column prop="createDate" label="创建时间" width="170" sortable>
</el-table-column>
<el-table-column prop="mobilephone" label="电话" width="125">
</el-table-column>
<el-table-column prop="creattime" label="创建时间" width="170" sortable>
</el-table-column>
<el-table-column prop="updatetime" label="更新时间" width="170" sortable>
<el-table-column prop="updateDate" label="更新时间" width="170" sortable>
</el-table-column>
<el-table-column prop="address" label="地址" min-width="180">
</el-table-column>
<el-table-column prop="email" label="Email" min-width="180">
</el-table-column>
<el-table-column prop="state" label="启用" width="100" :formatter="formatState" sortable>
<el-table-column prop="loginFlag" label="启用" width="100" :formatter="formatState" sortable>
</el-table-column>
<el-table-column label="操作" width="250">
<template slot-scope="scope">
... ... @@ -75,57 +69,32 @@
</el-select>
</el-form-item>
<el-form-item label="ID">
<span>{{editForm.userId}}</span>
<span>{{editForm.id}}</span>
</el-form-item>
<el-form-item label="账号">
<span>{{editForm.username}}</span>
<span>{{editForm.loginName}}</span>
</el-form-item>
<el-form-item label="密码" prop="password">
<el-input v-model="editForm.password" auto-complete="off" type="password" show-password></el-input>
</el-form-item>
<el-form-item label="姓名" prop="realname">
<el-input v-model="editForm.realname" auto-complete="off"></el-input>
<el-form-item label="姓名" prop="name">
<el-input v-model="editForm.name" auto-complete="off"></el-input>
</el-form-item>
<el-form-item label="电话" prop="mobilephone">
<el-input v-model="editForm.mobilephone" auto-complete="off"></el-input>
<el-form-item label="电话" prop="mobile">
<el-input v-model="editForm.mobile" auto-complete="off"></el-input>
</el-form-item>
<el-form-item label="Email" prop="email">
<el-input v-model="editForm.email" auto-complete="off"></el-input>
</el-form-item>
<el-form-item label="性别">
<el-radio-group v-model="editForm.sex">
<el-radio class="radio" label="1" >男</el-radio>
<el-radio class="radio" label="0" >女</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="年龄">
<el-input-number v-model="editForm.age" :min="0" :max="200"></el-input-number>
</el-form-item>
<!--<el-form-item label="创建日期">-->
<!--<el-date-picker type="date" placeholder="创建日期" v-model="editForm.creattime" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd HH:mm:ss"></el-date-picker>-->
<!--</el-form-item>-->
<el-form-item label="地址">
<el-input type="textarea" v-model="editForm.address"></el-input>
</el-form-item>
<el-form-item label="启用">
<el-radio-group v-model="editForm.state">
<el-radio class="radio" label="true" >是</el-radio>
<el-radio class="radio" label="false" >否</el-radio>
<el-radio-group v-model="editForm.loginFlag">
<el-radio class="radio" label="1" >是</el-radio>
<el-radio class="radio" label="0" >否</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item lable="头像">
<el-upload
class="avatar-uploader"
action="http://127.0.0.1:7003/upload"
:show-file-list="true"
accept="image/jpeg,image/jpg,image/png"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
>
<img v-if="faceImageUrl" :src="faceImageUrl" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="editFormVisible = false">取消</el-button>
... ... @@ -147,30 +116,21 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="账号" prop="username">
<el-input v-model="addForm.username" aria-placeholder="用户名长度在5-11位,支持英文和数字"></el-input>
<el-form-item label="账号" prop="loginName">
<el-input v-model="addForm.loginName" aria-placeholder="用户名长度在5-11位,支持英文和数字"></el-input>
</el-form-item>
<el-form-item label="密码" prop="password">
<el-input v-model="addForm.password" type="password"></el-input>
</el-form-item>
<el-form-item label="姓名" prop="realname">
<el-input v-model="addForm.realname"></el-input>
<el-form-item label="姓名" prop="name">
<el-input v-model="addForm.name"></el-input>
</el-form-item>
<el-form-item label="电话" prop="mobilephone">
<el-input v-model="addForm.mobilephone"></el-input>
<el-form-item label="电话" prop="mobile">
<el-input v-model="addForm.mobile"></el-input>
</el-form-item>
<el-form-item label="Email" prop="email">
<el-input v-model="addForm.email"></el-input>
</el-form-item>
<el-form-item label="性别">
<el-radio-group v-model="addForm.sex">
<el-radio class="radio" label="1">男</el-radio>
<el-radio class="radio" label="0">女</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="年龄" prop="age">
<el-input-number v-model="addForm.age" :min="0" :max="200"></el-input-number>
</el-form-item>
<el-form-item label="地址">
<el-input type="textarea" v-model="addForm.address"></el-input>
</el-form-item>
... ... @@ -237,17 +197,15 @@
},
//编辑界面数据
editForm: {
userId: 1,
username: '',
loginName: '',
password: '',
sex: 1,
creattime: '',
name: '',
address: '',
realname: '',
email: '',
mobilephone: '',
state: 'true',
companyId:''
mobile: '',
id: '',
companyId:'',
loginFlag: ''
},
addFormVisible: false,//新增界面是否显示
... ... @@ -267,14 +225,12 @@
roleFormVisible: false,
//新增界面数据
addForm: {
username: '',
loginName: '',
password: '',
sex: 1,
name: '',
address: '',
realname: '',
email: '',
mobilephone: '',
age: 1,
mobile: '',
companyId:''
},
roleEditForm: {
... ... @@ -290,11 +246,8 @@
},
methods: {
//性别显示转换
formatSex: function (row, column) {
return row.sex == 1 ? '男' : row.sex == 0 ? '女' : '未知';
},
formatState: function (row, column) {
return row.state == true ? '是' : row.state == false ? '否' : '未知';
return row.loginFlag == '1' ? '启用' : row.loginFlag == '0' ? '禁用' : '未知';
},
handleCurrentChange(val) {
this.pageNum = val;
... ... @@ -342,7 +295,7 @@
}).then(() => {
this.listLoading = true;
//NProgress.start();
let para = { userId: row.userId };
let para = { userId: row.id };
removeUser(para).then((res) => {
this.listLoading = false;
//NProgress.done();
... ... @@ -411,14 +364,12 @@
handleAdd: function () {
this.addFormVisible = true;
this.addForm = {
username: '',
loginName: '',
password: '',
sex: 1,
name: '',
address: '',
realname: '',
email: '',
mobilephone: '',
age: 1,
mobile: '',
companyId:''
};
},
... ...