提交 9cdbaa8a 编写于 作者: ibizdev's avatar ibizdev

labxiekai 部署微服务应用

上级 6d04d237
...@@ -8,6 +8,7 @@ import { AppPopover } from './utils/app-popover/app-popover'; ...@@ -8,6 +8,7 @@ import { AppPopover } from './utils/app-popover/app-popover';
import { AppModal } from './utils/app-modal/app-modal'; import { AppModal } from './utils/app-modal/app-modal';
import { AppDrawer } from './utils/app-drawer/app-drawer'; import { AppDrawer } from './utils/app-drawer/app-drawer';
import { uiServiceRegister } from '@/uiservice/ui-service-register'; import { uiServiceRegister } from '@/uiservice/ui-service-register';
import { authServiceRegister } from '@/authservice/auth-service-register';
import { utilServiceRegister } from '@/utilservice/util-service-register'; import { utilServiceRegister } from '@/utilservice/util-service-register';
import { entityServiceRegister } from '@/service/entity-service-register'; import { entityServiceRegister } from '@/service/entity-service-register';
import { counterServiceRegister } from '@/counter/counter-service-register'; import { counterServiceRegister } from '@/counter/counter-service-register';
...@@ -79,6 +80,8 @@ import AppGroupSelect from './components/app-group-select/app-group-select.vue' ...@@ -79,6 +80,8 @@ import AppGroupSelect from './components/app-group-select/app-group-select.vue'
import UpdatePwd from './components/app-update-password/app-update-password.vue' import UpdatePwd from './components/app-update-password/app-update-password.vue'
// 全局挂载UI实体服务注册中心 // 全局挂载UI实体服务注册中心
window['uiServiceRegister'] = uiServiceRegister; window['uiServiceRegister'] = uiServiceRegister;
// 全局挂载实体权限服务注册中心
window['authServiceRegister'] = authServiceRegister;
// 全局挂载功能服务注册中心 // 全局挂载功能服务注册中心
window['utilServiceRegister'] = utilServiceRegister; window['utilServiceRegister'] = utilServiceRegister;
// 全局挂载数据服务注册中心 // 全局挂载数据服务注册中心
......
/**
* 实体权限服务注册中心
*
* @export
* @class AuthServiceRegister
*/
export class AuthServiceRegister {
/**
* 所有实体权限服务Map
*
* @protected
* @type {*}
* @memberof AuthServiceRegister
*/
protected allAuthService: Map<string, () => Promise<any>> = new Map();
/**
* 已加载实体权限服务Map缓存
*
* @protected
* @type {Map<string, any>}
* @memberof AuthServiceRegister
*/
protected serviceCache: Map<string, any> = new Map();
/**
* Creates an instance of AuthServiceRegister.
* @memberof AuthServiceRegister
*/
constructor() {
this.init();
}
/**
* 初始化
*
* @protected
* @memberof AuthServiceRegister
*/
protected init(): void {
this.allAuthService.set('jobslog', () => import('@/authservice/jobs-log/jobs-log-auth-service'));
this.allAuthService.set('sysrolepermission', () => import('@/authservice/sys-role-permission/sys-role-permission-auth-service'));
this.allAuthService.set('ibzpost', () => import('@/authservice/ibzpost/ibzpost-auth-service'));
this.allAuthService.set('sysuser', () => import('@/authservice/sys-user/sys-user-auth-service'));
this.allAuthService.set('sysauthlog', () => import('@/authservice/sys-auth-log/sys-auth-log-auth-service'));
this.allAuthService.set('wfmember', () => import('@/authservice/wfmember/wfmember-auth-service'));
this.allAuthService.set('wfuser', () => import('@/authservice/wfuser/wfuser-auth-service'));
this.allAuthService.set('ibzorganization', () => import('@/authservice/ibzorganization/ibzorganization-auth-service'));
this.allAuthService.set('jobsregistry', () => import('@/authservice/jobs-registry/jobs-registry-auth-service'));
this.allAuthService.set('dictcatalog', () => import('@/authservice/dict-catalog/dict-catalog-auth-service'));
this.allAuthService.set('wfgroup', () => import('@/authservice/wfgroup/wfgroup-auth-service'));
this.allAuthService.set('ibzteam', () => import('@/authservice/ibzteam/ibzteam-auth-service'));
this.allAuthService.set('jobsinfo', () => import('@/authservice/jobs-info/jobs-info-auth-service'));
this.allAuthService.set('wfremodel', () => import('@/authservice/wfremodel/wfremodel-auth-service'));
this.allAuthService.set('sysuserrole', () => import('@/authservice/sys-user-role/sys-user-role-auth-service'));
this.allAuthService.set('wfprocessdefinition', () => import('@/authservice/wfprocess-definition/wfprocess-definition-auth-service'));
this.allAuthService.set('sysrole', () => import('@/authservice/sys-role/sys-role-auth-service'));
this.allAuthService.set('ibzdeptmember', () => import('@/authservice/ibzdept-member/ibzdept-member-auth-service'));
this.allAuthService.set('ibzdepartment', () => import('@/authservice/ibzdepartment/ibzdepartment-auth-service'));
this.allAuthService.set('ibzteammember', () => import('@/authservice/ibzteam-member/ibzteam-member-auth-service'));
this.allAuthService.set('syspermission', () => import('@/authservice/sys-permission/sys-permission-auth-service'));
this.allAuthService.set('dictoption', () => import('@/authservice/dict-option/dict-option-auth-service'));
this.allAuthService.set('ibzemployee', () => import('@/authservice/ibzemployee/ibzemployee-auth-service'));
this.allAuthService.set('sysapp', () => import('@/authservice/sys-app/sys-app-auth-service'));
}
/**
* 加载实体权限服务
*
* @protected
* @param {string} serviceName
* @returns {Promise<any>}
* @memberof AuthServiceRegister
*/
protected async loadService(serviceName: string): Promise<any> {
const service = this.allAuthService.get(serviceName);
if (service) {
return service();
}
}
/**
* 获取应用实体权限服务
*
* @param {string} name
* @returns {Promise<any>}
* @memberof AuthServiceRegister
*/
public async getService(name: string): Promise<any> {
if (this.serviceCache.has(name)) {
return this.serviceCache.get(name);
}
const authService: any = await this.loadService(name);
if (authService && authService.default) {
const instance: any = new authService.default();
this.serviceCache.set(name, instance);
return instance;
}
}
}
export const authServiceRegister: AuthServiceRegister = new AuthServiceRegister();
\ No newline at end of file
import { Store } from 'vuex';
/**
* 实体权限服务
*
* @export
* @class AuthService
*/
export default class AuthService {
/**
* Vue 状态管理器
*
* @private
* @type {(any | null)}
* @memberof AuthService
*/
private $store: Store<any> | null = null;
/**
* Creates an instance of AuthService.
*
* @param {*} [opts={}]
* @memberof AuthService
*/
constructor(opts: any = {}) {
this.$store = opts.$store;
}
/**
* 获取状态管理器
*
* @returns {(any | null)}
* @memberof AuthService
*/
public getStore(): Store<any> | null {
return this.$store;
}
/**
* 获取实体权限服务
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof AuthService
*/
public getService(name: string): Promise<any> {
return (window as any)['authServiceRegister'].getService(name);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof AuthService
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
/**
* 根据菜单项获取菜单权限
*
* @param {*} item 菜单标识
* @returns {boolean}
* @memberof AuthService
*/
public getMenusPermission(item:any):boolean{
return true;
}
/**
* 根据统一资源标识获取统一资源权限
*
* @param {*} tag 统一资源标识
* @returns {boolean}
* @memberof AuthService
*/
public getResourcePermission(tag:any):boolean{
return true;
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 字典权限服务对象基类
*
* @export
* @class DictCatalogAuthServiceBase
* @extends {AuthService}
*/
export default class DictCatalogAuthServiceBase extends AuthService {
/**
* Creates an instance of DictCatalogAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof DictCatalogAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof DictCatalogAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import DictCatalogAuthServiceBase from './dict-catalog-auth-service-base';
/**
* 字典权限服务对象
*
* @export
* @class DictCatalogAuthService
* @extends {DictCatalogAuthServiceBase}
*/
export default class DictCatalogAuthService extends DictCatalogAuthServiceBase {
/**
* Creates an instance of DictCatalogAuthService.
*
* @param {*} [opts={}]
* @memberof DictCatalogAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 字典项权限服务对象基类
*
* @export
* @class DictOptionAuthServiceBase
* @extends {AuthService}
*/
export default class DictOptionAuthServiceBase extends AuthService {
/**
* Creates an instance of DictOptionAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof DictOptionAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof DictOptionAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import DictOptionAuthServiceBase from './dict-option-auth-service-base';
/**
* 字典项权限服务对象
*
* @export
* @class DictOptionAuthService
* @extends {DictOptionAuthServiceBase}
*/
export default class DictOptionAuthService extends DictOptionAuthServiceBase {
/**
* Creates an instance of DictOptionAuthService.
*
* @param {*} [opts={}]
* @memberof DictOptionAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 部门权限服务对象基类
*
* @export
* @class IBZDepartmentAuthServiceBase
* @extends {AuthService}
*/
export default class IBZDepartmentAuthServiceBase extends AuthService {
/**
* Creates an instance of IBZDepartmentAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZDepartmentAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof IBZDepartmentAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import IBZDepartmentAuthServiceBase from './ibzdepartment-auth-service-base';
/**
* 部门权限服务对象
*
* @export
* @class IBZDepartmentAuthService
* @extends {IBZDepartmentAuthServiceBase}
*/
export default class IBZDepartmentAuthService extends IBZDepartmentAuthServiceBase {
/**
* Creates an instance of IBZDepartmentAuthService.
*
* @param {*} [opts={}]
* @memberof IBZDepartmentAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 部门成员权限服务对象基类
*
* @export
* @class IBZDeptMemberAuthServiceBase
* @extends {AuthService}
*/
export default class IBZDeptMemberAuthServiceBase extends AuthService {
/**
* Creates an instance of IBZDeptMemberAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZDeptMemberAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof IBZDeptMemberAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import IBZDeptMemberAuthServiceBase from './ibzdept-member-auth-service-base';
/**
* 部门成员权限服务对象
*
* @export
* @class IBZDeptMemberAuthService
* @extends {IBZDeptMemberAuthServiceBase}
*/
export default class IBZDeptMemberAuthService extends IBZDeptMemberAuthServiceBase {
/**
* Creates an instance of IBZDeptMemberAuthService.
*
* @param {*} [opts={}]
* @memberof IBZDeptMemberAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 人员权限服务对象基类
*
* @export
* @class IBZEmployeeAuthServiceBase
* @extends {AuthService}
*/
export default class IBZEmployeeAuthServiceBase extends AuthService {
/**
* Creates an instance of IBZEmployeeAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZEmployeeAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof IBZEmployeeAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import IBZEmployeeAuthServiceBase from './ibzemployee-auth-service-base';
/**
* 人员权限服务对象
*
* @export
* @class IBZEmployeeAuthService
* @extends {IBZEmployeeAuthServiceBase}
*/
export default class IBZEmployeeAuthService extends IBZEmployeeAuthServiceBase {
/**
* Creates an instance of IBZEmployeeAuthService.
*
* @param {*} [opts={}]
* @memberof IBZEmployeeAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 单位机构权限服务对象基类
*
* @export
* @class IBZOrganizationAuthServiceBase
* @extends {AuthService}
*/
export default class IBZOrganizationAuthServiceBase extends AuthService {
/**
* Creates an instance of IBZOrganizationAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZOrganizationAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof IBZOrganizationAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import IBZOrganizationAuthServiceBase from './ibzorganization-auth-service-base';
/**
* 单位机构权限服务对象
*
* @export
* @class IBZOrganizationAuthService
* @extends {IBZOrganizationAuthServiceBase}
*/
export default class IBZOrganizationAuthService extends IBZOrganizationAuthServiceBase {
/**
* Creates an instance of IBZOrganizationAuthService.
*
* @param {*} [opts={}]
* @memberof IBZOrganizationAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 岗位权限服务对象基类
*
* @export
* @class IBZPostAuthServiceBase
* @extends {AuthService}
*/
export default class IBZPostAuthServiceBase extends AuthService {
/**
* Creates an instance of IBZPostAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZPostAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof IBZPostAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import IBZPostAuthServiceBase from './ibzpost-auth-service-base';
/**
* 岗位权限服务对象
*
* @export
* @class IBZPostAuthService
* @extends {IBZPostAuthServiceBase}
*/
export default class IBZPostAuthService extends IBZPostAuthServiceBase {
/**
* Creates an instance of IBZPostAuthService.
*
* @param {*} [opts={}]
* @memberof IBZPostAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 组成员权限服务对象基类
*
* @export
* @class IBZTeamMemberAuthServiceBase
* @extends {AuthService}
*/
export default class IBZTeamMemberAuthServiceBase extends AuthService {
/**
* Creates an instance of IBZTeamMemberAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZTeamMemberAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof IBZTeamMemberAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import IBZTeamMemberAuthServiceBase from './ibzteam-member-auth-service-base';
/**
* 组成员权限服务对象
*
* @export
* @class IBZTeamMemberAuthService
* @extends {IBZTeamMemberAuthServiceBase}
*/
export default class IBZTeamMemberAuthService extends IBZTeamMemberAuthServiceBase {
/**
* Creates an instance of IBZTeamMemberAuthService.
*
* @param {*} [opts={}]
* @memberof IBZTeamMemberAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 组权限服务对象基类
*
* @export
* @class IBZTeamAuthServiceBase
* @extends {AuthService}
*/
export default class IBZTeamAuthServiceBase extends AuthService {
/**
* Creates an instance of IBZTeamAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBZTeamAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof IBZTeamAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import IBZTeamAuthServiceBase from './ibzteam-auth-service-base';
/**
* 组权限服务对象
*
* @export
* @class IBZTeamAuthService
* @extends {IBZTeamAuthServiceBase}
*/
export default class IBZTeamAuthService extends IBZTeamAuthServiceBase {
/**
* Creates an instance of IBZTeamAuthService.
*
* @param {*} [opts={}]
* @memberof IBZTeamAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 任务信息权限服务对象基类
*
* @export
* @class JobsInfoAuthServiceBase
* @extends {AuthService}
*/
export default class JobsInfoAuthServiceBase extends AuthService {
/**
* Creates an instance of JobsInfoAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof JobsInfoAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof JobsInfoAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import JobsInfoAuthServiceBase from './jobs-info-auth-service-base';
/**
* 任务信息权限服务对象
*
* @export
* @class JobsInfoAuthService
* @extends {JobsInfoAuthServiceBase}
*/
export default class JobsInfoAuthService extends JobsInfoAuthServiceBase {
/**
* Creates an instance of JobsInfoAuthService.
*
* @param {*} [opts={}]
* @memberof JobsInfoAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 任务调度日志权限服务对象基类
*
* @export
* @class JobsLogAuthServiceBase
* @extends {AuthService}
*/
export default class JobsLogAuthServiceBase extends AuthService {
/**
* Creates an instance of JobsLogAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof JobsLogAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof JobsLogAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import JobsLogAuthServiceBase from './jobs-log-auth-service-base';
/**
* 任务调度日志权限服务对象
*
* @export
* @class JobsLogAuthService
* @extends {JobsLogAuthServiceBase}
*/
export default class JobsLogAuthService extends JobsLogAuthServiceBase {
/**
* Creates an instance of JobsLogAuthService.
*
* @param {*} [opts={}]
* @memberof JobsLogAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 任务注册信息权限服务对象基类
*
* @export
* @class JobsRegistryAuthServiceBase
* @extends {AuthService}
*/
export default class JobsRegistryAuthServiceBase extends AuthService {
/**
* Creates an instance of JobsRegistryAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof JobsRegistryAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof JobsRegistryAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import JobsRegistryAuthServiceBase from './jobs-registry-auth-service-base';
/**
* 任务注册信息权限服务对象
*
* @export
* @class JobsRegistryAuthService
* @extends {JobsRegistryAuthServiceBase}
*/
export default class JobsRegistryAuthService extends JobsRegistryAuthServiceBase {
/**
* Creates an instance of JobsRegistryAuthService.
*
* @param {*} [opts={}]
* @memberof JobsRegistryAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 应用权限服务对象基类
*
* @export
* @class SysAppAuthServiceBase
* @extends {AuthService}
*/
export default class SysAppAuthServiceBase extends AuthService {
/**
* Creates an instance of SysAppAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof SysAppAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof SysAppAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import SysAppAuthServiceBase from './sys-app-auth-service-base';
/**
* 应用权限服务对象
*
* @export
* @class SysAppAuthService
* @extends {SysAppAuthServiceBase}
*/
export default class SysAppAuthService extends SysAppAuthServiceBase {
/**
* Creates an instance of SysAppAuthService.
*
* @param {*} [opts={}]
* @memberof SysAppAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 认证日志权限服务对象基类
*
* @export
* @class SysAuthLogAuthServiceBase
* @extends {AuthService}
*/
export default class SysAuthLogAuthServiceBase extends AuthService {
/**
* Creates an instance of SysAuthLogAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof SysAuthLogAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof SysAuthLogAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import SysAuthLogAuthServiceBase from './sys-auth-log-auth-service-base';
/**
* 认证日志权限服务对象
*
* @export
* @class SysAuthLogAuthService
* @extends {SysAuthLogAuthServiceBase}
*/
export default class SysAuthLogAuthService extends SysAuthLogAuthServiceBase {
/**
* Creates an instance of SysAuthLogAuthService.
*
* @param {*} [opts={}]
* @memberof SysAuthLogAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 权限/资源权限服务对象基类
*
* @export
* @class SysPermissionAuthServiceBase
* @extends {AuthService}
*/
export default class SysPermissionAuthServiceBase extends AuthService {
/**
* Creates an instance of SysPermissionAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof SysPermissionAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof SysPermissionAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import SysPermissionAuthServiceBase from './sys-permission-auth-service-base';
/**
* 权限/资源权限服务对象
*
* @export
* @class SysPermissionAuthService
* @extends {SysPermissionAuthServiceBase}
*/
export default class SysPermissionAuthService extends SysPermissionAuthServiceBase {
/**
* Creates an instance of SysPermissionAuthService.
*
* @param {*} [opts={}]
* @memberof SysPermissionAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 角色权限关系权限服务对象基类
*
* @export
* @class SysRolePermissionAuthServiceBase
* @extends {AuthService}
*/
export default class SysRolePermissionAuthServiceBase extends AuthService {
/**
* Creates an instance of SysRolePermissionAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof SysRolePermissionAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof SysRolePermissionAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import SysRolePermissionAuthServiceBase from './sys-role-permission-auth-service-base';
/**
* 角色权限关系权限服务对象
*
* @export
* @class SysRolePermissionAuthService
* @extends {SysRolePermissionAuthServiceBase}
*/
export default class SysRolePermissionAuthService extends SysRolePermissionAuthServiceBase {
/**
* Creates an instance of SysRolePermissionAuthService.
*
* @param {*} [opts={}]
* @memberof SysRolePermissionAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 系统角色权限服务对象基类
*
* @export
* @class SysRoleAuthServiceBase
* @extends {AuthService}
*/
export default class SysRoleAuthServiceBase extends AuthService {
/**
* Creates an instance of SysRoleAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof SysRoleAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof SysRoleAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import SysRoleAuthServiceBase from './sys-role-auth-service-base';
/**
* 系统角色权限服务对象
*
* @export
* @class SysRoleAuthService
* @extends {SysRoleAuthServiceBase}
*/
export default class SysRoleAuthService extends SysRoleAuthServiceBase {
/**
* Creates an instance of SysRoleAuthService.
*
* @param {*} [opts={}]
* @memberof SysRoleAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 用户角色关系权限服务对象基类
*
* @export
* @class SysUserRoleAuthServiceBase
* @extends {AuthService}
*/
export default class SysUserRoleAuthServiceBase extends AuthService {
/**
* Creates an instance of SysUserRoleAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof SysUserRoleAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof SysUserRoleAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import SysUserRoleAuthServiceBase from './sys-user-role-auth-service-base';
/**
* 用户角色关系权限服务对象
*
* @export
* @class SysUserRoleAuthService
* @extends {SysUserRoleAuthServiceBase}
*/
export default class SysUserRoleAuthService extends SysUserRoleAuthServiceBase {
/**
* Creates an instance of SysUserRoleAuthService.
*
* @param {*} [opts={}]
* @memberof SysUserRoleAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 系统用户权限服务对象基类
*
* @export
* @class SysUserAuthServiceBase
* @extends {AuthService}
*/
export default class SysUserAuthServiceBase extends AuthService {
/**
* Creates an instance of SysUserAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof SysUserAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import SysUserAuthServiceBase from './sys-user-auth-service-base';
/**
* 系统用户权限服务对象
*
* @export
* @class SysUserAuthService
* @extends {SysUserAuthServiceBase}
*/
export default class SysUserAuthService extends SysUserAuthServiceBase {
/**
* Creates an instance of SysUserAuthService.
*
* @param {*} [opts={}]
* @memberof SysUserAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 角色/用户组权限服务对象基类
*
* @export
* @class WFGroupAuthServiceBase
* @extends {AuthService}
*/
export default class WFGroupAuthServiceBase extends AuthService {
/**
* Creates an instance of WFGroupAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof WFGroupAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof WFGroupAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import WFGroupAuthServiceBase from './wfgroup-auth-service-base';
/**
* 角色/用户组权限服务对象
*
* @export
* @class WFGroupAuthService
* @extends {WFGroupAuthServiceBase}
*/
export default class WFGroupAuthService extends WFGroupAuthServiceBase {
/**
* Creates an instance of WFGroupAuthService.
*
* @param {*} [opts={}]
* @memberof WFGroupAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 成员权限服务对象基类
*
* @export
* @class WFMemberAuthServiceBase
* @extends {AuthService}
*/
export default class WFMemberAuthServiceBase extends AuthService {
/**
* Creates an instance of WFMemberAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof WFMemberAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof WFMemberAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import WFMemberAuthServiceBase from './wfmember-auth-service-base';
/**
* 成员权限服务对象
*
* @export
* @class WFMemberAuthService
* @extends {WFMemberAuthServiceBase}
*/
export default class WFMemberAuthService extends WFMemberAuthServiceBase {
/**
* Creates an instance of WFMemberAuthService.
*
* @param {*} [opts={}]
* @memberof WFMemberAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 流程定义权限服务对象基类
*
* @export
* @class WFProcessDefinitionAuthServiceBase
* @extends {AuthService}
*/
export default class WFProcessDefinitionAuthServiceBase extends AuthService {
/**
* Creates an instance of WFProcessDefinitionAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof WFProcessDefinitionAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof WFProcessDefinitionAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import WFProcessDefinitionAuthServiceBase from './wfprocess-definition-auth-service-base';
/**
* 流程定义权限服务对象
*
* @export
* @class WFProcessDefinitionAuthService
* @extends {WFProcessDefinitionAuthServiceBase}
*/
export default class WFProcessDefinitionAuthService extends WFProcessDefinitionAuthServiceBase {
/**
* Creates an instance of WFProcessDefinitionAuthService.
*
* @param {*} [opts={}]
* @memberof WFProcessDefinitionAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 流程模型权限服务对象基类
*
* @export
* @class WFREModelAuthServiceBase
* @extends {AuthService}
*/
export default class WFREModelAuthServiceBase extends AuthService {
/**
* Creates an instance of WFREModelAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof WFREModelAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof WFREModelAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import WFREModelAuthServiceBase from './wfremodel-auth-service-base';
/**
* 流程模型权限服务对象
*
* @export
* @class WFREModelAuthService
* @extends {WFREModelAuthServiceBase}
*/
export default class WFREModelAuthService extends WFREModelAuthServiceBase {
/**
* Creates an instance of WFREModelAuthService.
*
* @param {*} [opts={}]
* @memberof WFREModelAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import AuthService from '../auth-service';
/**
* 用户权限服务对象基类
*
* @export
* @class WFUserAuthServiceBase
* @extends {AuthService}
*/
export default class WFUserAuthServiceBase extends AuthService {
/**
* Creates an instance of WFUserAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof WFUserAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {string} name 实体名称
* @returns {Promise<any>}
* @memberof WFUserAuthServiceBase
*/
public async getOPPrivs(data:any):Promise<any>{
return null;
}
}
\ No newline at end of file
import WFUserAuthServiceBase from './wfuser-auth-service-base';
/**
* 用户权限服务对象
*
* @export
* @class WFUserAuthService
* @extends {WFUserAuthServiceBase}
*/
export default class WFUserAuthService extends WFUserAuthServiceBase {
/**
* Creates an instance of WFUserAuthService.
*
* @param {*} [opts={}]
* @memberof WFUserAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -66,7 +66,7 @@ export default class AppAddressSelection extends Vue { ...@@ -66,7 +66,7 @@ export default class AppAddressSelection extends Vue {
axios.get("../../assets/json/city_code.json").then((response: any) => { axios.get("../../assets/json/city_code.json").then((response: any) => {
this.format(response.data); this.format(response.data);
}).catch((response: any) => { }).catch((response: any) => {
console.log("城市数据加载失败"); console.log((this.$t('components.appAddressSelection.loadDataFail') as string));
}); });
......
...@@ -276,7 +276,7 @@ export default class AppCheckBox extends Vue { ...@@ -276,7 +276,7 @@ export default class AppCheckBox extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any)=>{ }).catch((error:any)=>{
console.log(`----${this.tag}----代码表不存在!`); console.log(`----${this.tag}----${(this.$t('components.appCheckBoxList.notExist') as string)}`);
}) })
} }
} }
......
...@@ -191,7 +191,7 @@ export default class AppColumnLink extends Vue { ...@@ -191,7 +191,7 @@ export default class AppColumnLink extends Vue {
private openRedirectView($event: any, view: any, data: any): void { private openRedirectView($event: any, view: any, data: any): void {
this.$http.get(view.url, data).then((response: any) => { this.$http.get(view.url, data).then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '请求异常' }); this.$Notice.error({ title: (this.$t('components.appColumnLink.error') as string), desc: (this.$t('components.appColumnLink.requestError') as string) });
} }
if (response.status === 401) { if (response.status === 401) {
return; return;
...@@ -243,7 +243,7 @@ export default class AppColumnLink extends Vue { ...@@ -243,7 +243,7 @@ export default class AppColumnLink extends Vue {
} }
}).catch((response: any) => { }).catch((response: any) => {
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
this.$Notice.error({ title: '错误', desc: '系统异常!' }); this.$Notice.error({ title: (this.$t('components.appColumnLink.error') as string), desc: (this.$t('components.appColumnLink.systemError') as string) });
return; return;
} }
if (response.status === 401) { if (response.status === 401) {
......
...@@ -443,13 +443,13 @@ export default class AppDataUploadView extends Vue { ...@@ -443,13 +443,13 @@ export default class AppDataUploadView extends Vue {
if (codelist) { if (codelist) {
resolve([...JSON.parse(JSON.stringify(codelist.items))]); resolve([...JSON.parse(JSON.stringify(codelist.items))]);
} else { } else {
console.log(`----${codeListObject.tag}----代码表不存在`); console.log(`----${codeListObject.tag}----${(this.$t('components.appDataUpload.notExist') as string)}`);
} }
}else if(codeListObject.tag && Object.is(codeListObject.type,"DYNAMIC")){ }else if(codeListObject.tag && Object.is(codeListObject.type,"DYNAMIC")){
this.codeListService.getItems(codeListObject.tag).then((res:any) => { this.codeListService.getItems(codeListObject.tag).then((res:any) => {
resolve(res); resolve(res);
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${codeListObject.tag}----代码表不存在`); console.log(`----${codeListObject.tag}----${(this.$t('components.appDataUpload.notExist') as string)}`);
}); });
} }
}) })
......
...@@ -131,7 +131,7 @@ export default class AppDepartmentSelect extends Vue { ...@@ -131,7 +131,7 @@ export default class AppDepartmentSelect extends Vue {
this.$store.commit('addDepData', { srfkey: this.filter, orgData: response.data }); this.$store.commit('addDepData', { srfkey: this.filter, orgData: response.data });
}).catch((response: any) => { }).catch((response: any) => {
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
this.$Notice.error({ title: '错误', desc: '系统异常!' }); this.$Notice.error({ title: (this.$t('components.appDepartmentSelect.error') as string), desc: (this.$t('components.appDepartmentSelect.systemError') as string) });
return; return;
} }
}); });
......
...@@ -107,18 +107,18 @@ export default class AppExportExcel extends Vue { ...@@ -107,18 +107,18 @@ export default class AppExportExcel extends Vue {
this.visible = false; this.visible = false;
} else if (Object.is(type, 'custom')) { } else if (Object.is(type, 'custom')) {
if (!this.startPage || !this.endPage) { if (!this.startPage || !this.endPage) {
this.$Notice.warning({ title: '警告', desc: '请输入起始页' }); this.$Notice.warning({ title: (this.$t('components.appExportExcel.warning') as string), desc: (this.$t('components.appExportExcel.desc') as string) });
return; return;
} }
const startPage: any = Number.parseInt(this.startPage, 10); const startPage: any = Number.parseInt(this.startPage, 10);
const endPage: any = Number.parseInt(this.endPage, 10); const endPage: any = Number.parseInt(this.endPage, 10);
if (Number.isNaN(startPage) || Number.isNaN(endPage)) { if (Number.isNaN(startPage) || Number.isNaN(endPage)) {
this.$Notice.warning({ title: '警告', desc: '请输入有效的起始页' }); this.$Notice.warning({ title: (this.$t('components.appExportExcel.warning') as string), desc: (this.$t('components.appExportExcel.desc1') as string) });
return; return;
} }
if (startPage < 1 || endPage < 1 || startPage > endPage) { if (startPage < 1 || endPage < 1 || startPage > endPage) {
this.$Notice.warning({ title: '警告', desc: '请输入有效的起始页' }); this.$Notice.warning({ title: (this.$t('components.appExportExcel.warning') as string), desc: (this.$t('components.appExportExcel.desc1') as string) });
return; return;
} }
this.startPage = null; this.startPage = null;
......
...@@ -136,7 +136,8 @@ export default class AppFileUpload extends Vue { ...@@ -136,7 +136,8 @@ export default class AppFileUpload extends Vue {
if (this.ignorefieldvaluechange) { if (this.ignorefieldvaluechange) {
return; return;
} }
this.setFiles(newval) this.getParams();
this.setFiles(newval);
this.dataProcess(); this.dataProcess();
} }
...@@ -288,6 +289,7 @@ export default class AppFileUpload extends Vue { ...@@ -288,6 +289,7 @@ export default class AppFileUpload extends Vue {
this.formStateEvent = this.formState.subscribe(($event: any) => { this.formStateEvent = this.formState.subscribe(($event: any) => {
// 表单加载完成 // 表单加载完成
if (Object.is($event.type, 'load')) { if (Object.is($event.type, 'load')) {
this.getParams();
this.setFiles(this.value); this.setFiles(this.value);
this.dataProcess(); this.dataProcess();
} }
...@@ -303,27 +305,36 @@ export default class AppFileUpload extends Vue { ...@@ -303,27 +305,36 @@ export default class AppFileUpload extends Vue {
*/ */
public mounted() { public mounted() {
this.appData = this.$store.getters.getAppData(); this.appData = this.$store.getters.getAppData();
this.getParams();
this.setFiles(this.value);
this.dataProcess();
}
let uploadparams: any = {}; /**
let exportparams: any = {}; *获取上传,导出参数
*
*@memberof AppFileUpload
*/
public getParams(){
let uploadparams: any = JSON.parse(JSON.stringify(this.uploadparams));
let exportparams: any = JSON.parse(JSON.stringify(this.exportparams));
let upload_params: Array<string> = []; let upload_params: Array<string> = [];
let export_params: Array<string> = []; let export_params: Array<string> = [];
let custom_arr: Array<string> = [];
let param:any = this.viewparams; let param:any = this.viewparams;
let context:any = this.context; let context:any = this.context;
let _data:any = JSON.parse(this.data); let _data:any = JSON.parse(this.data);
if (this.uploadparams && !Object.is(this.uploadparams, '')) { if (this.uploadparams && !Object.is(this.uploadparams, '')) {
uploadparams = this.uploadparams;
upload_params = this.$util.computedNavData(_data,param,context,uploadparams); upload_params = this.$util.computedNavData(_data,param,context,uploadparams);
} }
if (this.exportparams && !Object.is(this.exportparams, '')) { if (this.exportparams && !Object.is(this.exportparams, '')) {
exportparams = this.exportparams;
export_params = this.$util.computedNavData(_data,param,context,exportparams); export_params = this.$util.computedNavData(_data,param,context,exportparams);
} }
this.upload_params = [];
this.export_params = [];
for (const item in upload_params) { for (const item in upload_params) {
this.upload_params.push({ this.upload_params.push({
...@@ -335,9 +346,6 @@ export default class AppFileUpload extends Vue { ...@@ -335,9 +346,6 @@ export default class AppFileUpload extends Vue {
[item]:export_params[item] [item]:export_params[item]
}) })
} }
this.setFiles(this.value);
this.dataProcess();
} }
/** /**
......
...@@ -386,7 +386,7 @@ export default class AppFormDRUIPart extends Vue { ...@@ -386,7 +386,7 @@ export default class AppFormDRUIPart extends Vue {
* @memberof AppFormDRUIPart * @memberof AppFormDRUIPart
*/ */
public mditemsload(){ public mditemsload(){
console.log('多数据视图加载完成,触发后续表单项更新'); console.log((this.$t('components.appFormDRUIPart.viewLoadComp') as string));
} }
/** /**
...@@ -397,7 +397,7 @@ export default class AppFormDRUIPart extends Vue { ...@@ -397,7 +397,7 @@ export default class AppFormDRUIPart extends Vue {
*/ */
public drdatasaved($event:any){ public drdatasaved($event:any){
this.$emit('drdatasaved',$event); this.$emit('drdatasaved',$event);
console.log(this.viewname+'关系数据保存完成'); console.log(this.viewname+(this.$t('components.appFormDRUIPart.save') as string));
} }
/** /**
...@@ -407,7 +407,7 @@ export default class AppFormDRUIPart extends Vue { ...@@ -407,7 +407,7 @@ export default class AppFormDRUIPart extends Vue {
* @memberof AppFormDRUIPart * @memberof AppFormDRUIPart
*/ */
public drdatachange(){ public drdatachange(){
console.log('DEMEDITVIEW9 关系数据值变化'); console.log('DEMEDITVIEW9 '+(this.$t('components.appFormDRUIPart.change') as string));
} }
/** /**
...@@ -417,7 +417,7 @@ export default class AppFormDRUIPart extends Vue { ...@@ -417,7 +417,7 @@ export default class AppFormDRUIPart extends Vue {
* @memberof AppFormDRUIPart * @memberof AppFormDRUIPart
*/ */
public viewdataschange(){ public viewdataschange(){
console.log('视图数据变化'); console.log((this.$t('components.appFormDRUIPart.change1') as string));
} }
/** /**
...@@ -427,7 +427,7 @@ export default class AppFormDRUIPart extends Vue { ...@@ -427,7 +427,7 @@ export default class AppFormDRUIPart extends Vue {
* @memberof AppFormDRUIPart * @memberof AppFormDRUIPart
*/ */
public viewload(){ public viewload(){
console.log('视图加载完成'); console.log((this.$t('components.appFormDRUIPart.loadComp') as string));
} }
} }
</script> </script>
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</div> </div>
</div> </div>
<div class="ibiz-group-footer"> <div class="ibiz-group-footer">
<el-button size="small" type="primary" @click="onOK">确认</el-button> <el-button size="small" type="primary" @click="onOK">{{$t('components.appGroupPicker.ok')}}</el-button>
<el-button size="small" @click="onCancel">取消</el-button> <el-button size="small" @click="onCancel">{{$t('components.appGroupPicker.cancel')}}</el-button>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -171,7 +171,7 @@ export default class AppGroupSelect extends Vue { ...@@ -171,7 +171,7 @@ export default class AppGroupSelect extends Vue {
public openView() { public openView() {
const view: any = { const view: any = {
viewname: 'app-group-picker', viewname: 'app-group-picker',
title: '分组选择' title: (this.$t('components.appGroupSelect.groupSelect') as string)
}; };
const context: any = JSON.parse(JSON.stringify(this.context)); const context: any = JSON.parse(JSON.stringify(this.context));
let filtervalue:string = ""; let filtervalue:string = "";
......
...@@ -135,6 +135,7 @@ export default class AppImageUpload extends Vue { ...@@ -135,6 +135,7 @@ export default class AppImageUpload extends Vue {
if (this.ignorefieldvaluechange) { if (this.ignorefieldvaluechange) {
return; return;
} }
this.getParams();
this.setFiles(newval) this.setFiles(newval)
this.dataProcess(); this.dataProcess();
} }
...@@ -294,6 +295,7 @@ export default class AppImageUpload extends Vue { ...@@ -294,6 +295,7 @@ export default class AppImageUpload extends Vue {
this.formStateEvent = this.formState.subscribe(($event: any) => { this.formStateEvent = this.formState.subscribe(($event: any) => {
// 表单加载完成 // 表单加载完成
if (Object.is($event.type, 'load')) { if (Object.is($event.type, 'load')) {
this.getParams();
this.setFiles(this.value); this.setFiles(this.value);
this.dataProcess(); this.dataProcess();
} }
...@@ -308,26 +310,37 @@ export default class AppImageUpload extends Vue { ...@@ -308,26 +310,37 @@ export default class AppImageUpload extends Vue {
*/ */
public mounted() { public mounted() {
this.appData = this.$store.getters.getAppData(); this.appData = this.$store.getters.getAppData();
this.getParams();
this.setFiles(this.value);
this.dataProcess();
}
let uploadparams: any = {}; /**
let exportparams: any = {}; *获取上传,导出参数
*
*@memberof AppImageUpload
*/
public getParams(){
let uploadparams: any = JSON.parse(JSON.stringify(this.uploadparams));
let exportparams: any = JSON.parse(JSON.stringify(this.exportparams));
let upload_params: Array<string> = []; let upload_params: Array<string> = [];
let export_params: Array<string> = []; let export_params: Array<string> = [];
let custom_arr: Array<string> = [];
let param:any = this.viewparams; let param:any = this.viewparams;
let context:any = this.context; let context:any = this.context;
let _data:any = JSON.parse(this.data); let _data:any = JSON.parse(this.data);
if (this.uploadparams && !Object.is(this.uploadparams, '')) { if (this.uploadparams && !Object.is(this.uploadparams, '')) {
uploadparams = this.uploadparams; upload_params = this.$util.computedNavData(_data,param,context,uploadparams);
upload_params = this.$util.computedNavData(_data,param,context,uploadparams);
} }
if (this.exportparams && !Object.is(this.exportparams, '')) { if (this.exportparams && !Object.is(this.exportparams, '')) {
exportparams = this.exportparams;
export_params = this.$util.computedNavData(_data,param,context,exportparams); export_params = this.$util.computedNavData(_data,param,context,exportparams);
} }
this.upload_params = [];
this.export_params = [];
for (const item in upload_params) { for (const item in upload_params) {
this.upload_params.push({ this.upload_params.push({
[item]:upload_params[item] [item]:upload_params[item]
...@@ -338,9 +351,6 @@ export default class AppImageUpload extends Vue { ...@@ -338,9 +351,6 @@ export default class AppImageUpload extends Vue {
[item]:export_params[item] [item]:export_params[item]
}) })
} }
this.setFiles(this.value);
this.dataProcess();
} }
/** /**
...@@ -397,7 +407,7 @@ export default class AppImageUpload extends Vue { ...@@ -397,7 +407,7 @@ export default class AppImageUpload extends Vue {
* @memberof AppImageUpload * @memberof AppImageUpload
*/ */
public onError(error: any, file: any, fileList: any) { public onError(error: any, file: any, fileList: any) {
this.$Notice.error({ title: '上传失败' }); this.$Notice.error({ title: (this.$t('components.appImageUpload.uploadFail') as string) });
} }
/** /**
......
...@@ -183,7 +183,7 @@ export default class AppOrgSelect extends Vue { ...@@ -183,7 +183,7 @@ export default class AppOrgSelect extends Vue {
} }
Http.getInstance().get(requestUrl).then((res:any) =>{ Http.getInstance().get(requestUrl).then((res:any) =>{
if(!res.status && res.status !== 200){ if(!res.status && res.status !== 200){
console.error("加载数据失败"); console.error((this.$t('components.appOrgSelect.loadFail') as string));
return; return;
} }
this.NodesData = res.data; this.NodesData = res.data;
......
...@@ -242,7 +242,7 @@ export default class AppPicker extends Vue { ...@@ -242,7 +242,7 @@ export default class AppPicker extends Vue {
* @param {*} oldVal * @param {*} oldVal
* @memberof AppPicker * @memberof AppPicker
*/ */
@Watch('value',{immediate: true}) @Watch('value')
public onValueChange(newVal: any, oldVal: any) { public onValueChange(newVal: any, oldVal: any) {
this.curvalue = newVal; this.curvalue = newVal;
if (Object.is(this.editortype, 'dropdown') && this.valueitem) { if (Object.is(this.editortype, 'dropdown') && this.valueitem) {
......
...@@ -88,7 +88,7 @@ export default class AppRadioGroup extends Vue { ...@@ -88,7 +88,7 @@ export default class AppRadioGroup extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any)=>{ }).catch((error:any)=>{
console.log(`----${this.tag}----代码表不存在!`); console.log(`----${this.tag}----${(this.$t('components.appRadioGroup.notExist') as string)}`);
}) })
} }
} }
...@@ -204,7 +204,7 @@ export default class AppRadioGroup extends Vue { ...@@ -204,7 +204,7 @@ export default class AppRadioGroup extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any)=>{ }).catch((error:any)=>{
console.log(`----${this.tag}----代码表不存在!`); console.log(`----${this.tag}----${(this.$t('components.appRadioGroup.notExist') as string)}`);
}) })
} }
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
v-model="dataRight" v-model="dataRight"
:data="dataLeft" :data="dataLeft"
@change="dataChange" @change="dataChange"
:titles="['未选择', '已选择']"/> :titles="titles"/>
</Select> </Select>
</template> </template>
...@@ -123,6 +123,13 @@ export default class AppTransfer extends Vue { ...@@ -123,6 +123,13 @@ export default class AppTransfer extends Vue {
*/ */
@Model("change") public itemValue!: any; @Model("change") public itemValue!: any;
/**
* 左右侧标题
* @type{Array<string>}
* @memberof AppTransfer
*/
public titles:Array<string>=[(this.$t('components.appTransfer.title1') as string), (this.$t('components.appTransfer.title2') as string)]
/** /**
* 左侧框数据 * 左侧框数据
* *
...@@ -167,7 +174,7 @@ export default class AppTransfer extends Vue { ...@@ -167,7 +174,7 @@ export default class AppTransfer extends Vue {
this.dataLeft = [...JSON.parse(JSON.stringify(codelist.items))]; this.dataLeft = [...JSON.parse(JSON.stringify(codelist.items))];
this.initData() this.initData()
} else { } else {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.appTransfer.notExist') as string)}`);
} }
} else if (this.tag && Object.is(this.codelistType, "DYNAMIC")) { } else if (this.tag && Object.is(this.codelistType, "DYNAMIC")) {
// 处理公共参数 // 处理公共参数
...@@ -183,7 +190,7 @@ export default class AppTransfer extends Vue { ...@@ -183,7 +190,7 @@ export default class AppTransfer extends Vue {
this.initData() this.initData()
}) })
.catch((error: any) => { .catch((error: any) => {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.appTransfer.notExist') as string)}`);
}); });
} }
} }
......
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
<div class="update-password"> <div class="update-password">
<div class="password-item"> <div class="password-item">
<label for> <label for>
原密码: {{$t('components.appUpdatePassword.oldPwd')}}
<Input type="password" v-model="oldPwd" @on-blur="oldPwdVaild"/> <Input type="password" v-model="oldPwd" @on-blur="oldPwdVaild"/>
</label> </label>
</div> </div>
<div class="password-item"> <div class="password-item">
<label for> <label for>
新密码: {{$t('components.appUpdatePassword.newPwd')}}
<Input type="password" v-model="newPwd" @on-blur="newPwdVaild"/> <Input type="password" v-model="newPwd" @on-blur="newPwdVaild"/>
</label> </label>
</div> </div>
<div class="password-item"> <div class="password-item">
<label for> <label for>
确认密码: {{$t('components.appUpdatePassword.confirmPwd')}}
<Input type="password" v-model="confirmPwd" :disabled="!this.newPwd" @on-blur="confirmVaild" /> <Input type="password" v-model="confirmPwd" :disabled="!this.newPwd" @on-blur="confirmVaild" />
</label> </label>
</div> </div>
<div class="password-item password-btn"> <div class="password-item password-btn">
<Button type="primary" long :disabled="!oldPwd || !newPwd || !confirmPwd || disUpdate" @click="updatePwd">确认修改</Button> <Button type="primary" long :disabled="!oldPwd || !newPwd || !confirmPwd || disUpdate" @click="updatePwd">{{$t('components.appUpdatePassword.sure')}}</Button>
</div> </div>
</div> </div>
</template> </template>
...@@ -73,7 +73,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -73,7 +73,7 @@ export default class AppUpdatePassword extends Vue {
public oldPwdVaild(){ public oldPwdVaild(){
if(!this.oldPwd){ if(!this.oldPwd){
this.$Notice.error({ this.$Notice.error({
title:'原密码不能为空!', title: (this.$t('components.appUpdatePassword.oldPwdErr') as string),
duration: 3 duration: 3
}); });
} }
...@@ -88,7 +88,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -88,7 +88,7 @@ export default class AppUpdatePassword extends Vue {
public newPwdVaild(){ public newPwdVaild(){
if(!this.newPwd){ if(!this.newPwd){
this.$Notice.error({ this.$Notice.error({
title:'新密码不能为空!', title: (this.$t('components.appUpdatePassword.newPwdErr') as string),
duration: 3 duration: 3
}); });
} }
...@@ -104,7 +104,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -104,7 +104,7 @@ export default class AppUpdatePassword extends Vue {
if (this.newPwd && this.confirmPwd) { if (this.newPwd && this.confirmPwd) {
if (this.confirmPwd !== this.newPwd) { if (this.confirmPwd !== this.newPwd) {
this.$Notice.error({ this.$Notice.error({
title:'两次输入密码不一致!', title: (this.$t('components.appUpdatePassword.confirmPwdErr') as string),
duration: 3 duration: 3
}); });
}else{ }else{
...@@ -136,7 +136,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -136,7 +136,7 @@ export default class AppUpdatePassword extends Vue {
} }
}).catch((error: any) =>{ }).catch((error: any) =>{
this.$Notice.error({ this.$Notice.error({
title:'系统异常', title: (this.$t('components.appUpdatePassword.error') as string),
duration: 3 duration: 3
}); });
console.error(error); console.error(error);
......
...@@ -51,7 +51,7 @@ export default class AppUser extends Vue { ...@@ -51,7 +51,7 @@ export default class AppUser extends Vue {
} }
}); });
}else if (Object.is(data, 'updatepwd')) { }else if (Object.is(data, 'updatepwd')) {
let container: Subject<any> = this.$appmodal.openModal({ viewname: 'app-update-password', title: "修改密码", width: 500, height: 400, }, {}, {}); let container: Subject<any> = this.$appmodal.openModal({ viewname: 'app-update-password', title: (this.$t('components.appUser.changepwd') as string), width: 500, height: 400, }, {}, {});
container.subscribe((result: any) => { container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
return; return;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class='app-wf-approval'> <div class='app-wf-approval'>
<div class="app-wf-approval-header"> <div class="app-wf-approval-header">
<span class="approval-header-left">{{data.startTime}}</span> <span class="approval-header-left">{{data.startTime}}</span>
<span>{{data.startUserName}}提交</span> <span>{{data.startUserName}}{{$t('components.appWFApproval.commit')}}</span>
</div> </div>
<div class="app-wf-approval-content" v-if="data.usertasks && data.usertasks.length >0"> <div class="app-wf-approval-content" v-if="data.usertasks && data.usertasks.length >0">
<div class="approval-content-item" v-for="(usertask,index) in data.usertasks" :key="index"> <div class="approval-content-item" v-for="(usertask,index) in data.usertasks" :key="index">
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</div> </div>
<div class="approval-content-item-right"> <div class="approval-content-item-right">
<div class="approval-content-item-wait" v-if="usertask.identitylinks.length >0"> <div class="approval-content-item-wait" v-if="usertask.identitylinks.length >0">
等待<span v-for="(identitylink,inx) in usertask.identitylinks" :key="inx">{{identitylink.displayname}}<span v-if="inx >0"></span></span>处理 {{$t('components.appWFApproval.wait')}}<span v-for="(identitylink,inx) in usertask.identitylinks" :key="inx">{{identitylink.displayname}}<span v-if="inx >0"></span></span>{{$t('components.appWFApproval.handle')}}
</div> </div>
<div class="approval-content-item-info" v-if="usertask.comments.length >0"> <div class="approval-content-item-info" v-if="usertask.comments.length >0">
<div v-for="(comment,commentInx) in usertask.comments" :key="commentInx"> <div v-for="(comment,commentInx) in usertask.comments" :key="commentInx">
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
</div> </div>
</div> </div>
<div class="approval-content-item-memo" v-if="usertask.userTaskId === viewparams.userTaskId"> <div class="approval-content-item-memo" v-if="usertask.userTaskId === viewparams.userTaskId">
<el-input type="textarea" v-model="initmemo" :rows="2" @blur="handleBlur" placeholder="请输入内容"></el-input> <el-input type="textarea" v-model="initmemo" :rows="2" @blur="handleBlur" :placeholder="$t('components.appWFApproval.placeholder')"></el-input>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="app-wf-approval-bottom"> <div class="app-wf-approval-bottom">
<span v-if="data.endTime">{{data.endTime}}结束</span> <span v-if="data.endTime">{{data.endTime}}{{$t('components.appWFApproval.end')}}</span>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -192,7 +192,7 @@ export default class CodeList extends Vue { ...@@ -192,7 +192,7 @@ export default class CodeList extends Vue {
let items = res; let items = res;
_this.setItems(items, _this); _this.setItems(items, _this);
}).catch((error: any) => { }).catch((error: any) => {
console.log(`----${_this.tag}----代码表不存在`); console.log(`----${_this.tag}----${(this.$t('components.codeList.notExist') as string)}`);
}); });
// 静态处理 // 静态处理
} else if(Object.is(this.codelistType, "STATIC")){ } else if(Object.is(this.codelistType, "STATIC")){
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<Icon type="md-apps" /> <Icon type="md-apps" />
</div> </div>
<div class="content"> <div class="content">
<span>全部应用</span> <span>{{$t('components.contextMenuDrag.allApp')}}</span>
</div> </div>
<div class="forward"> <div class="forward">
<Icon type="ios-arrow-forward" /> <Icon type="ios-arrow-forward" />
...@@ -221,7 +221,7 @@ export default class ContextMenuDrag extends Vue { ...@@ -221,7 +221,7 @@ export default class ContextMenuDrag extends Vue {
const put: Promise<any> = this.entityService.updateChooseApp(null,params); const put: Promise<any> = this.entityService.updateChooseApp(null,params);
window.location.href = item.addr; window.location.href = item.addr;
}else{ }else{
this.$message.info("未找到该应用"); this.$message.info((this.$t('components.contextMenuDrag.noFind') as string));
} }
} }
......
...@@ -201,7 +201,7 @@ export default class DropDownListDynamic extends Vue { ...@@ -201,7 +201,7 @@ export default class DropDownListDynamic extends Vue {
if (codelist) { if (codelist) {
this.items = [...JSON.parse(JSON.stringify(codelist.items))]; this.items = [...JSON.parse(JSON.stringify(codelist.items))];
} else { } else {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownListDynamic.notExist') as string)}`);
} }
}else if(this.tag && Object.is(this.codelistType,"DYNAMIC")){ }else if(this.tag && Object.is(this.codelistType,"DYNAMIC")){
// 公共参数处理 // 公共参数处理
...@@ -213,7 +213,7 @@ export default class DropDownListDynamic extends Vue { ...@@ -213,7 +213,7 @@ export default class DropDownListDynamic extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownListDynamic.notExist') as string)}`);
}); });
} }
} }
...@@ -236,7 +236,7 @@ export default class DropDownListDynamic extends Vue { ...@@ -236,7 +236,7 @@ export default class DropDownListDynamic extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownListDynamic.notExist') as string)}`);
}); });
} }
} }
......
...@@ -3,14 +3,15 @@ ...@@ -3,14 +3,15 @@
class='dropdown-list-mpicker' class='dropdown-list-mpicker'
multiple multiple
:transfer="true" :transfer="true"
transfer-class-name="dropdown-list-mpicker-transfer"
v-model="currentVal" v-model="currentVal"
:disabled="disabled === true ? true : false" :disabled="disabled === true ? true : false"
:clearable="true" :clearable="true"
:filterable="filterable === true ? true : false" :filterable="filterable === true ? true : false"
@on-open-change="onClick" @on-open-change="onClick"
:placeholder="$t('components.dropDownListMpicker.placeholder')"> :placeholder="$t('components.dropDownListMpicker.placeholder')">
<i-option v-for="(item, index) in items" :key="index" :value="item.value" :label="item.text"> <i-option v-for="(item, index) in items" :key="index" :value="item.value.toString()" :label="item.text">
<Checkbox :value = "(currentVal.indexOf(item.value))==-1?false:true"> <Checkbox :value = "(currentVal.indexOf(item.value.toString()))==-1?false:true">
{{Object.is(codelistType,'STATIC') ? $t('codelist.'+tag+'.'+item.value) : item.text}} {{Object.is(codelistType,'STATIC') ? $t('codelist.'+tag+'.'+item.value) : item.text}}
</Checkbox> </Checkbox>
</i-option> </i-option>
...@@ -186,7 +187,7 @@ export default class DropDownListMpicker extends Vue { ...@@ -186,7 +187,7 @@ export default class DropDownListMpicker extends Vue {
if (codelist) { if (codelist) {
this.items = [...JSON.parse(JSON.stringify(codelist.items))]; this.items = [...JSON.parse(JSON.stringify(codelist.items))];
} else { } else {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownListMpicker.notExist') as string)}`);
} }
}else if(this.tag && Object.is(this.codelistType,"DYNAMIC")){ }else if(this.tag && Object.is(this.codelistType,"DYNAMIC")){
// 公共参数处理 // 公共参数处理
...@@ -198,7 +199,7 @@ export default class DropDownListMpicker extends Vue { ...@@ -198,7 +199,7 @@ export default class DropDownListMpicker extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownListMpicker.notExist') as string)}`);
}); });
} }
} }
...@@ -220,7 +221,7 @@ export default class DropDownListMpicker extends Vue { ...@@ -220,7 +221,7 @@ export default class DropDownListMpicker extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownListMpicker.notExist') as string)}`);
}); });
} }
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
:filterable="filterable === true ? true : false" :filterable="filterable === true ? true : false"
@on-open-change="onClick" @on-open-change="onClick"
:placeholder="$t('components.dropDownList.placeholder')"> :placeholder="$t('components.dropDownList.placeholder')">
<i-option v-for="(item, index) in items" :key="index" :value="item.value">{{($t('codelist.'+tag+'.'+item.value)!== ('codelist.'+tag+'.'+item.value))?$t('codelist.'+tag+'.'+item.value) : item.text}}</i-option> <i-option v-for="(item, index) in items" :key="index" :value="item.value.toString()">{{($t('codelist.'+tag+'.'+item.value)!== ('codelist.'+tag+'.'+item.value))?$t('codelist.'+tag+'.'+item.value) : item.text}}</i-option>
</i-select> </i-select>
</template> </template>
...@@ -157,7 +157,7 @@ export default class DropDownList extends Vue { ...@@ -157,7 +157,7 @@ export default class DropDownList extends Vue {
* @memberof DropDownList * @memberof DropDownList
*/ */
get currentVal() { get currentVal() {
return this.itemValue; return this.itemValue ? this.itemValue.toString() : undefined;
} }
/** /**
...@@ -201,7 +201,7 @@ export default class DropDownList extends Vue { ...@@ -201,7 +201,7 @@ export default class DropDownList extends Vue {
if (codelist) { if (codelist) {
this.items = [...JSON.parse(JSON.stringify(codelist.items))]; this.items = [...JSON.parse(JSON.stringify(codelist.items))];
} else { } else {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownList.notExist') as string)}`);
} }
}else if(this.tag && Object.is(this.codelistType,"DYNAMIC")){ }else if(this.tag && Object.is(this.codelistType,"DYNAMIC")){
// 公共参数处理 // 公共参数处理
...@@ -213,7 +213,7 @@ export default class DropDownList extends Vue { ...@@ -213,7 +213,7 @@ export default class DropDownList extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownList.notExist') as string)}`);
}); });
} }
} }
...@@ -236,7 +236,7 @@ export default class DropDownList extends Vue { ...@@ -236,7 +236,7 @@ export default class DropDownList extends Vue {
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => { this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res; this.items = res;
}).catch((error:any) => { }).catch((error:any) => {
console.log(`----${this.tag}----代码表不存在`); console.log(`----${this.tag}----${(this.$t('components.dropDownList.notExist') as string)}`);
}); });
} }
} }
......
<template> <template>
<el-select size="small" class="filter-mode" placeholder="条件逻辑" v-model="curVal" @change="onChange"> <el-select size="small" class="filter-mode" :placeholder="$t('components.filterMode.placeholder')" v-model="curVal" @change="onChange">
<el-option <el-option
v-for="mode in filterMode" v-for="mode in filterMode"
:key="mode.value" :key="mode.value"
......
...@@ -7,15 +7,15 @@ ...@@ -7,15 +7,15 @@
<el-option v-for="mode in relationModes" :key="mode.value" :label="getLabel(mode)" :value="mode.value"></el-option> <el-option v-for="mode in relationModes" :key="mode.value" :label="getLabel(mode)" :value="mode.value"></el-option>
</el-select> </el-select>
<div class="filter-tree-action"> <div class="filter-tree-action">
<i-button title="添加条件" @click="onAddItem(data)"><i class="fa fa-plus" aria-hidden="true"></i> 添加条件</i-button> <i-button :title="$t('components.filterTree.title1')" @click="onAddItem(data)"><i class="fa fa-plus" aria-hidden="true"></i> {{$t('components.filterTree.title1')}}</i-button>
<i-button title="添加组" @click="onAddGroup(data)"><i class="fa fa-plus" aria-hidden="true"></i> 添加组</i-button> <i-button :title="$t('components.filterTree.title2')" @click="onAddGroup(data)"><i class="fa fa-plus" aria-hidden="true"></i> {{$t('components.filterTree.title2')}}</i-button>
<icon v-if="!data.isroot" type="md-close" @click="onRemoveItem(node, data)"/> <icon v-if="!data.isroot" type="md-close" @click="onRemoveItem(node, data)"/>
</div> </div>
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="filter-tree-item"> <div class="filter-tree-item">
<el-select size="small" class="filter-item-field" v-model="data.field" clearable placeholder="属性" @change="onFieldChange(data)"> <el-select size="small" class="filter-item-field" v-model="data.field" clearable :placeholder="$t('components.filterTree.placeholder')" @change="onFieldChange(data)">
<el-option <el-option
v-for="item in fields" v-for="item in fields"
:key="item.prop" :key="item.prop"
......
<template> <template>
<div class="input-unit"> <div class="input-unit">
<InputNumber v-if="type === 'number'" <InputNumber v-if="type === 'number'"
:id="numberId"
:placeholder="placeholder" :placeholder="placeholder"
:size="size" :size="size"
:precision="precision" :precision="precision"
v-model="CurrentVal" v-model="CurrentVal"
:disabled="disabled ? true : false" :disabled="disabled ? true : false"
:formatter="formatter"
:parser="parser"
></InputNumber> ></InputNumber>
<i-input v-else <i-input v-else
:placeholder="placeholder" :placeholder="placeholder"
...@@ -27,6 +30,7 @@ import { debounceTime, distinctUntilChanged } from "rxjs/operators"; ...@@ -27,6 +30,7 @@ import { debounceTime, distinctUntilChanged } from "rxjs/operators";
@Component({}) @Component({})
export default class InputBox extends Vue { export default class InputBox extends Vue {
/** /**
* 双向绑定值 * 双向绑定值
* @type {any} * @type {any}
...@@ -40,11 +44,12 @@ export default class InputBox extends Vue { ...@@ -40,11 +44,12 @@ export default class InputBox extends Vue {
* @memberof InputBox * @memberof InputBox
*/ */
public mounted(){ public mounted(){
this.addEvent();
if(this.textareaId){ if(this.textareaId){
let textarea :any= document.getElementById(this.textareaId); let textarea :any= document.getElementById(this.textareaId);
if(textarea){ if(textarea){
textarea.style=this.textareaStyle; textarea.style=this.textareaStyle;
} }
} }
} }
...@@ -114,6 +119,11 @@ export default class InputBox extends Vue { ...@@ -114,6 +119,11 @@ export default class InputBox extends Vue {
*/ */
@Prop() public autoSize?: any; @Prop() public autoSize?: any;
/**
* 数值框numberId
*/
public numberId :string= this.$util.createUUID();
/** /**
* 当前值 * 当前值
* *
...@@ -158,6 +168,51 @@ export default class InputBox extends Vue { ...@@ -158,6 +168,51 @@ export default class InputBox extends Vue {
} }
return $event; return $event;
} }
/**
* 给数值框中的箭头按钮添加事件
*
* @memberof InputBox
*/
public addEvent(){
if(Object.is(this.type, "number")){
let inputNumber :any = document.getElementById(this.numberId);
let handlerWrap :any = inputNumber.firstElementChild;
handlerWrap.onmouseover=()=>{
inputNumber.style.paddingRight="15px";
inputNumber.style.transition="all 0.2s linear";
}
handlerWrap.onmouseout=()=>{
inputNumber.style.paddingRight="0px";
}
}
}
/**
* 指定输入框展示值的格式
*/
public formatter(value:any){
console.log(this.precision);
if(this.precision===0) return this.CurrentVal;
if(value.indexOf('.')!==-1){
let arr:Array<any> = value.split('.');
if(arr[1]==='00'){
return arr[0];
}
if(parseInt(arr[1])%10===0){
return arr[0]+'.'+parseInt(arr[1])/10;
}
}
return value;
}
/**
* 指定从 formatter 里转换回数字的方式
*/
public parser(value:any){
if(this.precision===0) return this.CurrentVal;
return value;
}
} }
</script> </script>
......
import { UIServiceRegister } from '@/uiservice/ui-service-register'; import { UIServiceRegister } from '@/uiservice/ui-service-register';
import { AuthServiceRegister } from '@/authservice/auth-service-register';
import { UtilServiceRegister } from '@/utilservice/util-service-register'; import { UtilServiceRegister } from '@/utilservice/util-service-register';
import { EntityServiceRegister } from '@/service/entity-service-register'; import { EntityServiceRegister } from '@/service/entity-service-register';
import { CounterServiceRegister } from '@/counter/counter-service-register'; import { CounterServiceRegister } from '@/counter/counter-service-register';
...@@ -6,8 +7,9 @@ import { CounterServiceRegister } from '@/counter/counter-service-register'; ...@@ -6,8 +7,9 @@ import { CounterServiceRegister } from '@/counter/counter-service-register';
declare global { declare global {
interface Window { interface Window {
uiServiceRegister: UIServiceRegister, uiServiceRegister: UIServiceRegister,
utilServiceRegister:UtilServiceRegister, authServiceRegister: AuthServiceRegister,
entityServiceRegister:EntityServiceRegister, utilServiceRegister: UtilServiceRegister,
counterServiceRegister:CounterServiceRegister entityServiceRegister: EntityServiceRegister,
counterServiceRegister: CounterServiceRegister
} }
} }
\ No newline at end of file
...@@ -953,6 +953,7 @@ export default class IndexBase extends Vue implements ControlInterface { ...@@ -953,6 +953,7 @@ export default class IndexBase extends Vue implements ControlInterface {
public handleMenusResource(inputMenus:Array<any>){ public handleMenusResource(inputMenus:Array<any>){
if(Environment.enablePermissionValid){ if(Environment.enablePermissionValid){
this.computedEffectiveMenus(inputMenus); this.computedEffectiveMenus(inputMenus);
this.computeParentMenus(inputMenus);
} }
this.dataProcess(inputMenus); this.dataProcess(inputMenus);
this.menus = inputMenus; this.menus = inputMenus;
...@@ -961,7 +962,7 @@ export default class IndexBase extends Vue implements ControlInterface { ...@@ -961,7 +962,7 @@ export default class IndexBase extends Vue implements ControlInterface {
/** /**
* 计算有效菜单项 * 计算有效菜单项
* *
* @param {*} data * @param {*} inputMenus
* @memberof IndexBase * @memberof IndexBase
*/ */
public computedEffectiveMenus(inputMenus:Array<any>){ public computedEffectiveMenus(inputMenus:Array<any>){
...@@ -975,6 +976,29 @@ export default class IndexBase extends Vue implements ControlInterface { ...@@ -975,6 +976,29 @@ export default class IndexBase extends Vue implements ControlInterface {
}) })
} }
/**
* 计算父项菜单项是否隐藏
*
* @param {*} inputMenus
* @memberof IndexBase
*/
public computeParentMenus(inputMenus:Array<any>){
if(inputMenus && inputMenus.length >0){
inputMenus.forEach((item:any) =>{
if(item.hidden && item.items && item.items.length >0){
item.items.map((singleItem:any) =>{
if(!singleItem.hidden){
item.hidden = false;
}
if(singleItem.items && singleItem.items.length >0){
this.computeParentMenus(singleItem.items);
}
})
}
})
}
}
/** /**
* 数据处理 * 数据处理
* *
......
...@@ -181,7 +181,7 @@ export default class ControlService { ...@@ -181,7 +181,7 @@ export default class ControlService {
let dataItems: any[] = model.getDataItems(); let dataItems: any[] = model.getDataItems();
dataItems.forEach(dataitem => { dataItems.forEach(dataitem => {
let val = data.hasOwnProperty(dataitem.prop) ? data[dataitem.prop] : null; let val = data.hasOwnProperty(dataitem.prop) ? data[dataitem.prop] : null;
if (!val) { if (val === null) {
val = data.hasOwnProperty(dataitem.name) ? data[dataitem.name] : null; val = data.hasOwnProperty(dataitem.name) ? data[dataitem.name] : null;
} }
if((isCreate === undefined || isCreate === null ) && Object.is(dataitem.dataType, 'GUID') && Object.is(dataitem.name, 'srfkey') && (val && !Object.is(val, ''))){ if((isCreate === undefined || isCreate === null ) && Object.is(dataitem.dataType, 'GUID') && Object.is(dataitem.name, 'srfkey') && (val && !Object.is(val, ''))){
......
...@@ -37,6 +37,11 @@ ...@@ -37,6 +37,11 @@
git clone -b master $para2 ibzrt/ git clone -b master $para2 ibzrt/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzrt/ cd ibzrt/
mvn clean package -Pweb
cd ibzrt-app/ibzrt-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzrt-app-web.yaml ibzlab-rt --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzrt-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzrt-app-web.jar
EXPOSE 8080 EXPOSE 30000
ADD ibzrt-app-web.jar /ibzrt-app-web.jar ADD ibzrt-app-web.jar /ibzrt-app-web.jar
...@@ -3,9 +3,22 @@ services: ...@@ -3,9 +3,22 @@ services:
ibzrt-app-web: ibzrt-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzrt-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzrt-app-web:latest
ports: ports:
- "8080:8080" - "30000:30000"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
- SERVER_PORT=30000
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
- SPRING_REDIS_HOST=172.16.100.243
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
- SPRING_DATASOURCE_PASSWORD=@6dEfb3@
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
- NACOS=172.16.102.211:8848
deploy: deploy:
resources: resources:
limits: limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册