tiny-vue/example/public/mock/gateway/ajax.js

1679 lines
56 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

let data = {
env: {
serviceCacheList: null,
user: {
createdBy: 131269511,
creationDate: '2017-09-27T00:00:00.000+0800',
creationUserCN: null,
lastUpdateDate: '2017-11-14T09:43:38.000+0800',
lastUpdateUserCN: null,
rowIdx: -1,
userId: 131269511,
userAccount: 'test1',
employeeNumber: '12345678',
userCN: 'test1',
email: 'test1@test1.com',
userType: 'HWE',
dept: null,
coalitionPermission: false,
currentRole: {
creationDate: null,
createdBy: null,
lastUpdateDate: null,
creationUserCN: null,
rowIdx: -1,
lastUpdateUserCN: null,
roleId: 1001,
roleSort: null,
roleDesc: null,
roleName: 'System Admin',
status: null,
owner: null,
defaultUrl: '',
applyStatus: null,
userAdminRole: null,
grantedOperations: null,
personalPermissions: [
'vui$Service$Employee.Manage$delete',
'vui$Service$Employee.Manage$edit'
],
noPermissionUrl: ['vui$jalor/logs/listLogs.html'],
permissionUrl: null,
approvedByOld: null,
approveMode: null,
roleDimension: null,
roleChk: null,
roleList: null,
currentScope: 'otc',
appNames: ['vui']
},
currentProgramIds: [1001],
currentPrograms: null,
validRoles: [
{
createdBy: null,
creationDate: null,
creationUserCN: null,
lastUpdateDate: null,
lastUpdateUserCN: null,
rowIdx: -1,
roleSort: null,
roleId: 1003,
roleName: 'Guest',
roleDesc: null,
defaultUrl: null,
status: null,
applyStatus: null,
personalPermissions: null,
owner: null,
userAdminRole: null,
grantedOperations: null,
roleList: null,
permissionUrl: null,
approvedByOld: null,
noPermissionUrl: null,
roleDimension: null,
roleChk: null,
currentScope: 'otc',
approveMode: null,
appNames: ['tiny']
},
{
createdBy: null,
creationDate: null,
creationUserCN: null,
lastUpdateDate: null,
lastUpdateUserCN: null,
rowIdx: -1,
roleSort: null,
roleId: 1001,
roleName: 'System Admin',
roleDesc: null,
defaultUrl: '',
status: null,
applyStatus: null,
owner: null,
userAdminRole: null,
grantedOperations: null,
personalPermissions: null,
noPermissionUrl: null,
permissionUrl: null,
approvedByOld: null,
approveMode: null,
roleDimension: null,
roleChk: null,
roleList: null,
currentScope: 'otc',
appNames: ['vui']
}
],
defaultRole: 'vui:1001;',
endDate: '2017-11-14T11:08:58.000+0800',
programValidity: null,
appNames: ['vui'],
scopes: ['otc']
},
envBean: {
exclusions: ['/applet/'],
profileName: 'sit',
homePath: 'index.html',
urlOfIData: null,
urlOfIDataGoverner: null,
appName: 'vui'
},
appResBeans: [],
config: {
hwaSiteId: null,
appVersion: '20140627',
resourceMode: '0',
ScriptLogLevel: '2',
earSplit: '0',
crossDomainMode: '0',
jalorStatic: '',
IsWideScreen: true,
subAppMap: {},
enableDynamicHelp: true,
hwaIgnoreRegular: '0',
jalorVersion: '0',
w3Static: '',
scope: 'otc',
i18nVersion: '20160524',
historySettings: '{"enable":1,"length":3,"storage":0,"sort":1}',
delayHide: null,
MergePermission2CurrentRole: '0',
IDataSoaservicesV1: null,
enableInfoTip: true,
badScriptWords: '0',
pushMsgDelayLoadTime: null,
appName: 'vui',
forwardDelayTime: '0',
enabledI18nCache: '0',
enableMulti: false,
appSystemAdmin: 'test1',
selfStatic: '',
hwa: '1',
enablePushMessage: false,
IsFixedMenu: '1',
enableHomeCache: false,
enabledParamterAppendToRequest: '',
resourceMap: {},
region: null,
PrivilegeType: '0'
},
contextPath: '/jalor6DemoService1/',
switchLanguageEnabled: true,
validLanguages: ['enUS', 'zhCN'],
currentLanguage: 'zhCN',
leftMenuNode: {
siteNodeId: 7000,
name: '更新日志',
url: '#/zh-CN/guide/changelog',
target: '_self',
location: '',
extensionField: '{"icon":"icon-affix"}',
children: [
{
siteNodeId: 7001,
name: '开发指南',
url: '',
target: '_self',
location: '',
extensionField: '{"icon":"icon-setup"}',
children: [
{
siteNodeId: 7002,
name: '安装',
children: null,
url: '#/zh-CN/guide/installation',
target: '_self',
location: ''
},
{
siteNodeId: 7003,
name: '引入组件',
children: null,
url: '#/zh-CN/guide/quickstart',
target: '_self',
location: ''
},
{
siteNodeId: 7004,
name: 'CLI配置',
children: null,
url: '#/zh-CN/guide/configuration',
target: '_self',
location: ''
},
{
siteNodeId: 7004,
name: '国际化',
children: null,
url: '#/zh-CN/guide/i18n',
target: '_self',
location: ''
},
{
siteNodeId: 7004,
name: '权限',
children: null,
url: '#/zh-CN/guide/permission',
target: '_self',
location: ''
},
{
siteNodeId: 7004,
name: '代码分隔',
children: null,
url: '#/zh-CN/guide/codesplit',
target: '_self',
location: ''
},
{
siteNodeId: 7004,
name: '构建部署',
children: null,
url: '#/zh-CN/guide/publish',
target: '_self',
location: ''
},
{
siteNodeId: 7004,
name: '自定义主题',
children: null,
url: '#/zh-CN/guide/theme',
target: '_self',
location: ''
}
]
},
{
siteNodeId: 8001,
name: '表单组件',
url: '',
target: '_self',
location: '',
extensionField: '{"icon":"icon-list"}',
children: [
{
siteNodeId: 8002,
name: 'Button 按钮',
url: '#/zh-CN/component/button',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Input 输入框',
url: '#/zh-CN/component/input',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Textarea 文本域',
url: '#/zh-CN/component/textarea',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Numeric 数字框',
url: '#/zh-CN/component/numeric',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Selectgroup 选择框',
url: '#/zh-CN/component/selectgroup',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Dropdown 下拉框',
url: '#/zh-CN/component/dropdown',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Suggest 联想框',
url: '#/zh-CN/component/suggest',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Datepicker 日期选择器',
url: '#/zh-CN/component/datepicker',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Time 时间',
url: '#/zh-CN/component/time',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'DropTimes 下拉时间',
url: '#/zh-CN/component/droptimes',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Fileupload 上传',
url: '#/zh-CN/component/fileupload',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8002,
name: 'Form 表单',
url: '#/zh-CN/component/form',
target: '_self',
location: '',
children: null
}
]
},
{
siteNodeId: 8003,
name: '数据组件',
url: '',
target: '_self',
location: '',
extensionField: '{"icon":"icon-db"}',
children: [
{
siteNodeId: 8004,
name: 'Grid 数据表格',
url: '#/zh-CN/component/grid',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Repeater 数据列表',
url: '#/zh-CN/component/repeater',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Tree 树形控件',
url: '#/zh-CN/component/tree',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Pager 分页',
url: '#/zh-CN/component/pager',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Badge 徽标',
url: '#/zh-CN/component/badge',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Chart 图表',
url: '#/zh-CN/component/chart',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Gridster 拖放网格',
url: '#/zh-CN/component/gridster',
target: '_self',
location: '',
children: null
}
]
},
{
siteNodeId: 8003,
name: '导航组件',
url: '',
target: '_self',
location: '',
extensionField: '{"icon":"icon-route"}',
children: [
{
siteNodeId: 8004,
name: 'TreeMenu 树型菜单',
url: '#/zh-CN/component/treemenu',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'ToggleMenu 收缩菜单',
url: '#/zh-CN/component/toggleMenu',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'LinkMenu 收藏夹菜单',
url: '#/zh-CN/component/linkmenu',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'PopupMenu 弹出菜单',
url: '#/zh-CN/component/popupmenu',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'ContextMenu 上下文菜单',
url: '#/zh-CN/component/contextmenu',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Menubar 菜单栏',
url: '#/zh-CN/component/menubar',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Breadcrumb 面包屑',
url: '#/zh-CN/component/breadcrumb',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Floatbar 浮动块',
url: '#/zh-CN/component/floatbar',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Flowchart 复杂流程图',
url: '#/zh-CN/component/flowchart',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Wizard 流程图',
url: '#/zh-CN/component/wizard',
target: '_self',
location: '',
children: null
}
]
},
{
siteNodeId: 8003,
name: '业务组件',
url: '',
target: '_self',
location: '',
extensionField: '{"icon":"icon-user"}',
children: [
{
siteNodeId: 8004,
name: 'Area 片区',
url: '#/zh-CN/component/area',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Amount 金额',
url: '#/zh-CN/component/amount',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Country 国家/地区',
url: '#/zh-CN/component/country',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Company 公司',
url: '#/zh-CN/component/company',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Currency 币种',
url: '#/zh-CN/component/currency',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Hrapprover HR授权人',
url: '#/zh-CN/component/hrapprover',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Dept 部门',
url: '#/zh-CN/component/dept',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Roles 角色切换',
url: '#/zh-CN/component/roles',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'DropRoles 下拉角色',
url: '#/zh-CN/component/droproles',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Locales 语言切换',
url: '#/zh-CN/component/locales',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'User 用户',
url: '#/zh-CN/component/user',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'UserAccount 用户账号',
url: '#/zh-CN/component/useraccount',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'UserLink 用户信息链接',
url: '#/zh-CN/component/userlink',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'LogonUser 登录用户',
url: '#/zh-CN/component/logonuser',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Logout 注销',
url: '#/zh-CN/component/logout',
target: '_self',
location: '',
children: null
}
]
},
{
siteNodeId: 8003,
name: '其他组件',
url: '',
target: '_self',
location: '',
extensionField: '{"icon":"icon-stardisable"}',
children: [
{
siteNodeId: 8004,
name: 'PopEditor 弹出编辑',
url: '#/zh-CN/component/popeditor',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'SuggestPopup 联想弹出框',
url: '#/zh-CN/component/suggestpopup',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Tip 文字提示',
url: '#/zh-CN/component/tip',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Card 卡片',
url: '#/zh-CN/component/card',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Panel 折叠面板',
url: '#/zh-CN/component/panel',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'Slider 滑块',
url: '#/zh-CN/component/slider',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'SlideBar 滚动块',
url: '#/zh-CN/component/slidebar',
target: '_self',
location: '',
children: null
},
{
siteNodeId: 8004,
name: 'SlideImg 图片轮播',
url: '#/zh-CN/component/slideImg',
target: '_self',
location: '',
children: null
}
]
}
]
},
userSettingList: [
{
lastUpdateDate: '2017-11-01T11:39:36.000+0800',
rowIdx: -1,
settingId: 1006,
settingKey: 'global',
userId: 131269511,
settingContent: '',
numberOfSettings: 0
}
],
helpers: null,
pushMsg: false,
serverTime: '2017-11-14T11:26:30.155+0800',
globalScript: null,
globalStyle: null,
checkBrowser: '0',
network: 'intranet',
themeName: 'default',
switchThemeEnabled: '0',
themes: {
default:
''
},
languageList: [],
msaGatewayConfig: {}
},
lang: {
zhCN: {
'widget.grid.individuation.otherTabInfo':
'设置服务器排序或客户端排序, 每页条数大小。',
'wiget.grid.individuation.btntitle': '个性化设置',
'widget.close': '关闭',
'widget.datepicker_month': '月',
'widget.usercard.manager': 'manager',
'widget.usercard.empno': '工号',
'widget.menu.coltitle': '点击进行菜单收起到边缘',
'widget.datepicker_months.11': '十二月',
'widget.datepicker_months.10': '十一月',
'widget.grid.operation.copy_pop': '弹出复制',
'widget.upload.filename': '文件名',
'widget.grid.fullscreen.warn':
'grid全屏编辑模式下关闭或者刷新浏览器有可能导致未提交数据丢失!请先确保你的数据都已提交。',
'widget.upload.sechight': '高风险',
'widget.datepicker_weekdays':
'星期日,星期一,星期二,星期三,星期四,星期五,星期六,星期日',
'widget.grid.individuation.setDefaultBtn': '恢复默认设置',
'widget.grid.search_noRecords': '暂无数据',
'widget.upload.filestatus': '文件状态',
'widget.edit': '编辑',
'widget.dialog.pin.pin': '固定窗口',
'widget.login': '登录',
'widget.tree.reload': '重新加载节点',
'widget.grid.status.del': '删除的数据',
'widget.grid.individuation.baseTabInfo': '请拖动对象进行排序',
'widget.usercard.timezone': '时区',
'widget.usercard.internal': 'internal line',
'widget.grid.filter.unempty': '不为空',
'widget.grid.filter.include': '包含',
'widget.upload.httperror': '上传错误HTTP状态{0}. {1}',
'widget.grid.filter.greaterThan': '大于',
'widget.customer.name': '客户名称',
'widget.grid.operation.insert_child': '新增子节点',
'widget.dept.inputtip': '可输入部门编码或名称',
'widget.upload.preview': '预览',
'widget.dept.search': '辅助查询',
'widget.upload.dragtip': '拖拽文件到此处',
'widget.dropdown.suggest.info_text':
'仅显示匹配的{0}条记录,请输入更多的关键字!',
'widget.upload.imgmemoryerror': '运行时已消耗所有可用内存。',
'widget.customer.code': '客户编码',
'widget.dept.ok': '确定',
'widget.pager.pagesize': '条/页',
'widget.pager.ok': 'GO',
'widget.dept.selectdept': '部门选择',
'widget.view': '查看',
'widget.grid.operation.isSave_msg': '有修改的数据,是否要保存?',
'widget.collapse': '收起',
'widget.upload.stopupload': '停止上传',
'widget.upload.seclow': '低风险',
'widget.dept.company': '公司',
'widget.pager.total': '共',
'widget.upload.imgformaterror': '图片格式错误或者不支持。',
'widget.usercard.title': '用户信息: {0}',
'widget.grid.operation.noSelected_msg': '请选择一条记录!',
'widget.datepicker_weekdays.1': '星期一',
'widget.datepicker_weekdays.0': '星期日',
'widget.datepicker_weekdays.7': '星期日',
'widget.datepicker_weekdays.6': '星期六',
'widget.datepicker_weekdays.5': '星期五',
'widget.datepicker_weekdays.4': '星期四',
'widget.datepicker_weekdays.3': '星期三',
'widget.datepicker_weekdays.2': '星期二',
'widget.tree.edit': '修改名称',
'widget.datepicker_year': '年',
'widget.myAccountSetting': '我的账号设置',
'widget.usercard.zipcode': '邮编',
'widget.grid.filter.sort_desc': '降序',
'widget.menu.poptitle': '设置常用链接',
'widget.grid.filter.advanced': '高级筛选...',
'widget.reset': '重置',
'widget.grid.individuation.currPageSort': '当前页数据排序',
'widget.grid.individuation.noUnFrozen': '该列不能设置为非冻结列',
'widget.upload.close': '关闭',
'widget.grid.individuation.saveBtn': '确 认',
'widget.myrole': '当前角色:',
'widget.upload.maxcount': '最多上传{0}个文件',
'widget.grid.operation.reload_child': '重新加载子节点',
'widget.usercard.other': '其他',
'widget.datepicker_previousMonth': '上月',
'widget.customer.address': '客户地址',
'widget.grid.filter.equalToGreaterThan': '大于等于',
'widget.upload.maxfilesize': '每个文件最大{0}',
'widget.upload.overcount': '已超出上传文件最大数量',
'widget.grid.individuation.allSort': '全部数据排序',
'widget.tree.delWarn': '不能删除有子节点的节点',
'widget.browse': '浏览...',
'widget.datepicker_monthsShort.':
'1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月',
'widget.dept.selected': '已选',
'widget.upload.duplicateerror': '文件{0} 已经在当前队列里。',
'widget.tree.del': '删除节点',
'widget.dialog.confirm.title': '请确认',
'widget.usercard.fax': '传真',
'widget.upload.typeerror': '文件类型出错',
'widget.selectAll': '全选',
'widget.tree.requireval': '值不能为空,请重新输入值',
'widget.grid.operation.leadingIn': '导入',
'widget.grid.operation.insert_node': '新增同一级节点',
'widget.datepicker_weekdaysShort.7': '周日',
'widget.datepicker_weekdaysShort.6': '周六',
'widget.dept.eighth': '八级部门',
'widget.dept.fifth': '五级部门',
'widget.datepicker_weekdaysShort.5': '周五',
'widget.datepicker_weekdaysShort.4': '周四',
'widget.datepicker_weekdaysShort.3': '周三',
'widget.datepicker_weekdaysShort.2': '周二',
'widget.datepicker_weekdaysShort.1': '周一',
'widget.datepicker_weekdaysShort.0': '周日',
'widget.grid.operation.copy_node': '复制同一级节点',
'widget.grid.status.add': '新增的数据',
'widget.usercard.phone': '固定电话',
'widget.upload.filetypeerror': '文件: {0} 的类型不符合要求',
'widget.upload.sizeerror': '文件: {0}, 大小: {1}, 最大文件大小: {2}',
'widget.usercard.address': '地址',
'widget.grid.operate': '操作',
'widget.datepicker_months.':
'一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月',
'widget.tree.addbrother': '添加同级节点',
'widget.grid.filter.clear': '清除当前列筛选',
'widget.dept.selecttip': '请选择部门',
'widget.upload.title': '文件上传',
'widget.grid.operation.templete': '下载模板',
'widget.datepicker_weekdaysShort.':
'周日,周一,周二,周三,周四,周五,周六,周日',
'widget.grid.operation.copy': '复制',
'widget.grid.operation.leadingOut': '导出',
'widget.customer.placeholder': '可输入客户编码或名称',
'widget.usercard.viop': 'VIOP',
'widget.logout': '注销',
'widget.datepicker_today': '今天',
'widget.customer.title': '客户信息列表',
'widget.upload.filethumbnailsview': '缩略图模式',
'widget.upload.del_comfirm_msg': '确定要删除吗?',
'widget.grid.filter.week': '本周',
'widget.grid.individuation.warn': '请保证至少两条未隐藏列不被冻结!',
'widget.grid.filter.suffix': '结尾是',
'widget.success_msg': '操作成功!',
'widget.grid.filter.equal': '等于',
'widget.datepicker_monthsShort.10': '11月',
'widget.datepicker_monthsShort.11': '12月',
'widget.dept.deptcode': '部门编码',
'widget.upload.secmid': '中风险',
'widget.upload.fileexsupport': '支持上传【{0}】格式文件',
'widget.grid.individuation.renderTabTitle': '行渲染设置',
'widget.tree.add': '添加子节点',
'widget.grid.filter.and': '并且',
'widget.save_noChanged_msg': '没有记录被更改,无需保存。',
'widget.dialog.crop.image_dialog_title': '图片',
'widget.setting': '设置',
'widget.grid.filter.equalToLessThan': '小于等于',
'widget.upload.secblack': '该文件的安全等级为: 黑名单, 无法上传',
'widget.upload.closemsg':
'文件正在上传或安全扫描中,关闭后信息会丢失,确认关闭?',
'widget.grid.filter.or': '或者',
'widget.grid.individuation.descTitle': '降序',
'widget.upload.fileexerror': '文件: {0} 的类型不符合要求',
'widget.grid.filter.sort_asc': '升序',
'widget.grid.filter.empty': '为空',
'widget.grid.status.edit': '更新的数据',
'widget.dialog.pin.unpin': '取消固定',
'widget.del_comfirm_msg': '确定要删除?',
'widget.menu.nourlwarn': '该节点无链接URL不能选择请选择其他节点。',
'widget.grid.individuation.hideMsg': '至少保留一列显示',
'widget.tab.exceed_max_tabitem': '标签项的最大值为',
'widget.menu.maxwarn': '不能选择多于{0}个节点',
'widget.grid.status.error': '验证未通过的数据',
'widget.datepicker_nextMonth': '下月',
'widget.grid.operation.noSetting_msg': '您未设置该操作!',
'widget.upload.filesqueued': '继续添加',
'widget.grid.filter.month': '本月',
'widget.upload.counterror':
'每次只接受同时上传 {0} 个文件,多余的文件将会被删除。',
'widget.tab.same_tabid_confirm': '存在相同的TabId项.',
'widget.grid.individuation.resetBtn': '重 置',
'widget.amount.date': '日期',
'widget.grid.filter.clear_all': '清除所有列筛选',
'widget.search': '搜索',
'widget.expand': '展开',
'widget.grid.individuation.sortType': '排序类型',
'widget.tab.del_comfirm_msg': '确认删除 ',
'widget.datepicker_weekdays.':
'星期日,星期一,星期二,星期三,星期四,星期五,星期六,星期日',
'widget.dept.primary': '一级部门',
'widget.upload.selectfiles': '选择文件',
'widget.grid.operation.del': '删除',
'widget.dept.third': '三级部门',
'widget.upload.filesize': '文件大小',
'widget.usercard.email': '邮箱',
'widget.dept.deptname': '部门名称',
'widget.grid.individuation.showTitle': '可见的',
'widget.datepicker_weekdaysShort':
'周日,周一,周二,周三,周四,周五,周六,周日',
'widget.datepicker_months.2': '三月',
'widget.datepicker_months.3': '四月',
'widget.datepicker_months.4': '五月',
'widget.datepicker_months.5': '六月',
'widget.datepicker_months.6': '七月',
'widget.datepicker_months.7': '八月',
'widget.datepicker_months.8': '九月',
'widget.datepicker_months.9': '十月',
'widget.grid.individuation.nosortTitle': '无排序',
'widget.datepicker_months.0': '一月',
'widget.datepicker_months.1': '二月',
'widget.grid.individuation.renderTabInfo':
'拖动矩形块,块内的图标按钮可点击操作,拖到锁定框内的顺序为优先级。',
'widget.upload.uploadcomplete': '文件上传完成',
'widget.dropdown.emptyData': '没有数据',
'widget.grid.individuation.ascTitle': '升序',
'widget.datepicker_monthsShort':
'1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月',
'widget.upload.overmax':
'上传文件个数已达上限: {0},请先删除已上传的文件后方可继续上传其他文件',
'widget.grid.individuation.otherTabTitle': '其他设置',
'widget.grid.filter.lessThan': '小于',
'widget.amount.currency': '币种',
'widget.dept.cancel': '取消',
'widget.usercard.employeId': 'employee id',
'widget.grid.filter.prefix': '开头是',
'widget.dialog.crop.comments.1':
'(2) 建议使用大头照,不然缩小后可能看不清楚',
'widget.dialog.crop.comments.0':
'(1) 支持JPG和PNG格式的图片文件大小20M以内',
'widget.dialog.crop.comments.3':
'(4) 如要设置系统默认头像,请勿上传图片,直接点击“设置”按钮',
'widget.dialog.crop.comments.2':
'(3) 请“浏览”大图,上传头像;您也可以手工调整选择头像区域',
'widget.grid.operation.insert_pop': '弹出新增',
'widget.grid.operation.undelete': '取消删除',
'widget.upload.filelistview': '列表模式',
'widget.save': '保存',
'widget.upload.secwarn': '该文件的安全等级为: {0}, 建议删除',
'widget.define': '确定',
'widget.upload.delconfirm': '确认要取消上传这个文件吗?',
'widget.customer.search': '快速查询',
'widget.tree.noEdit': '该节点不能修改名称',
'widget.grid.individuation.closeBtn': '取 消',
'widget.fullScreen': '全屏',
'widget.datepicker_weekdaysShortest.0': '日',
'widget.datepicker_weekdaysShortest.1': '一',
'widget.datepicker_weekdaysShortest.2': '二',
'widget.datepicker_weekdaysShortest.3': '三',
'widget.datepicker_weekdaysShortest.4': '四',
'widget.datepicker_weekdaysShortest.5': '五',
'widget.datepicker_weekdaysShortest.6': '六',
'widget.datepicker_weekdaysShortest.7': '日',
'widget.dept.seventh': '七级部门',
'widget.usercard.travelcode': 'travel code',
'widget.upload.startupload': '开始上传',
'widget.grid.individuation.baseTabTitle': '基础设置',
'widget.datepicker_months':
'一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月',
'widget.datepicker_monthsShort.9': '10月',
'widget.datepicker_monthsShort.8': '9月',
'widget.datepicker_monthsShort.7': '8月',
'widget.datepicker_monthsShort.6': '7月',
'widget.pager.rows': '条',
'widget.datepicker_monthsShort.1': '2月',
'widget.datepicker_monthsShort.0': '1月',
'widget.datepicker_monthsShort.5': '6月',
'widget.datepicker_monthsShort.4': '5月',
'widget.datepicker_monthsShort.3': '4月',
'widget.datepicker_monthsShort.2': '3月',
'widget.grid.individuation.pageSize': '每页条数',
'widget.select': '选择',
'widget.grid.individuation.noFrozen': '该列不能设置为冻结列。',
'widget.upload.addfiles': '添加文件',
'widget.grid.individuation.hideTitle': '隐藏的',
'widget.datepicker_nextYear': '下年',
'widget.dropdown.suggest.mismatchUserMsg':
'[{0}]有误请输入有效的工号w3账号或姓名全拼',
'widget.grid.filter.today': '今天',
'widget.maximize': '最大化',
'widget.dept.fourth': '四级部门',
'widget.dept.second': '二级部门',
'widget.grid.filter.threeMonth': '三月之内',
'widget.grid.operation.leading': 'Excel导入导出',
'widget.dialog.crop.title': '设置头像',
'widget.datepicker_previousYear': '上年',
'widget.usercard.department': '部门',
'widget.grid.status.emptyName': '未设置名称',
'widget.amount.amount': '金额',
'widget.dept.sixth': '六级部门',
'widget.menu.exptitle': '点击恢复菜单',
'widget.ok': '确定',
'widget.pager.curpage': '当前页',
'widget.usercard.mobile': '手机',
'widget.grid.filter.exclude': '不包含',
'widget.dialog.alert.title': '提示',
'widget.tree.noInsert': '该节点不能添加子节点',
'widget.grid.filter.unequal': '不等于',
'widget.tree.placeholder': '请输入内容进行筛选',
'widget.upload.uploadedfiles': '已上传 {0}/{1} 个文件',
'widget.grid.operation.insert': '新增',
'widget.cancel': '取消',
'widget.grid.filter.year': '本年度',
'widget.restore': '还原',
'hra.noapprover': '没有权签人',
'hra.selecttip': '没有选择权签人',
'hra.Approver': '权签人',
'hra.Remarks': '说明',
'hra.selectapprover': '权签人选择',
'hae.widget.emptyData': '没有数据',
'hae.widget.textarea.exceeded': '已经超出字数限制',
'popeditor.popup_all': '所有数据列表',
'popeditor.popup_selected': '选中数据列表',
'hae.i18n.label.type': '类别',
'hae.i18n.column.module': '模块',
'hae.i18n.column.key': '键值',
'hae.i18n.column.content': '内容',
'hae.i18n.label.foregroud': '前台',
'hae.i18n.column.language': '语种',
'hae.i18n.label.backgroud': '服务',
'hae.catalog.i18n_manager': '国际化管理',
'hae.loading': '加载中...',
'popeditor.popup_history': '历史选项',
enUS: 'English',
zhCN: '中文',
'validation.maxLengthErr': '长度必须不大于 {{length}}',
'validation.maxErr': '值应不大于最大值{{value}}',
'validation.integerErr': '非法整数',
'validation.urlErr': '非法url地址',
'validation.acceptErr': '后缀不匹配此正则表达式:{{result}}',
'validation.intOverFlow': '整数超出限制, 允许最大整数位数: {0}位',
'validation.timeErr': '无效时间',
'validation.rateErr': '比例应该在{{min}}%与 {{max}}%之间',
'validation.versionErr': '非法版本格式',
'validation.minLengthErr': '长度必须不小于{{length}}',
'validation.fileSizeErr': '文件大小的格式不正确,应如 3kb',
'validation.emailErr': '非法邮件地址',
'validation.lenRange': '长度必须在 {{minLen}} 与 {{maxLen}}之间',
'validation.requireErr': '必填!',
'validation.minErr': '值应不小于最小值{{value}}',
'validation.digitsErr': '非法纯数字',
'validation.dateYMErr': '不符合规则的时间格式',
'validation.dateTimeErr': '不符合规则的时间格式',
'validation.dateFormatErr': '此日期格式必须是',
'validation.numErr': '非法数字',
'validation.dateErr': '不符合规则的数据格式',
'validation.regularConfigErro': '规则配置错误',
'validation.xmlErr': '非法的xml格式',
'validation.specialchErr': '只能输入数字、字母、下划线、横杠、点号',
'validation.jsonErr': '请输入正确的JSON格式如{"a":1}',
'validation.invalidData': '无效输入!',
'validation.ipErr': '非法IP地址',
'validation.longDateTimeErr': '不符合规则的时间格式',
'tabs.more': '更多',
'widget.steps.done': '已完成',
'widget.steps.wait': '未开始',
'widget.steps.doing': '进行中',
'widget.alert.success': '成功了!',
'widget.alert.error': '出错了!',
'widget.alert.info': '帮助信息!',
'widget.alert.warning': '请注意!',
'widget.transfer.title.datalists': '所有数据列表',
'widget.transfer.title.selectedlists': '已选数据列表',
'widget.transfer.search.placeholder': '请输入要搜索的内容',
'widget.transfer.search.noMatch': '没有匹配到数据'
}
}
}
export default [
{
url: /services\/jalor\/web\/support\/workspace\/current/,
response: function response() {
return [200, data.env]
}
},
{
url: /services\/jalor\/resource\/i18nQuery\/findI18nMap/,
response: function response() {
return [200, data.lang.zhCN]
}
},
{
url: /only4ssoTimeUpdate.do/,
response: function response() {
return [200]
}
},
{
url: /services\/jalor\/security\/user\/list\/byids/,
proxy: 'mock/gateway/json/services/byids.json',
handleData: function handleData(data, config) {
let users = config.data
let res = users ? [] : data
if (users) {
data.forEach((item) => {
if (users.indexOf(item.userId) > -1) {
res.push(item)
}
})
}
return res
}
},
{
url: /services\/jalor\/security\/user\/list\/byaccounts/,
proxy: 'mock/gateway/json/services/byaccounts.json',
handleData: function handleData(data, config) {
let users = config.data
let res = users ? [] : data
if (users) {
data.forEach((item) => {
if (users.indexOf(item.userAccount) > -1) {
res.push(item)
}
})
}
return res
}
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/AreaServlet/,
proxy: 'mock/gateway/json/services/area.json',
handleData: function handleData(data, _ref) {
let _ref$params = _ref.params,
label = _ref$params.area_label,
parent = _ref$params.parent
let res = data[label]
if (parent) {
res = {
area: res.area.filter((item) => item.parent === parent)
}
}
return res
}
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/CurrencyServlet/,
proxy: 'mock/gateway/json/services/currency.json'
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/CountryServlet/,
proxy: 'mock/gateway/json/services/jalor.country.json'
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/CompanyServlet/,
proxy: 'mock/gateway/json/services/jalor.company.json'
},
{
url: /services\/getTreeMockData/,
proxy: 'mock/gateway/json/services/tree.json'
},
{
url: /services\/getSelectorMockData/,
proxy: 'mock/gateway/json/services/suggest.json'
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/PersonServlet/,
proxy: 'mock/gateway/json/services/jalor.user.json',
handleData: function handleData(data, _ref2) {
let empNo = _ref2.params.empNo
if (empNo) {
data = data.filter((item) => item.employee_Number === empNo)
}
return data[0]
}
},
{
url: /services\/jalor\/security\/user\/suggest/,
proxy: 'mock/gateway/json/services/byids.json',
handleData: function handleData(data, userData) {
let userData$params = userData.params,
params = userData$params === undefined ? {} : userData$params
let val = params.userCN || params
if (typeof val === 'string') {
data = data.filter((value) => (
value.userCN.indexOf(val) > -1 ||
value.userAccount.indexOf(val) > -1 ||
String(value.userId) === val
))
}
return data
}
},
{
url: /services\/jalor\/security\/user\/suggest/,
proxy: 'mock/gateway/json/services/byaccounts.json',
handleData: function handleData(data, _ref3) {
let _ref3$params = _ref3.params,
params = _ref3$params === undefined ? {} : _ref3$params
let val = params.userCN || params
if (typeof val === 'string') {
data = data.filter((item) => (
item.userCN.indexOf(val) > -1 ||
item.userAccount.indexOf(val) > -1 ||
String(item.userId) === val
))
}
return data
}
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/HRDepartmentServlet/,
proxy: 'mock/gateway/json/services/deptInfo.json',
handleData: function handleData(data, _ref4) {
let _ref4$params = _ref4.params,
params = _ref4$params === undefined ? {} : _ref4$params
let res = data[0]
if (params.code) {
res = data.filter((item) => item.dept_Code === params.code)[0]
}
return res
}
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/HRDeptListServlet/,
proxy: 'mock/gateway/json/services/deptList.json',
handleData: function handleData(data, _ref5) {
let _ref5$params = _ref5.params,
params = _ref5$params === undefined ? {} : _ref5$params
let searchKey = params.upperCode || '000001'
let res = data.filter((item) => item.upperCode === searchKey)[0]
return res
}
},
{
url: /servlet\/idataProxy\/params\/wsres\/soaservices\/dept\/list/,
proxy: 'mock/gateway/json/services/deptSearch.json',
handleData: function handleData(data, _ref6) {
let _ref6$params = _ref6.params,
params = _ref6$params === undefined ? {} : _ref6$params
let searchKey = params.searchValue || ''
let res = data.filter((item) => (
item.hrCode.indexOf(searchKey) > -1 ||
item.hrName.indexOf(searchKey) > -1
))
return { result: res }
}
},
{
url: /servlet\/idataProxy\/params\/ws\/soaservices\/HRApproverServlet/,
proxy: 'mock/gateway/json/services/hrapprover.json',
handleData: function handleData(data, _ref7) {
let _ref7$params = _ref7.params,
params = _ref7$params === undefined ? {} : _ref7$params
let res = data.filter((item) => params.code === item.dept_Code)
return { hrpa: res }
}
},
{
url: /services\/getDropdownProvince/,
response: function response() {
let data = [
{ prov: '广东' },
{ prov: '广西' },
{ prov: '北京' },
{ prov: '上海' }
]
return [200, data]
}
},
{
url: /services\/getDropCascadeData/,
response: function response(_ref8) {
let url = _ref8.url,
_ref8$params = _ref8.params
_ref8$params = _ref8$params === undefined ? {} : _ref8$params
let prov = _ref8$params.prov
let _Hae$String$getUrlPar = url // Hae.String.getUrlParams(url),
let type = _Hae$String$getUrlPar.params.type
let data = []
if (type === 'province') {
data = [{ province: '广东省' }, { province: '福建省' }]
}
if (type === 'city') {
switch (prov) {
case '广东省':
data = [{ city: '广州' }, { city: '深圳' }]
break
case '福建省':
data = [{ city: '龙岩' }, { city: '福州' }, { city: '厦门' }]
break
}
}
return [200, data]
}
},
{
url: /services\/forGridCascade\/getCascadeData/,
response: function response(_ref9) {
let url = _ref9.url, _ref9$params = _ref9.params
_ref9$params = _ref9$params === undefined ? {} : _ref9$params
let area = _ref9$params.area, prov = _ref9$params.prov, province = _ref9$params.province
let _Hae$String$getUrlPar2 = url // String.getUrlParams(url),
let type = _Hae$String$getUrlPar2.params.type
let data = void 0
if (type === 'area') {
data = [ { area: '华东区' },{ area: '华南区' },{ area: '华中区' },{ area: '西南区' }]
}
if (type === 'province') {
switch (area) {
case '华东区':
data = [{ province: '福建省' }]
break
case '华南区':
data = [{ province: '广东省' }, { province: '广西省' }]
break
case '华中区':
data = [{ province: '湖北省' }]
break
case '西南区':
data = [{ province: '云南省' }]
break
}
}
if (type === 'city') {
switch (prov || province) {
case '广东省':
data = [ { city: '广州' }, { city: '深圳' }, { city: '中山' }, { city: '韶关' },{ city: '珠海' }]
break
case '福建省':
data = [{ city: '龙岩' }, { city: '福州' }, { city: '厦门' }]
break
case '广西省':
data = [{ city: '南宁' }, { city: '北海' }, { city: '桂林' }]
break
case '云南省':
data = [{ city: '昆明' }, { city: '大理' }, { city: '西双版纳' }]
break
case '湖北省':
data = [{ city: '武汉' }, { city: '十堰' },{ city: '潜江' },{ city: '黄冈' },{ city: '赤壁' },{ city: '襄阳' }]
break
}
}
return [200, data]
}
},
{
url: /services\/getSuggestProvince/,
response: function response(_ref10) {
let params = _ref10.params
let data = [
{ prov: '广东省' },
{ prov: '广西省' },
{ prov: '福建省' },
{ prov: '云南省' }
]
let res = []
if (params) {
data.forEach((item) => {
if (item.prov.indexOf(params) > -1) {
res.push(item)
}
})
} else {
res = data
}
return [200, res]
}
},
{
url: /services\/getSuggestPopupData/,
proxy: 'mock/gateway/json/services/suggest.json',
handleData: function handleData(data, _ref11) {
let params = _ref11.params
let res = params && !params.pageVO ? [] : data
if (params && !params.pageVO) {
data.forEach((item) => {
if (item.name.indexOf(params) > -1) {
res.push(item)
}
})
}
return res
}
},
{
url: /services\/getGridMockData/,
proxy: 'mock/gateway/json/services/grid.json',
handleData: function handleData(datas, _ref12) {
let url = _ref12.url, _ref12$param = _ref12.param, param = _ref12$param === undefined ? {} : _ref12$param, data = _ref12.data
let name = void 0, key = void 0,area = void 0,filters = _ref12.filters
if (data && typeof data === 'string') {
let obj = JSON.parse(data)
if (obj) {
name = obj.name
key = obj.cascade || obj.id
}
if (obj.pageVO && obj.pageVO.filterStr) {
let filterStr = JSON.parse(obj.pageVO.filterStr)
filterStr.area && (area = filterStr.area.value)
}
}
if (filters && filters.city && filters.city.value) {
datas = datas.filter((item) => filters.city.value.indexOf(item.city) > -1)
}
if (key) {
let keys = key.split(',')
datas = datas.filter((item) => keys.indexOf(item.id) > -1)
}
if (name) {
datas = datas.filter((item) => (
name && item.name.toUpperCase().indexOf(name.toUpperCase()) > -1
))
}
if (area) {
datas = datas.filter((item) => area.indexOf(item.area) > -1)
}
if (typeof param.showPager === 'undefined' || param.showPager) {
let parts = url.split('/'),curPage = parseInt(parts[4]),pageSize = parseInt(parts[3]),offset = (curPage - 1) * pageSize
datas = {
pageVO: {
endIndex: offset + pageSize,
totalRows: datas.length,
curPage,
startIndex: offset + 1,
pageSize,
totalPages: Math.ceil(datas.length / pageSize)
},
result: datas.slice(offset, offset + pageSize),
}
}
return datas
}
},
{
url: /services\/getGridTreeMockData/,
proxy: 'mock/gateway/json/services/gridTree.json',
handleData: function handleData(datas, _ref13) {
let url = _ref13.url,
_ref13$param = _ref13.param,
param = _ref13$param === undefined ? {} : _ref13$param,
data = _ref13.data
if (data && typeof data === 'string') {
let key = JSON.parse(data).cascade || JSON.parse(data).id
if (key) {
let keys = key.split(',')
datas = datas.filter((item) => keys.indexOf(item.id) > -1)
}
}
if (typeof param.showPager === 'undefined' || param.showPager) {
let parts = url.split('/'),
curPage = parseInt(parts[4]),
pageSize = parseInt(parts[3]),
offset = (curPage - 1) * pageSize
datas = {
result: datas.slice(offset, offset + pageSize),
pageVO: {
startIndex: offset + 1,
endIndex: offset + pageSize,
totalRows: datas.length,
curPage,
pageSize,
totalPages: Math.ceil(datas.length / pageSize)
}
}
}
return datas
}
},
{
url: /servlet\/proxy\/params\/pbi/,
proxy: 'mock/gateway/json/services/pbi.json',
handleData: function handleData(datas, _ref14) {
let data = _ref14.data
let startIndex = data.lastIndexOf('<values>'),
endIndex = data.lastIndexOf('</values>'),
parentId = data.substring(startIndex + 8, endIndex),
key = 'p3'
if (parentId === '21796006') {
key = 'p2'
} else if (parentId === '21799321') {
key = 'p4'
} else if (parentId === '11499') {
key = 'p1'
}
return datas[key]
}
},
{
url: /services\/dataVerification/,
response: function response(config) {
let account = JSON.parse(config.data).account
let data = ['test1', 'test2', 'test3', 'test4', 'test5']
if (data.indexOf(account) > -1) {
return [200, { exist: true }]
} else {
return [200, { exist: false }]
}
}
},
{
url: /services\/jalor\/personalized\/setting\/createSingle/,
response: function response(config) {
let data = JSON.parse(config.data)
let resData = {}
resData.settingId = (data.settingId && data.settingId) || 0
resData.settingKey = (data.settingKey && data.settingKey) || null
resData.settingContent =
(data.settingContent && data.settingContent) || null
resData.numberOfSettings = 0
resData.userId = 0
resData.rowIdx = -1
resData.lastUpdateDate = null
resData.appName = 'vui'
return [200, resData]
}
},
{
url: /edoc\/upload/,
response: function response() {
let resData = {}
resData.hwDocumentCode = 'A1-35-36-79-50-7B-71-0F-9C-62'
resData.message = 'Operation Success'
resData.url = '//edoc-beta.huawei.com/edoc/EdocAction.do'
resData.status = 'success'
return [200, resData]
}
},
{
url: /servlet\/edm\/uploadDocumentServlet/,
response: function response() {
let resData = {}
resData.hwDocumentCode = 'A1-35-36-79-50-7B-71-0F-9C-62'
resData.message = 'Operation Success'
resData.edocUploadFileAction = '//edoc-beta.huawei.com/edoc/EdocAction.do'
resData.status = 'success'
return [200, resData]
}
},
{
url: /services\/getPopEditorData\/page\/\d+\/\d+/,
proxy: 'mock/gateway/json/services/grid.json',
handleData: function handleData(data, config) {
let param = config.data
let name = void 0
let contact = void 0
let res = []
if (param && JSON.parse(param)) {
param = JSON.parse(param)
name = param.name
contact = param.contact
data.forEach((item) => {
if (
(!name ||
item.name.toUpperCase().indexOf(name.toUpperCase()) > -1) &&
(!contact || item.contact.indexOf(contact) > -1)
) {
res.push(item)
}
})
data = res
}
if (typeof config.showPager === 'undefined' || config.showPager) {
let parts = config.url.split('/')
let curPage = parseInt(parts[4])
let pageSize = parseInt(parts[3])
let offset = (curPage - 1) * pageSize
data = {
result: data.slice(offset, offset + pageSize),
pageVO: {
startIndex: offset + 1,
endIndex: offset + pageSize,
totalRows: data.length,
curPage,
pageSize,
totalPages: Math.ceil(data.length / pageSize)
}
}
}
return data
}
},
{
url: /services\/getPopEditorData/,
proxy: 'mock/gateway/json/services/grid.json',
handleData: function handleData(datas, _ref15) {
let data = _ref15.data,
_ref15$params = _ref15.params
_ref15$params = _ref15$params === undefined ? {} : _ref15$params
let name = _ref15$params.name,
contact = _ref15$params.contact
if (data) {
datas = datas.filter((item) => data.indexOf(item.id) !== -1)
}
if (name || contact) {
datas = datas.filter((item) => (
(!name ||
item.name.toUpperCase().indexOf(name.toUpperCase()) > -1) &&
(!contact || item.contact.indexOf(contact) > -1)
))
}
return datas
}
},
{
url: /services\/getBadgeData/,
proxy: 'mock/gateway/json/services/badge.json'
},
{
url: /services\/getSlideBarData/,
proxy: 'mock/gateway/json/services/saasI18nGetInfoWithPage.json'
},
{
url: /services\/mapChina/,
proxy: 'mock/gateway/json/services/mapChina.json'
}
]