提交 28f13b5c 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 8c5efe88
...@@ -131,6 +131,14 @@ export default class AppFormGroup extends Vue { ...@@ -131,6 +131,14 @@ export default class AppFormGroup extends Vue {
*/ */
@Prop() public titleStyle?:string; @Prop() public titleStyle?:string;
/**
* 分组图标
*
* @type {string}
* @memberof AppFormGroup
*/
@Prop() public iconInfo?:any;
/** /**
* 是否显示标题 * 是否显示标题
* *
......
<template> <template>
<div class="view-container sys-permissionedit-view"> <div class="view-container deeditview sys-permissionedit-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissioneditview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissioneditview"></app-studioaction>
<card class='view-card ' :disHover="true" :bordered="false"> <card class='view-card ' :disHover="true" :bordered="false">
...@@ -1154,6 +1154,8 @@ export default class SYS_PERMISSIONEditViewBase extends Vue { ...@@ -1154,6 +1154,8 @@ export default class SYS_PERMISSIONEditViewBase extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class="view-container sys-permissionedit-view2"> <div class="view-container deeditview2 sys-permissionedit-view2">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissioneditview2"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissioneditview2"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
...@@ -1186,6 +1186,8 @@ export default class SYS_PERMISSIONEditView2Base extends Vue { ...@@ -1186,6 +1186,8 @@ export default class SYS_PERMISSIONEditView2Base extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class='view-container sys-permissiongrid-view'> <div class='view-container degridview sys-permissiongrid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissiongridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissiongridview"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
<p slot='title'> <p slot='title'>
......
<template> <template>
<div class="view-container sys-permissionmpickup-view"> <div class="view-container dempickupview sys-permissionmpickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionmpickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionmpickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class='view-container sys-permissionpickup-grid-view'> <div class='view-container depickupgridview sys-permissionpickup-grid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionpickupgridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionpickupgridview"></app-studioaction>
<card class='view-card view-no-caption' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption' :dis-hover="true" :bordered="false">
<div class='content-container pickup-grid-view'> <div class='content-container pickup-grid-view'>
......
<template> <template>
<div class="view-container sys-permissionpickup-view"> <div class="view-container depickupview sys-permissionpickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionpickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionpickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class="view-container sys-permissionredirect-view"> <div class="view-container deredirectview sys-permissionredirect-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionredirectview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_permissionredirectview"></app-studioaction>
</div> </div>
</template> </template>
......
<template> <template>
<div class="view-container sys-role-permissionedit-view"> <div class="view-container deeditview sys-role-permissionedit-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissioneditview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissioneditview"></app-studioaction>
<card class='view-card ' :disHover="true" :bordered="false"> <card class='view-card ' :disHover="true" :bordered="false">
...@@ -1154,6 +1154,8 @@ export default class SYS_ROLE_PERMISSIONEditViewBase extends Vue { ...@@ -1154,6 +1154,8 @@ export default class SYS_ROLE_PERMISSIONEditViewBase extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class="view-container sys-role-permissionedit-view2"> <div class="view-container deeditview2 sys-role-permissionedit-view2">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissioneditview2"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissioneditview2"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
...@@ -1186,6 +1186,8 @@ export default class SYS_ROLE_PERMISSIONEditView2Base extends Vue { ...@@ -1186,6 +1186,8 @@ export default class SYS_ROLE_PERMISSIONEditView2Base extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class='view-container sys-role-permissiongrid-view'> <div class='view-container degridview sys-role-permissiongrid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissiongridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissiongridview"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
<p slot='title'> <p slot='title'>
......
<template> <template>
<div class="view-container sys-role-permissionmpickup-view"> <div class="view-container dempickupview sys-role-permissionmpickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionmpickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionmpickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class='view-container sys-role-permissionpickup-grid-view'> <div class='view-container depickupgridview sys-role-permissionpickup-grid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionpickupgridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionpickupgridview"></app-studioaction>
<card class='view-card view-no-caption' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption' :dis-hover="true" :bordered="false">
<div class='content-container pickup-grid-view'> <div class='content-container pickup-grid-view'>
......
<template> <template>
<div class="view-container sys-role-permissionpickup-view"> <div class="view-container depickupview sys-role-permissionpickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionpickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionpickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class="view-container sys-role-permissionredirect-view"> <div class="view-container deredirectview sys-role-permissionredirect-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionredirectview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_role_permissionredirectview"></app-studioaction>
</div> </div>
</template> </template>
......
<template> <template>
<div class="view-container sys-roleedit-view"> <div class="view-container deeditview sys-roleedit-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_roleeditview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_roleeditview"></app-studioaction>
<card class='view-card ' :disHover="true" :bordered="false"> <card class='view-card ' :disHover="true" :bordered="false">
...@@ -1154,6 +1154,8 @@ export default class SYS_ROLEEditViewBase extends Vue { ...@@ -1154,6 +1154,8 @@ export default class SYS_ROLEEditViewBase extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class="view-container sys-roleedit-view2"> <div class="view-container deeditview2 sys-roleedit-view2">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_roleeditview2"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_roleeditview2"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
...@@ -1186,6 +1186,8 @@ export default class SYS_ROLEEditView2Base extends Vue { ...@@ -1186,6 +1186,8 @@ export default class SYS_ROLEEditView2Base extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class='view-container sys-rolegrid-view'> <div class='view-container degridview sys-rolegrid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolegridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolegridview"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
<p slot='title'> <p slot='title'>
......
<template> <template>
<div class="view-container sys-rolempickup-view"> <div class="view-container dempickupview sys-rolempickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolempickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolempickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class='view-container sys-rolepickup-grid-view'> <div class='view-container depickupgridview sys-rolepickup-grid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolepickupgridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolepickupgridview"></app-studioaction>
<card class='view-card view-no-caption' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption' :dis-hover="true" :bordered="false">
<div class='content-container pickup-grid-view'> <div class='content-container pickup-grid-view'>
......
<template> <template>
<div class="view-container sys-rolepickup-view"> <div class="view-container depickupview sys-rolepickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolepickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_rolepickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class="view-container sys-roleredirect-view"> <div class="view-container deredirectview sys-roleredirect-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_roleredirectview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_roleredirectview"></app-studioaction>
</div> </div>
</template> </template>
......
<template> <template>
<div class="view-container sys-user-roleedit-view"> <div class="view-container deeditview sys-user-roleedit-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_roleeditview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_roleeditview"></app-studioaction>
<card class='view-card ' :disHover="true" :bordered="false"> <card class='view-card ' :disHover="true" :bordered="false">
...@@ -1154,6 +1154,8 @@ export default class SYS_USER_ROLEEditViewBase extends Vue { ...@@ -1154,6 +1154,8 @@ export default class SYS_USER_ROLEEditViewBase extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class="view-container sys-user-roleedit-view2"> <div class="view-container deeditview2 sys-user-roleedit-view2">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_roleeditview2"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_roleeditview2"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
...@@ -1186,6 +1186,8 @@ export default class SYS_USER_ROLEEditView2Base extends Vue { ...@@ -1186,6 +1186,8 @@ export default class SYS_USER_ROLEEditView2Base extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class='view-container sys-user-rolegrid-view'> <div class='view-container degridview sys-user-rolegrid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolegridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolegridview"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
<p slot='title'> <p slot='title'>
......
<template> <template>
<div class="view-container sys-user-rolempickup-view"> <div class="view-container dempickupview sys-user-rolempickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolempickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolempickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class='view-container sys-user-rolepickup-grid-view'> <div class='view-container depickupgridview sys-user-rolepickup-grid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolepickupgridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolepickupgridview"></app-studioaction>
<card class='view-card view-no-caption' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption' :dis-hover="true" :bordered="false">
<div class='content-container pickup-grid-view'> <div class='content-container pickup-grid-view'>
......
<template> <template>
<div class="view-container sys-user-rolepickup-view"> <div class="view-container depickupview sys-user-rolepickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolepickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_rolepickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class="view-container sys-user-roleredirect-view"> <div class="view-container deredirectview sys-user-roleredirect-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_roleredirectview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_user_roleredirectview"></app-studioaction>
</div> </div>
</template> </template>
......
<template> <template>
<div class="view-container sys-useredit-view"> <div class="view-container deeditview sys-useredit-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usereditview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usereditview"></app-studioaction>
<card class='view-card ' :disHover="true" :bordered="false"> <card class='view-card ' :disHover="true" :bordered="false">
...@@ -1154,6 +1154,8 @@ export default class SYS_USEREditViewBase extends Vue { ...@@ -1154,6 +1154,8 @@ export default class SYS_USEREditViewBase extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class="view-container sys-useredit-view2"> <div class="view-container deeditview2 sys-useredit-view2">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usereditview2"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usereditview2"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
...@@ -1186,6 +1186,8 @@ export default class SYS_USEREditView2Base extends Vue { ...@@ -1186,6 +1186,8 @@ export default class SYS_USEREditView2Base extends Vue {
if (_this.viewdata) { if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]); _this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close'); _this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
}); });
} }
......
<template> <template>
<div class='view-container sys-usergrid-view'> <div class='view-container degridview sys-usergrid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usergridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usergridview"></app-studioaction>
<card class='view-card' :dis-hover="true" :bordered="false"> <card class='view-card' :dis-hover="true" :bordered="false">
<p slot='title'> <p slot='title'>
......
<template> <template>
<div class="view-container sys-usermpickup-view"> <div class="view-container dempickupview sys-usermpickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usermpickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_usermpickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class='view-container sys-userpickup-grid-view'> <div class='view-container depickupgridview sys-userpickup-grid-view'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_userpickupgridview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_userpickupgridview"></app-studioaction>
<card class='view-card view-no-caption' :dis-hover="true" :bordered="false"> <card class='view-card view-no-caption' :dis-hover="true" :bordered="false">
<div class='content-container pickup-grid-view'> <div class='content-container pickup-grid-view'>
......
<template> <template>
<div class="view-container sys-userpickup-view"> <div class="view-container depickupview sys-userpickup-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_userpickupview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_userpickupview"></app-studioaction>
<card class='view-card' :dis-hover="true" :padding="0" :bordered="false"> <card class='view-card' :dis-hover="true" :padding="0" :bordered="false">
<div class="content-container pickup-view"> <div class="content-container pickup-view">
......
<template> <template>
<div class="view-container sys-userredirect-view"> <div class="view-container deredirectview sys-userredirect-view">
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_userredirectview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfTitle)" viewName="sys_userredirectview"></app-studioaction>
</div> </div>
</template> </template>
......
...@@ -208,4 +208,52 @@ ...@@ -208,4 +208,52 @@
} }
/*** END:多数据视图属性布局 ***/ /*** END:多数据视图属性布局 ***/
// 看板视图,卡片模式
.view-container.appportalview,.view-container.deportalview,.view-container.deportalview9{
>.view-card>.ivu-card-body>.content-container{
background: #efefef;
}
.dashboard{
padding: 8px;
}
.portlet-container{
background: #efefef;
}
.portlet-container::after{
content: "";
clear: both;
}
.portlet{
margin: 8px;
height: calc(100% - 16px);
width: calc(100% - 16px);
background: #fff;
border-radius: 4px;
box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 2px 6px 0 rgba(0,0,0,.045);
border: 1px solid transparent;
>.portlet-with-title{
margin-bottom: 12px;
height: calc(100% - 64px);
}
>.portlet-without-title{
margin-top: 12px;
margin-bottom: 12px;
height: calc(100% - 24px);
}
}
}
// 看板视图,无缝模式
.view-container.appportalview.seamless-mode,.view-container.deportalview.seamless-mode,.view-container.deportalview9.seamless-mode{
>.view-card>.ivu-card-body>.content-container{
background: transparent;
}
.portlet-container{
background: transparent;
}
.portlet{
background: transparent;
}
}
@import './user.less'; @import './user.less';
\ No newline at end of file
...@@ -1014,8 +1014,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1014,8 +1014,8 @@ export default class MainBase extends Vue implements ControlInterface {
}); });
} }
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1041,8 +1041,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1041,8 +1041,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1068,8 +1068,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1068,8 +1068,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1102,8 +1102,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1102,8 +1102,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1116,8 +1116,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1116,8 +1116,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'save', data: data }); this.formState.next({ type: 'save', data: data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1166,8 +1166,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1166,8 +1166,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1184,8 +1184,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1184,8 +1184,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1254,14 +1254,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1254,14 +1254,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流启动成功' }); this.$Notice.info({ title: '', desc: '工作流启动成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1273,8 +1275,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1273,8 +1275,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1313,14 +1315,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1313,14 +1315,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流提交成功' }); this.$Notice.info({ title: '', desc: '工作流提交成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1332,8 +1336,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1332,8 +1336,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1385,8 +1389,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1385,8 +1389,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data }); this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
......
...@@ -670,8 +670,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -670,8 +670,9 @@ export default class MainBase extends Vue implements ControlInterface {
_datas.forEach((data: any) => { _datas.forEach((data: any) => {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(this.removeAction,Object.assign(context,{ sys_permission: keys.join(';') }),Object.assign({ permissionid: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ sys_permission: keys.join(';') }),Object.assign({ sys_permission: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
<row > <row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.sys_role_permission.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false"> <app-form-group layoutType="TABLE_24COL" titleStyle="" class='' uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.sys_role_permission.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.sys_rolename.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.sys_rolename.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='sys_rolename' :itemRules="this.rules.sys_rolename" class='' :caption="$t('entities.sys_role_permission.main_form.details.sys_rolename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sys_rolename.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='sys_rolename' :itemRules="this.rules.sys_rolename" class='' :caption="$t('entities.sys_role_permission.main_form.details.sys_rolename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sys_rolename.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -1107,8 +1106,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1107,8 +1106,8 @@ export default class MainBase extends Vue implements ControlInterface {
}); });
} }
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1134,8 +1133,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1134,8 +1133,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1161,8 +1160,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1161,8 +1160,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1195,8 +1194,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1195,8 +1194,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1209,8 +1208,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1209,8 +1208,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'save', data: data }); this.formState.next({ type: 'save', data: data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1259,8 +1258,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1259,8 +1258,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1277,8 +1276,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1277,8 +1276,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1347,14 +1346,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1347,14 +1346,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流启动成功' }); this.$Notice.info({ title: '', desc: '工作流启动成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1366,8 +1367,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1366,8 +1367,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1406,14 +1407,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1406,14 +1407,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流提交成功' }); this.$Notice.info({ title: '', desc: '工作流提交成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1425,8 +1428,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1425,8 +1428,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1478,8 +1481,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1478,8 +1481,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data }); this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
......
...@@ -668,8 +668,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -668,8 +668,9 @@ export default class MainBase extends Vue implements ControlInterface {
_datas.forEach((data: any) => { _datas.forEach((data: any) => {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(this.removeAction,Object.assign(context,{ sys_role_permission: keys.join(';') }),Object.assign({ rolepermissionid: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ sys_role_permission: keys.join(';') }),Object.assign({ sys_role_permission: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
<row > <row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.sys_role.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false"> <app-form-group layoutType="TABLE_24COL" titleStyle="" class='' uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.sys_role.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.sys_rolename.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.sys_rolename.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='sys_rolename' :itemRules="this.rules.sys_rolename" class='' :caption="$t('entities.sys_role.main_form.details.sys_rolename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sys_rolename.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='sys_rolename' :itemRules="this.rules.sys_rolename" class='' :caption="$t('entities.sys_role.main_form.details.sys_rolename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sys_rolename.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -1032,8 +1031,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1032,8 +1031,8 @@ export default class MainBase extends Vue implements ControlInterface {
}); });
} }
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1059,8 +1058,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1059,8 +1058,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1086,8 +1085,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1086,8 +1085,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1120,8 +1119,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1120,8 +1119,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1134,8 +1133,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1134,8 +1133,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'save', data: data }); this.formState.next({ type: 'save', data: data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1184,8 +1183,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1184,8 +1183,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1202,8 +1201,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1202,8 +1201,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1272,14 +1271,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1272,14 +1271,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流启动成功' }); this.$Notice.info({ title: '', desc: '工作流启动成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1291,8 +1292,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1291,8 +1292,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1331,14 +1332,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1331,14 +1332,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流提交成功' }); this.$Notice.info({ title: '', desc: '工作流提交成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1350,8 +1353,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1350,8 +1353,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1403,8 +1406,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1403,8 +1406,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data }); this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
......
...@@ -682,8 +682,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -682,8 +682,9 @@ export default class MainBase extends Vue implements ControlInterface {
_datas.forEach((data: any) => { _datas.forEach((data: any) => {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(this.removeAction,Object.assign(context,{ sys_role: keys.join(';') }),Object.assign({ roleid: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ sys_role: keys.join(';') }),Object.assign({ sys_role: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
<row > <row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.sys_user_role.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false"> <app-form-group layoutType="TABLE_24COL" titleStyle="" class='' uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.sys_user_role.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.sys_user_rolename.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.sys_user_rolename.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='sys_user_rolename' :itemRules="this.rules.sys_user_rolename" class='' :caption="$t('entities.sys_user_role.main_form.details.sys_user_rolename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sys_user_rolename.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='sys_user_rolename' :itemRules="this.rules.sys_user_rolename" class='' :caption="$t('entities.sys_user_role.main_form.details.sys_user_rolename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sys_user_rolename.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -1148,8 +1147,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1148,8 +1147,8 @@ export default class MainBase extends Vue implements ControlInterface {
}); });
} }
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1175,8 +1174,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1175,8 +1174,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1202,8 +1201,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1202,8 +1201,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1236,8 +1235,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1236,8 +1235,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1250,8 +1249,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1250,8 +1249,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'save', data: data }); this.formState.next({ type: 'save', data: data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1300,8 +1299,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1300,8 +1299,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1318,8 +1317,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1318,8 +1317,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1388,14 +1387,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1388,14 +1387,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流启动成功' }); this.$Notice.info({ title: '', desc: '工作流启动成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1407,8 +1408,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1407,8 +1408,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1447,14 +1448,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1447,14 +1448,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流提交成功' }); this.$Notice.info({ title: '', desc: '工作流提交成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1466,8 +1469,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1466,8 +1469,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1519,8 +1522,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1519,8 +1522,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data }); this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
......
...@@ -682,8 +682,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -682,8 +682,9 @@ export default class MainBase extends Vue implements ControlInterface {
_datas.forEach((data: any) => { _datas.forEach((data: any) => {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(this.removeAction,Object.assign(context,{ sys_user_role: keys.join(';') }),Object.assign({ userroleid: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ sys_user_role: keys.join(';') }),Object.assign({ sys_user_role: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -997,8 +997,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -997,8 +997,8 @@ export default class MainBase extends Vue implements ControlInterface {
}); });
} }
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1024,8 +1024,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1024,8 +1024,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)),{viewparams:viewparamResult}, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1051,8 +1051,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1051,8 +1051,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1085,8 +1085,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1085,8 +1085,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = this.service.add(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1099,8 +1099,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1099,8 +1099,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'save', data: data }); this.formState.next({ type: 'save', data: data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1149,8 +1149,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1149,8 +1149,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator); const post: Promise<any> = Object.is(data.srfuf, '1')?this.service.update(action, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator):this.service.add(action,JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data) {
this.$Notice.error({ title: '错误', desc: response.errorMessage }); this.$Notice.error({ title: '错误', desc: response.data.message });
} }
return; return;
} }
...@@ -1167,8 +1167,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1167,8 +1167,8 @@ export default class MainBase extends Vue implements ControlInterface {
} }
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1237,14 +1237,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1237,14 +1237,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfstart(_this.WFStartAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流启动失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流启动成功' }); this.$Notice.info({ title: '', desc: '工作流启动成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1256,8 +1258,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1256,8 +1258,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1296,14 +1298,16 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1296,14 +1298,16 @@ export default class MainBase extends Vue implements ControlInterface {
const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata); const result: Promise<any> = this.service.wfsubmit(_this.WFSubmitAction, JSON.parse(JSON.stringify(this.context)),arg, this.showBusyIndicator,localdata);
result.then((response: any) => { result.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.info }); if(response.data){
this.$Notice.error({ title: '', desc: '工作流提交失败, ' + response.data.message });
}
return; return;
} }
this.$Notice.info({ title: '', desc: '工作流提交成功' }); this.$Notice.info({ title: '', desc: '工作流提交成功' });
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1315,8 +1319,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1315,8 +1319,8 @@ export default class MainBase extends Vue implements ControlInterface {
reject(response); reject(response);
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
reject(response); reject(response);
return; return;
} }
...@@ -1368,8 +1372,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1368,8 +1372,8 @@ export default class MainBase extends Vue implements ControlInterface {
this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data }); this.formState.next({ type: 'updateformitem', ufimode: arg.srfufimode, data: _data });
}); });
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status && response.data) {
this.$Notice.error({ title: '错误', desc: response.message }); this.$Notice.error({ title: '错误', desc: response.data.message });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
......
...@@ -668,8 +668,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -668,8 +668,9 @@ export default class MainBase extends Vue implements ControlInterface {
_datas.forEach((data: any) => { _datas.forEach((data: any) => {
keys.push(data.srfkey); keys.push(data.srfkey);
}); });
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context)); const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(this.removeAction,Object.assign(context,{ sys_user: keys.join(';') }),Object.assign({ userid: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator); const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ sys_user: keys.join(';') }),Object.assign({ sys_user: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
git clone -b master $para2 ibzuaa/ git clone -b master $para2 ibzuaa/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibzuaa/ cd ibzuaa/
mvn clean package -Papi mvn clean package -Pweb
cd ibzuaa-provider/ibzuaa-provider-api cd ibzuaa-app/ibzuaa-app-web
mvn -Papi docker:build mvn -Pweb docker:build
mvn -Papi docker:push mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-provider-api.yaml ibzlab-rt --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-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 ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar
EXPOSE 8080 EXPOSE 30002
ADD ibzuaa-app-web.jar /ibzuaa-app-web.jar ADD ibzuaa-app-web.jar /ibzuaa-app-web.jar
...@@ -3,9 +3,11 @@ services: ...@@ -3,9 +3,11 @@ services:
ibzuaa-app-web: ibzuaa-app-web:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest
ports: ports:
- "8080:8080" - "30002:30002"
networks: networks:
- agent_network - agent_network
environment:
SPRING_CLOUD_NACOS_DISCOVERY_IP: 172.16.180.237
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
server: server:
port: 8080 port: 30002
\ No newline at end of file \ No newline at end of file
server: server:
port: 8080 port: 30002
#zuul网关路由设置 #zuul网关路由设置
zuul: zuul:
......
...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \ ...@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \ sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-provider-api.jar
EXPOSE 40002 EXPOSE 8081
ADD ibzuaa-provider-api.jar /ibzuaa-provider-api.jar ADD ibzuaa-provider-api.jar /ibzuaa-provider-api.jar
...@@ -3,11 +3,9 @@ services: ...@@ -3,11 +3,9 @@ services:
ibzuaa-provider-api: ibzuaa-provider-api:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-provider-api:latest
ports: ports:
- "40002:40002" - "8081:8081"
networks: networks:
- agent_network - agent_network
environment:
SPRING_CLOUD_NACOS_DISCOVERY_IP: 172.16.180.237
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
......
server: server:
port: 40002 port: 8081
\ No newline at end of file \ No newline at end of file
...@@ -32,7 +32,7 @@ public class PermissionSyncJob implements ApplicationRunner { ...@@ -32,7 +32,7 @@ public class PermissionSyncJob implements ApplicationRunner {
@Value("${ibiz.enablePermissionValid:false}") @Value("${ibiz.enablePermissionValid:false}")
boolean enablePermissionValid; //是否开启权限校验 boolean enablePermissionValid; //是否开启权限校验
@Value("${ibiz.systemid:2C40DFCD-0DF5-47BF-91A5-C45F810B0001}") @Value("${ibiz.systemid:EB948A46-DF8C-4BE3-8020-0ADA23440D31}")
private String systemId; private String systemId;
@Override @Override
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册