提交 49e55081 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 419c2add
......@@ -148,6 +148,33 @@
"color": "rgba(0, 72, 255, 1)",
"value": "403.6",
"disabled": false
}
]
},
{
"srfkey": "AppType",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "INNER",
"label": "内置应用",
"text": "内置应用",
"data":"",
"codename":"Inner",
"value": "INNER",
"disabled": false
}
, {
"id": "THIRD-PARTY",
"label": "第三方应用",
"text": "第三方应用",
"data":"",
"codename":"Third_SUB_party",
"value": "THIRD-PARTY",
"disabled": false
}
]
......
......@@ -47,6 +47,14 @@
"viewname": "WFGroupPickupGridView",
"viewtag": "17ccd6d8d2bb7cf30158253da129ec1b"
},
"sysappgridview": {
"title": "应用表格视图",
"caption": "应用",
"viewtype": "DEGRIDVIEW",
"viewmodule": "uaa",
"viewname": "SysAppGridView",
"viewtag": "1ef170b14b7a70f4609a9f13692d1414"
},
"sysusermpickupview": {
"title": "用户表数据多项选择视图",
"caption": "系统用户",
......@@ -127,6 +135,14 @@
"viewname": "WFProcessDefinitionEditView",
"viewtag": "3fcd491c13d05ab7dcce8d2c920d0aec"
},
"sysappeditview": {
"title": "应用编辑视图",
"caption": "应用",
"viewtype": "DEEDITVIEW",
"viewmodule": "uaa",
"viewname": "SysAppEditView",
"viewtag": "3febdb3ae99351887f24b7c9db070de8"
},
"ibzemployeegridview": {
"title": "人员表格视图",
"caption": "人员",
......
......@@ -21,6 +21,7 @@ import ibzteammember_en_US from '@locale/lanres/entities/ibzteam-member/ibzteam-
import syspermission_en_US from '@locale/lanres/entities/sys-permission/sys-permission_en_US';
import dictoption_en_US from '@locale/lanres/entities/dict-option/dict-option_en_US';
import ibzemployee_en_US from '@locale/lanres/entities/ibzemployee/ibzemployee_en_US';
import sysapp_en_US from '@locale/lanres/entities/sys-app/sys-app_en_US';
import components_en_US from '@locale/lanres/components/components_en_US';
import codelist_en_US from '@locale/lanres/codelist/codelist_en_US';
import userCustom_en_US from '@locale/lanres/userCustom/userCustom_en_US';
......@@ -90,6 +91,7 @@ export default {
menuitem8: "系统权限",
menuitem4: "用户角色",
menuitem9: "认证日志",
menuitem21: "接入应用",
menuitem10: "流程管理",
menuitem6: "流程定义",
menuitem5: "流程角色",
......@@ -128,6 +130,7 @@ export default {
syspermission: syspermission_en_US,
dictoption: dictoption_en_US,
ibzemployee: ibzemployee_en_US,
sysapp: sysapp_en_US,
},
components: components_en_US,
codelist: codelist_en_US,
......
......@@ -21,6 +21,7 @@ import ibzteammember_zh_CN from '@locale/lanres/entities/ibzteam-member/ibzteam-
import syspermission_zh_CN from '@locale/lanres/entities/sys-permission/sys-permission_zh_CN';
import dictoption_zh_CN from '@locale/lanres/entities/dict-option/dict-option_zh_CN';
import ibzemployee_zh_CN from '@locale/lanres/entities/ibzemployee/ibzemployee_zh_CN';
import sysapp_zh_CN from '@locale/lanres/entities/sys-app/sys-app_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
......@@ -90,6 +91,7 @@ export default {
menuitem8: "系统权限",
menuitem4: "用户角色",
menuitem9: "认证日志",
menuitem21: "接入应用",
menuitem10: "流程管理",
menuitem6: "流程定义",
menuitem5: "流程角色",
......@@ -128,6 +130,7 @@ export default {
syspermission: syspermission_zh_CN,
dictoption: dictoption_zh_CN,
ibzemployee: ibzemployee_zh_CN,
sysapp: sysapp_zh_CN,
},
components: components_zh_CN,
codelist: codelist_zh_CN,
......
......@@ -23,4 +23,9 @@ export default {
"403.6": "地址被拒绝",
"empty": ""
},
AppType: {
"INNER": "内置应用",
"THIRD-PARTY": "第三方应用",
"empty": ""
},
};
\ No newline at end of file
......@@ -23,4 +23,9 @@ export default {
"403.6": "地址被拒绝",
"empty": "",
},
AppType: {
"INNER": "内置应用",
"THIRD-PARTY": "第三方应用",
"empty": "",
},
};
\ No newline at end of file
export default {
fields: {
id: "应用标识",
label: "应用名",
systemid: "系统标识",
fullname: "全称",
type: "类型",
group: "分组",
icon: "图标",
visabled: "可见",
addr: "地址",
},
views: {
gridview: {
caption: "应用",
title: "应用表格视图",
},
editview: {
caption: "应用",
title: "应用编辑视图",
},
},
main_form: {
details: {
group1: "应用基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "应用标识",
srfmajortext: "应用名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
pssystemid: "系统标识",
appid: "应用标识",
appname: "应用名",
apptype: "类型",
appgroup: "分组",
fullname: "全称",
icon: "图标",
visabled: "可见",
addr: "地址",
},
uiactions: {
},
},
main_grid: {
columns: {
pssystemid: "系统标识",
appid: "应用标识",
appname: "应用名",
appgroup: "分组",
apptype: "类型",
fullname: "全称",
icon: "图标",
addr: "地址",
visabled: "可见",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_pssystemid_eq: "系统标识(等于(=))",
n_appname_like: "应用名(文本包含(%))",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
deuiaction1: {
caption: "保存行",
tip: "保存行",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
};
\ No newline at end of file
export default {
fields: {
id: "应用标识",
label: "应用名",
systemid: "系统标识",
fullname: "全称",
type: "类型",
group: "分组",
icon: "图标",
visabled: "可见",
addr: "地址",
},
views: {
gridview: {
caption: "应用",
title: "应用表格视图",
},
editview: {
caption: "应用",
title: "应用编辑视图",
},
},
main_form: {
details: {
group1: "应用基本信息",
formpage1: "基本信息",
srforikey: "",
srfkey: "应用标识",
srfmajortext: "应用名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
pssystemid: "系统标识",
appid: "应用标识",
appname: "应用名",
apptype: "类型",
appgroup: "分组",
fullname: "全称",
icon: "图标",
visabled: "可见",
addr: "地址",
},
uiactions: {
},
},
main_grid: {
columns: {
pssystemid: "系统标识",
appid: "应用标识",
appname: "应用名",
appgroup: "分组",
apptype: "类型",
fullname: "全称",
icon: "图标",
addr: "地址",
visabled: "可见",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
n_pssystemid_eq: "系统标识(等于(=))",
n_appname_like: "应用名(文本包含(%))",
},
uiactions: {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem24: {
caption: "行编辑",
tip: "行编辑",
},
tbitem25: {
caption: "新建行",
tip: "新建行",
},
deuiaction1: {
caption: "保存行",
tip: "保存行",
},
tbitem26: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "导出数据模型",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
},
};
\ No newline at end of file
......@@ -173,6 +173,24 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'Auto6',
resourcetag: '',
},
{
id: 'C40A209E-B7FA-47F3-8F81-78109D6430B4',
name: 'menuitem21',
text: '接入应用',
type: 'MENUITEM',
counterid: '',
tooltip: '接入应用',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: 'fa fa-buysellads',
icon: '',
textcls: '',
appfunctag: '_2',
resourcetag: '',
},
],
},
......@@ -375,7 +393,7 @@ mock.onGet('v7/indexappmenu').reply((config: any) => {
iconcls: 'fa fa-stack-exchange',
icon: '',
textcls: '',
appfunctag: '_2',
appfunctag: '_3',
resourcetag: '',
},
],
......
......@@ -156,6 +156,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"color": "rgba(0, 72, 255, 1)",
value: "403.6",
disabled: false,
},
]
},
{
srfkey: "AppType",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "INNER",
label: "内置应用",
text: "内置应用",
"data":"",
"codename":"Inner",
value: "INNER",
disabled: false,
},
{
id: "THIRD-PARTY",
label: "第三方应用",
text: "第三方应用",
"data":"",
"codename":"Third_SUB_party",
value: "THIRD-PARTY",
disabled: false,
},
]
......
此差异已折叠。
......@@ -30,3 +30,4 @@ import './entity/ibzteam-members/ibzteam-members';
import './entity/sys-permissions/sys-permissions';
import './entity/dict-options/dict-options';
import './entity/ibzemployees/ibzemployees';
import './entity/sys-apps/sys-apps';
......@@ -55,6 +55,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "WFGroupPickupGridView",
"viewtag": "17ccd6d8d2bb7cf30158253da129ec1b"
},
"sysappgridview": {
"title": "应用表格视图",
"caption": "应用",
"viewtype": "DEGRIDVIEW",
"viewmodule": "uaa",
"viewname": "SysAppGridView",
"viewtag": "1ef170b14b7a70f4609a9f13692d1414"
},
"sysusermpickupview": {
"title": "用户表数据多项选择视图",
"caption": "系统用户",
......@@ -135,6 +143,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "WFProcessDefinitionEditView",
"viewtag": "3fcd491c13d05ab7dcce8d2c920d0aec"
},
"sysappeditview": {
"title": "应用编辑视图",
"caption": "应用",
"viewtype": "DEEDITVIEW",
"viewmodule": "uaa",
"viewname": "SysAppEditView",
"viewtag": "3febdb3ae99351887f24b7c9db070de8"
},
"ibzemployeegridview": {
"title": "人员表格视图",
"caption": "人员",
......
......@@ -694,6 +694,9 @@ export default class DictCatalogGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class DictCatalogGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"DictCatalog");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"DictCatalog");
}
/**
* 逻辑事件
*
......@@ -1358,6 +1389,26 @@ export default class DictCatalogGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof DictCatalogGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -705,6 +705,9 @@ export default class IBZDepartmentGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -1020,6 +1023,34 @@ export default class IBZDepartmentGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBZDepartment");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"IBZDepartment");
}
/**
* 逻辑事件
*
......@@ -1434,6 +1465,26 @@ export default class IBZDepartmentGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBZDepartmentGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -662,6 +662,9 @@ export default class IBZDeptMemberGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -912,6 +915,34 @@ export default class IBZDeptMemberGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBZDeptMember");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"IBZDeptMember");
}
/**
* 逻辑事件
*
......@@ -1331,6 +1362,26 @@ export default class IBZDeptMemberGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBZDeptMemberGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -715,6 +715,9 @@ export default class IBZEmployeeGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -1033,6 +1036,34 @@ export default class IBZEmployeeGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBZEmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"IBZEmployee");
}
/**
* 逻辑事件
*
......@@ -1476,6 +1507,26 @@ export default class IBZEmployeeGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBZEmployeeGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -708,6 +708,9 @@ export default class IBZOrganizationGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -1023,6 +1026,34 @@ export default class IBZOrganizationGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBZOrganization");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"IBZOrganization");
}
/**
* 逻辑事件
*
......@@ -1427,6 +1458,26 @@ export default class IBZOrganizationGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBZOrganizationGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -694,6 +694,9 @@ export default class IBZPostGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class IBZPostGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBZPost");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"IBZPost");
}
/**
* 逻辑事件
*
......@@ -1384,6 +1415,26 @@ export default class IBZPostGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBZPostGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -694,6 +694,9 @@ export default class IBZTeamGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class IBZTeamGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBZTeam");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"IBZTeam");
}
/**
* 逻辑事件
*
......@@ -1358,6 +1389,26 @@ export default class IBZTeamGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBZTeamGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -694,6 +694,9 @@ export default class IBZTeamMemberGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class IBZTeamMemberGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBZTeamMember");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"IBZTeamMember");
}
/**
* 逻辑事件
*
......@@ -1383,6 +1414,26 @@ export default class IBZTeamMemberGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBZTeamMemberGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -40,6 +40,7 @@ export const PageComponents = {
Vue.component('sys-user-pickup-view', () => import('@pages/uaa/sys-user-pickup-view/sys-user-pickup-view.vue'));
Vue.component('jobs-info-grid-view', () => import('@pages/task/jobs-info-grid-view/jobs-info-grid-view.vue'));
Vue.component('wfprocess-definition-grid-view', () => import('@pages/workflow/wfprocess-definition-grid-view/wfprocess-definition-grid-view.vue'));
Vue.component('sys-app-grid-view', () => import('@pages/uaa/sys-app-grid-view/sys-app-grid-view.vue'));
Vue.component('sys-user-mpickup-view', () => import('@pages/uaa/sys-user-mpickup-view/sys-user-mpickup-view.vue'));
Vue.component('ibzdept-member-grid-view', () => import('@pages/ou/ibzdept-member-grid-view/ibzdept-member-grid-view.vue'));
Vue.component('jobs-info-edit-view', () => import('@pages/task/jobs-info-edit-view/jobs-info-edit-view.vue'));
......@@ -55,13 +56,14 @@ export const PageComponents = {
Vue.component('ibzteam-grid-view', () => import('@pages/ou/ibzteam-grid-view/ibzteam-grid-view.vue'));
Vue.component('jobs-registry-edit-view', () => import('@pages/task/jobs-registry-edit-view/jobs-registry-edit-view.vue'));
Vue.component('ibzdepartment-edit-view', () => import('@pages/ou/ibzdepartment-edit-view/ibzdepartment-edit-view.vue'));
Vue.component('wfgroup-edit-view', () => import('@pages/workflow/wfgroup-edit-view/wfgroup-edit-view.vue'));
Vue.component('sys-user-role-edit-view', () => import('@pages/uaa/sys-user-role-edit-view/sys-user-role-edit-view.vue'));
Vue.component('wfgroup-edit-view', () => import('@pages/workflow/wfgroup-edit-view/wfgroup-edit-view.vue'));
Vue.component('sys-role-permission-custom-view', () => import('@pages/uaa/sys-role-permission-custom-view/sys-role-permission-custom-view.vue'));
Vue.component('dict-option-grid-edit-view', () => import('@pages/dict/dict-option-grid-edit-view/dict-option-grid-edit-view.vue'));
Vue.component('dict-catalog-pickup-grid-view', () => import('@pages/dict/dict-catalog-pickup-grid-view/dict-catalog-pickup-grid-view.vue'));
Vue.component('ibzdept-member-edit-view', () => import('@pages/ou/ibzdept-member-edit-view/ibzdept-member-edit-view.vue'));
Vue.component('sys-role-pickup-view', () => import('@pages/uaa/sys-role-pickup-view/sys-role-pickup-view.vue'));
Vue.component('sys-app-edit-view', () => import('@pages/uaa/sys-app-edit-view/sys-app-edit-view.vue'));
Vue.component('ibzorganization-pickup-grid-view', () => import('@pages/ou/ibzorganization-pickup-grid-view/ibzorganization-pickup-grid-view.vue'));
Vue.component('dict-option-grid-view', () => import('@pages/dict/dict-option-grid-view/dict-option-grid-view.vue'));
Vue.component('sys-user-pickup-grid-view', () => import('@pages/uaa/sys-user-pickup-grid-view/sys-user-pickup-grid-view.vue'));
......
......@@ -1148,6 +1148,20 @@ const router = new Router({
},
component: () => import('@pages/workflow/wfprocess-definition-grid-view/wfprocess-definition-grid-view.vue'),
},
{
path: 'sysapps/:sysapp?/gridview/:gridview?',
meta: {
caption: 'entities.sysapp.views.gridview.title',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sysapps', parameterName: 'sysapp' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-app-grid-view/sys-app-grid-view.vue'),
},
{
path: 'sysusers/:sysuser?/mpickupview/:mpickupview?',
meta: {
......@@ -1545,27 +1559,28 @@ const router = new Router({
component: () => import('@pages/ou/ibzdepartment-edit-view/ibzdepartment-edit-view.vue'),
},
{
path: 'wfgroups/:wfgroup?/editview/:editview?',
path: 'sysusers/:sysuser?/sysuserroles/:sysuserrole?/editview/:editview?',
meta: {
caption: 'entities.wfgroup.views.editview.title',
caption: 'entities.sysuserrole.views.editview.title',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'wfgroups', parameterName: 'wfgroup' },
{ pathName: 'sysusers', parameterName: 'sysuser' },
{ pathName: 'sysuserroles', parameterName: 'sysuserrole' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/workflow/wfgroup-edit-view/wfgroup-edit-view.vue'),
component: () => import('@pages/uaa/sys-user-role-edit-view/sys-user-role-edit-view.vue'),
},
{
path: 'sysusers/:sysuser?/sysuserroles/:sysuserrole?/editview/:editview?',
path: 'sysroles/:sysrole?/sysuserroles/:sysuserrole?/editview/:editview?',
meta: {
caption: 'entities.sysuserrole.views.editview.title',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sysusers', parameterName: 'sysuser' },
{ pathName: 'sysroles', parameterName: 'sysrole' },
{ pathName: 'sysuserroles', parameterName: 'sysuserrole' },
{ pathName: 'editview', parameterName: 'editview' },
],
......@@ -1574,13 +1589,12 @@ const router = new Router({
component: () => import('@pages/uaa/sys-user-role-edit-view/sys-user-role-edit-view.vue'),
},
{
path: 'sysroles/:sysrole?/sysuserroles/:sysuserrole?/editview/:editview?',
path: 'sysuserroles/:sysuserrole?/editview/:editview?',
meta: {
caption: 'entities.sysuserrole.views.editview.title',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sysroles', parameterName: 'sysrole' },
{ pathName: 'sysuserroles', parameterName: 'sysuserrole' },
{ pathName: 'editview', parameterName: 'editview' },
],
......@@ -1589,18 +1603,18 @@ const router = new Router({
component: () => import('@pages/uaa/sys-user-role-edit-view/sys-user-role-edit-view.vue'),
},
{
path: 'sysuserroles/:sysuserrole?/editview/:editview?',
path: 'wfgroups/:wfgroup?/editview/:editview?',
meta: {
caption: 'entities.sysuserrole.views.editview.title',
caption: 'entities.wfgroup.views.editview.title',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sysuserroles', parameterName: 'sysuserrole' },
{ pathName: 'wfgroups', parameterName: 'wfgroup' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-user-role-edit-view/sys-user-role-edit-view.vue'),
component: () => import('@pages/workflow/wfgroup-edit-view/wfgroup-edit-view.vue'),
},
{
path: 'sysroles/:sysrole?/sysrolepermissions/:sysrolepermission?/customview/:customview?',
......@@ -1812,6 +1826,20 @@ const router = new Router({
},
component: () => import('@pages/uaa/sys-role-pickup-view/sys-role-pickup-view.vue'),
},
{
path: 'sysapps/:sysapp?/editview/:editview?',
meta: {
caption: 'entities.sysapp.views.editview.title',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'sysapps', parameterName: 'sysapp' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-app-edit-view/sys-app-edit-view.vue'),
},
{
path: 'ibzorganizations/:ibzorganization?/pickupgridview/:pickupgridview?',
meta: {
......@@ -2063,6 +2091,19 @@ const router = new Router({
},
component: () => import('@pages/workflow/wfgroup-pickup-grid-view/wfgroup-pickup-grid-view.vue'),
},
{
path: '/sysapps/:sysapp?/gridview/:gridview?',
meta: {
caption: 'entities.sysapp.views.gridview.title',
info:'',
parameters: [
{ pathName: 'sysapps', parameterName: 'sysapp' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-app-grid-view/sys-app-grid-view.vue'),
},
{
path: '/sysusers/:sysuser?/mpickupview/:mpickupview?',
meta: {
......@@ -2281,6 +2322,19 @@ const router = new Router({
},
component: () => import('@pages/workflow/wfprocess-definition-edit-view/wfprocess-definition-edit-view.vue'),
},
{
path: '/sysapps/:sysapp?/editview/:editview?',
meta: {
caption: 'entities.sysapp.views.editview.title',
info:'',
parameters: [
{ pathName: 'sysapps', parameterName: 'sysapp' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/uaa/sys-app-edit-view/sys-app-edit-view.vue'),
},
{
path: '/ibzorganizations/:ibzorganization?/ibzdepartments/:ibzdepartment?/ibzemployees/:ibzemployee?/gridview/:gridview?',
meta: {
......
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.sys-app-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SysAppEditViewBase from './sys-app-edit-view-base.vue';
import view_form from '@widgets/sys-app/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class SysAppEditView extends SysAppEditViewBase {
}
</script>
\ No newline at end of file
.sys-app-grid-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SysAppGridViewBase from './sys-app-grid-view-base.vue';
import view_grid from '@widgets/sys-app/main-grid/main-grid.vue';
import view_searchform from '@widgets/sys-app/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class SysAppGridView extends SysAppGridViewBase {
}
</script>
\ No newline at end of file
......@@ -694,6 +694,9 @@ export default class SysRoleGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class SysRoleGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysRole");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysRole");
}
/**
* 逻辑事件
*
......@@ -1358,6 +1389,26 @@ export default class SysRoleGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SysRoleGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -691,6 +691,9 @@ export default class SysUserRoleGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -977,6 +980,34 @@ export default class SysUserRoleGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"SysUserRole");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"SysUserRole");
}
/**
* 逻辑事件
*
......@@ -1383,6 +1414,26 @@ export default class SysUserRoleGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof SysUserRoleGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -694,6 +694,9 @@ export default class WFGroupGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class WFGroupGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
}
/**
* 逻辑事件
*
......@@ -1358,6 +1389,26 @@ export default class WFGroupGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WFGroupGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -694,6 +694,9 @@ export default class WFMemberGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class WFMemberGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFMember");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"WFMember");
}
/**
* 逻辑事件
*
......@@ -1386,6 +1417,26 @@ export default class WFMemberGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WFMemberGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -694,6 +694,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2);
}
......@@ -980,6 +983,34 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveRow(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
}
/**
* 逻辑事件
*
......@@ -1358,6 +1389,26 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/**
* 保存行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WFProcessDefinitionGridViewBase
*/
public SaveRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save();
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 删除
*
......
......@@ -62,6 +62,7 @@ export class EntityServiceRegister {
this.allEntityService.set('syspermission', () => import('@/service/sys-permission/sys-permission-service'));
this.allEntityService.set('dictoption', () => import('@/service/dict-option/dict-option-service'));
this.allEntityService.set('ibzemployee', () => import('@/service/ibzemployee/ibzemployee-service'));
this.allEntityService.set('sysapp', () => import('@/service/sys-app/sys-app-service'));
}
/**
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 应用服务对象基类
*
* @export
* @class SysAppServiceBase
* @extends {EntityServie}
*/
export default class SysAppServiceBase extends EntityService {
/**
* Creates an instance of SysAppServiceBase.
*
* @param {*} [opts={}]
* @memberof SysAppServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof SysAppServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='sysapp';
this.APPDEKEY = 'id';
this.APPDENAME = 'sysapps';
this.APPDETEXT = 'label';
this.APPNAME = 'web';
this.SYSTEMNAME = 'ibzrt';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/sysapps/${context.sysapp}/select`,isloading);
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysapps/${context.sysapp}`,data,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysapps/getdraft`,isloading);
res.data.sysapp = data.sysapp;
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/sysapps/${context.sysapp}`,isloading);
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysapps/${context.sysapp}`,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/sysapps`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysapps/${context.sysapp}/save`,data,isloading);
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/sysapps/${context.sysapp}/checkkey`,data,isloading);
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysAppServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/sysapps/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import SysAppServiceBase from './sys-app-service-base';
/**
* 应用服务对象
*
* @export
* @class SysAppService
* @extends {SysAppServiceBase}
*/
export default class SysAppService extends SysAppServiceBase {
/**
* Creates an instance of SysAppService.
*
* @param {*} [opts={}]
* @memberof SysAppService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -66,6 +66,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '1ef170b14b7a70f4609a9f13692d1414',
viewmodule: 'uaa',
viewname: 'SysAppGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'3febdb3ae99351887f24b7c9db070de8',
],
},
{
viewtag: '1f8cf7e78d6d88588d1d568d1866cc77',
viewmodule: 'uaa',
......@@ -166,6 +176,15 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '3febdb3ae99351887f24b7c9db070de8',
viewmodule: 'uaa',
viewname: 'SysAppEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '40fe6b28b9f7902341da46bb74a02d59',
viewmodule: 'ou',
......@@ -553,6 +572,7 @@ export const viewstate: any = {
'5bd45246d1f387729c0d8658e07ddb9f',
'e4856779577562e9880855e6c66d63e5',
'bfa86be8c02420f87d5cf4ff9a768948',
'1ef170b14b7a70f4609a9f13692d1414',
'c0cdac5d5b5691ae8a326f5972aec67f',
'67b4d1e928a08679ce63051ccc88da9c',
'd907ddd1845887ecabac4d8d199bf792',
......
import SysAppUIServiceBase from './sys-app-ui-service-base';
/**
* 应用UI服务对象
*
* @export
* @class SysAppUIService
*/
export default class SysAppUIService extends SysAppUIServiceBase {
/**
* Creates an instance of SysAppUIService.
*
* @param {*} [opts={}]
* @memberof SysAppUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -62,6 +62,7 @@ export class UIServiceRegister {
this.allUIService.set('syspermission', () => import('@/uiservice/sys-permission/sys-permission-ui-service'));
this.allUIService.set('dictoption', () => import('@/uiservice/dict-option/dict-option-ui-service'));
this.allUIService.set('ibzemployee', () => import('@/uiservice/ibzemployee/ibzemployee-ui-service'));
this.allUIService.set('sysapp', () => import('@/uiservice/sys-app/sys-app-ui-service'));
}
/**
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册