提交 721260ee 编写于 作者: ibizdev's avatar ibizdev

xignzi006 部署微服务应用

上级 33839d8e
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"memo": "" "memo": ""
}, },
"websitecontenteditview": { "websitecontenteditview": {
"title": "内容编辑视图", "title": "站点内容",
"caption": "站点内容", "caption": "站点内容",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"websiteresourceeditview": { "websiteresourceeditview": {
"title": "网站资源编辑视图", "title": "站点资源",
"caption": "站点资源", "caption": "站点资源",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"websiteeditview": { "websiteeditview": {
"title": "实体编辑视图", "title": "站点",
"caption": "站点", "caption": "站点",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
"memo": "系统自动添加" "memo": "系统自动添加"
}, },
"websitechanneleditview": { "websitechanneleditview": {
"title": "频道编辑视图", "title": "站点频道",
"caption": "站点频道", "caption": "站点频道",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
}, },
editview: { editview: {
caption: "站点频道", caption: "站点频道",
title: "频道编辑视图", title: "站点频道",
}, },
}, },
main_form: { main_form: {
...@@ -68,6 +68,10 @@ export default { ...@@ -68,6 +68,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: { tbitem4: {
caption: "Edit", caption: "Edit",
tip: "Edit {0}", tip: "Edit {0}",
......
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
}, },
editview: { editview: {
caption: "站点频道", caption: "站点频道",
title: "频道编辑视图", title: "站点频道",
}, },
}, },
main_form: { main_form: {
...@@ -67,6 +67,10 @@ export default { ...@@ -67,6 +67,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: { tbitem4: {
caption: "编辑", caption: "编辑",
tip: "编辑", tip: "编辑",
......
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
views: { views: {
editview: { editview: {
caption: "站点内容", caption: "站点内容",
title: "内容编辑视图", title: "站点内容",
}, },
gridview: { gridview: {
caption: "站点内容", caption: "站点内容",
...@@ -112,6 +112,10 @@ export default { ...@@ -112,6 +112,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: { tbitem4: {
caption: "Edit", caption: "Edit",
tip: "Edit {0}", tip: "Edit {0}",
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
views: { views: {
editview: { editview: {
caption: "站点内容", caption: "站点内容",
title: "内容编辑视图", title: "站点内容",
}, },
gridview: { gridview: {
caption: "站点内容", caption: "站点内容",
...@@ -111,6 +111,10 @@ export default { ...@@ -111,6 +111,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: { tbitem4: {
caption: "编辑", caption: "编辑",
tip: "编辑", tip: "编辑",
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
}, },
editview: { editview: {
caption: "站点资源", caption: "站点资源",
title: "网站资源编辑视图", title: "站点资源",
}, },
}, },
main_form: { main_form: {
...@@ -53,6 +53,10 @@ export default { ...@@ -53,6 +53,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: { tbitem4: {
caption: "Edit", caption: "Edit",
tip: "Edit {0}", tip: "Edit {0}",
......
...@@ -16,7 +16,7 @@ export default { ...@@ -16,7 +16,7 @@ export default {
}, },
editview: { editview: {
caption: "站点资源", caption: "站点资源",
title: "网站资源编辑视图", title: "站点资源",
}, },
}, },
main_form: { main_form: {
...@@ -52,6 +52,10 @@ export default { ...@@ -52,6 +52,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: { tbitem4: {
caption: "编辑", caption: "编辑",
tip: "编辑", tip: "编辑",
......
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
views: { views: {
editview: { editview: {
caption: "站点", caption: "站点",
title: "实体编辑视图", title: "站点",
}, },
gridview: { gridview: {
caption: "站点", caption: "站点",
...@@ -105,6 +105,10 @@ export default { ...@@ -105,6 +105,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: { tbitem4: {
caption: "Edit", caption: "Edit",
tip: "Edit {0}", tip: "Edit {0}",
......
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
views: { views: {
editview: { editview: {
caption: "站点", caption: "站点",
title: "实体编辑视图", title: "站点",
}, },
gridview: { gridview: {
caption: "站点", caption: "站点",
...@@ -104,6 +104,10 @@ export default { ...@@ -104,6 +104,10 @@ export default {
}, },
}, },
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: { tbitem4: {
caption: "编辑", caption: "编辑",
tip: "编辑", tip: "编辑",
......
...@@ -24,7 +24,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -24,7 +24,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "3aae044bf3c4e3a671ad89955fd060a4" "viewtag": "3aae044bf3c4e3a671ad89955fd060a4"
}, },
"websitecontenteditview": { "websitecontenteditview": {
"title": "内容编辑视图", "title": "站点内容",
"caption": "站点内容", "caption": "站点内容",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
...@@ -32,7 +32,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -32,7 +32,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "4c92892c16cb5a6470428de20126ccbf" "viewtag": "4c92892c16cb5a6470428de20126ccbf"
}, },
"websiteresourceeditview": { "websiteresourceeditview": {
"title": "网站资源编辑视图", "title": "站点资源",
"caption": "站点资源", "caption": "站点资源",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
...@@ -40,7 +40,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -40,7 +40,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "522fbb98f1202b6544acbd2b91c542ef" "viewtag": "522fbb98f1202b6544acbd2b91c542ef"
}, },
"websiteeditview": { "websiteeditview": {
"title": "实体编辑视图", "title": "站点",
"caption": "站点", "caption": "站点",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
...@@ -48,7 +48,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -48,7 +48,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "97f41e16790401fccbc7d297a6e37e93" "viewtag": "97f41e16790401fccbc7d297a6e37e93"
}, },
"websitechanneleditview": { "websitechanneleditview": {
"title": "频道编辑视图", "title": "站点频道",
"caption": "站点频道", "caption": "站点频道",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "WebSite", "viewmodule": "WebSite",
......
...@@ -4,7 +4,7 @@ import WebSiteChannelService from '@/service/web-site-channel/web-site-channel-s ...@@ -4,7 +4,7 @@ import WebSiteChannelService from '@/service/web-site-channel/web-site-channel-s
import EditViewEngine from '@engine/view/edit-view-engine'; import EditViewEngine from '@engine/view/edit-view-engine';
/** /**
* 频道编辑视图视图基类 * 站点频道视图基类
* *
* @export * @export
* @class WebSiteChannelEditViewBase * @class WebSiteChannelEditViewBase
......
<studio-view-style2 viewName="websitechanneleditview" viewTitle="频道编辑视图" class='deeditview web-site-channel-edit-view'> <studio-view-style2 viewName="websitechanneleditview" viewTitle="站点频道" class='deeditview web-site-channel-edit-view'>
<template slot='title'> <template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span> <span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template> </template>
......
...@@ -6,7 +6,7 @@ import { WebSiteChannelEditViewBase } from './web-site-channel-edit-view-base'; ...@@ -6,7 +6,7 @@ import { WebSiteChannelEditViewBase } from './web-site-channel-edit-view-base';
import view_form from '@widgets/web-site-channel/main-form/main-form.vue'; import view_form from '@widgets/web-site-channel/main-form/main-form.vue';
/** /**
* 频道编辑视图视图 * 站点频道视图
* *
* @export * @export
* @class WebSiteChannelEditView * @class WebSiteChannelEditView
......
...@@ -67,6 +67,8 @@ export class WebSiteChannelGridViewBase extends GridViewBase { ...@@ -67,6 +67,8 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
* @memberof WebSiteChannelGridView * @memberof WebSiteChannelGridView
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' }, class: '' },
tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' }, tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' }, tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' },
...@@ -134,12 +136,21 @@ export class WebSiteChannelGridViewBase extends GridViewBase { ...@@ -134,12 +136,21 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
* @memberof WebSiteChannelGridViewBase * @memberof WebSiteChannelGridViewBase
*/ */
public toolbar_click($event: any, $event2?: any): void { public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -242,6 +253,34 @@ export class WebSiteChannelGridViewBase extends GridViewBase { ...@@ -242,6 +253,34 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
this.engine.onCtrlEvent('searchform', 'load', $event); this.engine.onCtrlEvent('searchform', 'load', $event);
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_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.New(datas, contextJO,paramJO, $event, xData,this,"WebSiteChannel");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -298,6 +337,62 @@ export class WebSiteChannelGridViewBase extends GridViewBase { ...@@ -298,6 +337,62 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSiteChannel"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSiteChannel");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem24_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.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WebSiteChannel");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem25_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.NewRow(datas, contextJO,paramJO, $event, xData,this,"WebSiteChannel");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -490,6 +585,26 @@ export class WebSiteChannelGridViewBase extends GridViewBase { ...@@ -490,6 +585,26 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
} }
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelGridViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 编辑 * 编辑
* *
...@@ -548,6 +663,42 @@ export class WebSiteChannelGridViewBase extends GridViewBase { ...@@ -548,6 +663,42 @@ export class WebSiteChannelGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelGridViewBase
*/
public ToggleRowEdit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelGridViewBase
*/
public NewRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
const data: any = {};
if (_this.newRow && _this.newRow instanceof Function) {
_this.newRow([{ ...data }], params, $event, xData);
} else if(xData.newRow && xData.newRow instanceof Function) {
xData.newRow([{ ...data }], params, $event, xData);
}else{
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -4,7 +4,7 @@ import WebSiteContentService from '@/service/web-site-content/web-site-content-s ...@@ -4,7 +4,7 @@ import WebSiteContentService from '@/service/web-site-content/web-site-content-s
import EditViewEngine from '@engine/view/edit-view-engine'; import EditViewEngine from '@engine/view/edit-view-engine';
/** /**
* 内容编辑视图视图基类 * 站点内容视图基类
* *
* @export * @export
* @class WebSiteContentEditViewBase * @class WebSiteContentEditViewBase
......
<studio-view-style2 viewName="websitecontenteditview" viewTitle="内容编辑视图" class='deeditview web-site-content-edit-view'> <studio-view-style2 viewName="websitecontenteditview" viewTitle="站点内容" class='deeditview web-site-content-edit-view'>
<template slot='title'> <template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span> <span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template> </template>
......
...@@ -6,7 +6,7 @@ import { WebSiteContentEditViewBase } from './web-site-content-edit-view-base'; ...@@ -6,7 +6,7 @@ import { WebSiteContentEditViewBase } from './web-site-content-edit-view-base';
import view_form from '@widgets/web-site-content/main-form/main-form.vue'; import view_form from '@widgets/web-site-content/main-form/main-form.vue';
/** /**
* 内容编辑视图视图 * 站点内容视图
* *
* @export * @export
* @class WebSiteContentEditView * @class WebSiteContentEditView
......
...@@ -67,6 +67,8 @@ export class WebSiteContentGridViewBase extends GridViewBase { ...@@ -67,6 +67,8 @@ export class WebSiteContentGridViewBase extends GridViewBase {
* @memberof WebSiteContentGridView * @memberof WebSiteContentGridView
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' }, class: '' },
tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' }, tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' }, tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' },
...@@ -134,12 +136,21 @@ export class WebSiteContentGridViewBase extends GridViewBase { ...@@ -134,12 +136,21 @@ export class WebSiteContentGridViewBase extends GridViewBase {
* @memberof WebSiteContentGridViewBase * @memberof WebSiteContentGridViewBase
*/ */
public toolbar_click($event: any, $event2?: any): void { public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -242,6 +253,34 @@ export class WebSiteContentGridViewBase extends GridViewBase { ...@@ -242,6 +253,34 @@ export class WebSiteContentGridViewBase extends GridViewBase {
this.engine.onCtrlEvent('searchform', 'load', $event); this.engine.onCtrlEvent('searchform', 'load', $event);
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_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.New(datas, contextJO,paramJO, $event, xData,this,"WebSiteContent");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -298,6 +337,62 @@ export class WebSiteContentGridViewBase extends GridViewBase { ...@@ -298,6 +337,62 @@ export class WebSiteContentGridViewBase extends GridViewBase {
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSiteContent"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSiteContent");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem24_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.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WebSiteContent");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem25_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.NewRow(datas, contextJO,paramJO, $event, xData,this,"WebSiteContent");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -490,6 +585,26 @@ export class WebSiteContentGridViewBase extends GridViewBase { ...@@ -490,6 +585,26 @@ export class WebSiteContentGridViewBase extends GridViewBase {
} }
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentGridViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 编辑 * 编辑
* *
...@@ -548,6 +663,42 @@ export class WebSiteContentGridViewBase extends GridViewBase { ...@@ -548,6 +663,42 @@ export class WebSiteContentGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentGridViewBase
*/
public ToggleRowEdit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentGridViewBase
*/
public NewRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
const data: any = {};
if (_this.newRow && _this.newRow instanceof Function) {
_this.newRow([{ ...data }], params, $event, xData);
} else if(xData.newRow && xData.newRow instanceof Function) {
xData.newRow([{ ...data }], params, $event, xData);
}else{
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -4,7 +4,7 @@ import WebSiteService from '@/service/web-site/web-site-service'; ...@@ -4,7 +4,7 @@ import WebSiteService from '@/service/web-site/web-site-service';
import EditViewEngine from '@engine/view/edit-view-engine'; import EditViewEngine from '@engine/view/edit-view-engine';
/** /**
* 实体编辑视图视图基类 * 站点视图基类
* *
* @export * @export
* @class WebSiteEditViewBase * @class WebSiteEditViewBase
......
<studio-view-style2 viewName="websiteeditview" viewTitle="实体编辑视图" class='deeditview web-site-edit-view'> <studio-view-style2 viewName="websiteeditview" viewTitle="站点" class='deeditview web-site-edit-view'>
<template slot='title'> <template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span> <span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template> </template>
......
...@@ -6,7 +6,7 @@ import { WebSiteEditViewBase } from './web-site-edit-view-base'; ...@@ -6,7 +6,7 @@ import { WebSiteEditViewBase } from './web-site-edit-view-base';
import view_form from '@widgets/web-site/main-form/main-form.vue'; import view_form from '@widgets/web-site/main-form/main-form.vue';
/** /**
* 实体编辑视图视图 * 站点视图
* *
* @export * @export
* @class WebSiteEditView * @class WebSiteEditView
......
...@@ -67,6 +67,8 @@ export class WebSiteGridViewBase extends GridViewBase { ...@@ -67,6 +67,8 @@ export class WebSiteGridViewBase extends GridViewBase {
* @memberof WebSiteGridView * @memberof WebSiteGridView
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' }, class: '' },
tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' }, tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' }, tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' },
...@@ -134,12 +136,21 @@ export class WebSiteGridViewBase extends GridViewBase { ...@@ -134,12 +136,21 @@ export class WebSiteGridViewBase extends GridViewBase {
* @memberof WebSiteGridViewBase * @memberof WebSiteGridViewBase
*/ */
public toolbar_click($event: any, $event2?: any): void { public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -242,6 +253,34 @@ export class WebSiteGridViewBase extends GridViewBase { ...@@ -242,6 +253,34 @@ export class WebSiteGridViewBase extends GridViewBase {
this.engine.onCtrlEvent('searchform', 'load', $event); this.engine.onCtrlEvent('searchform', 'load', $event);
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_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.New(datas, contextJO,paramJO, $event, xData,this,"WebSite");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -298,6 +337,62 @@ export class WebSiteGridViewBase extends GridViewBase { ...@@ -298,6 +337,62 @@ export class WebSiteGridViewBase extends GridViewBase {
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSite"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSite");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem24_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.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WebSite");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem25_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.NewRow(datas, contextJO,paramJO, $event, xData,this,"WebSite");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -480,6 +575,26 @@ export class WebSiteGridViewBase extends GridViewBase { ...@@ -480,6 +575,26 @@ export class WebSiteGridViewBase extends GridViewBase {
} }
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteGridViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 编辑 * 编辑
* *
...@@ -538,6 +653,42 @@ export class WebSiteGridViewBase extends GridViewBase { ...@@ -538,6 +653,42 @@ export class WebSiteGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteGridViewBase
*/
public ToggleRowEdit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteGridViewBase
*/
public NewRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
const data: any = {};
if (_this.newRow && _this.newRow instanceof Function) {
_this.newRow([{ ...data }], params, $event, xData);
} else if(xData.newRow && xData.newRow instanceof Function) {
xData.newRow([{ ...data }], params, $event, xData);
}else{
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 删除 * 删除
* *
......
<studio-view-style2 viewName="websitegridview" viewTitle="站点" class='degridview web-site-grid-view'> <studio-view-style2 viewName="websitegridview" viewTitle="站点" class='degridview web-site-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/> <i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/>
<template slot="toolbar"> <template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template> <view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
......
...@@ -4,7 +4,7 @@ import WebSiteResourceService from '@/service/web-site-resource/web-site-resourc ...@@ -4,7 +4,7 @@ import WebSiteResourceService from '@/service/web-site-resource/web-site-resourc
import EditViewEngine from '@engine/view/edit-view-engine'; import EditViewEngine from '@engine/view/edit-view-engine';
/** /**
* 网站资源编辑视图视图基类 * 站点资源视图基类
* *
* @export * @export
* @class WebSiteResourceEditViewBase * @class WebSiteResourceEditViewBase
......
<studio-view-style2 viewName="websiteresourceeditview" viewTitle="网站资源编辑视图" class='deeditview web-site-resource-edit-view'> <studio-view-style2 viewName="websiteresourceeditview" viewTitle="站点资源" class='deeditview web-site-resource-edit-view'>
<template slot='title'> <template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span> <span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template> </template>
......
...@@ -6,7 +6,7 @@ import { WebSiteResourceEditViewBase } from './web-site-resource-edit-view-base' ...@@ -6,7 +6,7 @@ import { WebSiteResourceEditViewBase } from './web-site-resource-edit-view-base'
import view_form from '@widgets/web-site-resource/main-form/main-form.vue'; import view_form from '@widgets/web-site-resource/main-form/main-form.vue';
/** /**
* 网站资源编辑视图视图 * 站点资源视图
* *
* @export * @export
* @class WebSiteResourceEditView * @class WebSiteResourceEditView
......
...@@ -67,6 +67,8 @@ export class WebSiteResourceGridViewBase extends GridViewBase { ...@@ -67,6 +67,8 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
* @memberof WebSiteResourceGridView * @memberof WebSiteResourceGridView
*/ */
public toolBarModels: any = { public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '新建','isShowCaption':true,'isShowIcon':true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'New', target: '' }, class: '' },
tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' }, tbitem4: { name: 'tbitem4', caption: '编辑','isShowCaption':true,'isShowIcon':true, tooltip: '编辑', iconcls: 'fa fa-edit', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' }, class: '' },
tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' }, tbitem6: { name: 'tbitem6', caption: '拷贝','isShowCaption':true,'isShowIcon':true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' }, class: '' },
...@@ -134,12 +136,21 @@ export class WebSiteResourceGridViewBase extends GridViewBase { ...@@ -134,12 +136,21 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
* @memberof WebSiteResourceGridViewBase * @memberof WebSiteResourceGridViewBase
*/ */
public toolbar_click($event: any, $event2?: any): void { public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click(null, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click(null, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
...@@ -242,6 +253,34 @@ export class WebSiteResourceGridViewBase extends GridViewBase { ...@@ -242,6 +253,34 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
this.engine.onCtrlEvent('searchform', 'load', $event); this.engine.onCtrlEvent('searchform', 'load', $event);
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_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.New(datas, contextJO,paramJO, $event, xData,this,"WebSiteResource");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -298,6 +337,62 @@ export class WebSiteResourceGridViewBase extends GridViewBase { ...@@ -298,6 +337,62 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSiteResource"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WebSiteResource");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem24_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.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WebSiteResource");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem25_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.NewRow(datas, contextJO,paramJO, $event, xData,this,"WebSiteResource");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -490,6 +585,26 @@ export class WebSiteResourceGridViewBase extends GridViewBase { ...@@ -490,6 +585,26 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
} }
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceGridViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 编辑 * 编辑
* *
...@@ -548,6 +663,42 @@ export class WebSiteResourceGridViewBase extends GridViewBase { ...@@ -548,6 +663,42 @@ export class WebSiteResourceGridViewBase extends GridViewBase {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' }); _this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
} }
} }
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceGridViewBase
*/
public ToggleRowEdit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
xData.actualIsOpenEdit = !xData.actualIsOpenEdit;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceGridViewBase
*/
public NewRow(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
const data: any = {};
if (_this.newRow && _this.newRow instanceof Function) {
_this.newRow([{ ...data }], params, $event, xData);
} else if(xData.newRow && xData.newRow instanceof Function) {
xData.newRow([{ ...data }], params, $event, xData);
}else{
_this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 删除 * 删除
* *
......
...@@ -10853,7 +10853,7 @@ ...@@ -10853,7 +10853,7 @@
<!--输出实体[WEBSITE]数据结构 --> <!--输出实体[WEBSITE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-website-23-128"> <changeSet author="a_LAB01_e85d8801c" id="tab-website-27-128">
<createTable tableName="WEBSITE"> <createTable tableName="WEBSITE">
<column name="WEBSITENAME" remarks="" type="VARCHAR(200)"> <column name="WEBSITENAME" remarks="" type="VARCHAR(200)">
</column> </column>
...@@ -10879,7 +10879,7 @@ ...@@ -10879,7 +10879,7 @@
<!--输出实体[WEBSITECHANNEL]数据结构 --> <!--输出实体[WEBSITECHANNEL]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-websitechannel-34-129"> <changeSet author="a_LAB01_e85d8801c" id="tab-websitechannel-41-129">
<createTable tableName="WEBSITECHANNEL"> <createTable tableName="WEBSITECHANNEL">
<column name="WEBSITECHANNELID" remarks="" type="VARCHAR(100)"> <column name="WEBSITECHANNELID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WEBSITECHANNEL_WEBSITECHANN"/> <constraints primaryKey="true" primaryKeyName="PK_WEBSITECHANNEL_WEBSITECHANN"/>
...@@ -10913,7 +10913,7 @@ ...@@ -10913,7 +10913,7 @@
<!--输出实体[WEBSITECONTENT]数据结构 --> <!--输出实体[WEBSITECONTENT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-websitecontent-34-130"> <changeSet author="a_LAB01_e85d8801c" id="tab-websitecontent-37-130">
<createTable tableName="WEBSITECONTENT"> <createTable tableName="WEBSITECONTENT">
<column name="WEBSITECONTENTID" remarks="" type="VARCHAR(100)"> <column name="WEBSITECONTENTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WEBSITECONTENT_WEBSITECONTE"/> <constraints primaryKey="true" primaryKeyName="PK_WEBSITECONTENT_WEBSITECONTE"/>
...@@ -10957,7 +10957,7 @@ ...@@ -10957,7 +10957,7 @@
<!--输出实体[WEBSITERESOURCE]数据结构 --> <!--输出实体[WEBSITERESOURCE]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-websiteresource-15-131"> <changeSet author="a_LAB01_e85d8801c" id="tab-websiteresource-17-131">
<createTable tableName="WEBSITERESOURCE"> <createTable tableName="WEBSITERESOURCE">
<column name="WEBSITERESOURCEID" remarks="" type="VARCHAR(100)"> <column name="WEBSITERESOURCEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WEBSITERESOURCE_WEBSITERESO"/> <constraints primaryKey="true" primaryKeyName="PK_WEBSITERESOURCE_WEBSITERESO"/>
...@@ -11904,21 +11904,21 @@ ...@@ -11904,21 +11904,21 @@
<!--输出实体[UOMSCHEDULE]外键关系 --> <!--输出实体[UOMSCHEDULE]外键关系 -->
<!--输出实体[WEBSITE]外键关系 --> <!--输出实体[WEBSITE]外键关系 -->
<!--输出实体[WEBSITECHANNEL]外键关系 --> <!--输出实体[WEBSITECHANNEL]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-websitechannel-34-427"> <changeSet author="a_LAB01_e85d8801c" id="fk-websitechannel-41-427">
<addForeignKeyConstraint baseColumnNames="PWEBSITECHANNELID" baseTableName="WEBSITECHANNEL" constraintName="DER1N_WEBSITECHANNEL_WEBSITECH" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITECHANNELID" referencedTableName="WEBSITECHANNEL" validate="true"/> <addForeignKeyConstraint baseColumnNames="PWEBSITECHANNELID" baseTableName="WEBSITECHANNEL" constraintName="DER1N_WEBSITECHANNEL_WEBSITECH" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITECHANNELID" referencedTableName="WEBSITECHANNEL" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-websitechannel-34-428"> <changeSet author="a_LAB01_e85d8801c" id="fk-websitechannel-41-428">
<addForeignKeyConstraint baseColumnNames="WEBSITEID" baseTableName="WEBSITECHANNEL" constraintName="DER1N_WEBSITECHANNEL_WEBSITE_W" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITEID" referencedTableName="WEBSITE" validate="true"/> <addForeignKeyConstraint baseColumnNames="WEBSITEID" baseTableName="WEBSITECHANNEL" constraintName="DER1N_WEBSITECHANNEL_WEBSITE_W" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITEID" referencedTableName="WEBSITE" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[WEBSITECONTENT]外键关系 --> <!--输出实体[WEBSITECONTENT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-websitecontent-34-429"> <changeSet author="a_LAB01_e85d8801c" id="fk-websitecontent-37-429">
<addForeignKeyConstraint baseColumnNames="WEBSITECHANNELID" baseTableName="WEBSITECONTENT" constraintName="DER1N_WEBSITECONTENT_WEBSITECH" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITECHANNELID" referencedTableName="WEBSITECHANNEL" validate="true"/> <addForeignKeyConstraint baseColumnNames="WEBSITECHANNELID" baseTableName="WEBSITECONTENT" constraintName="DER1N_WEBSITECONTENT_WEBSITECH" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITECHANNELID" referencedTableName="WEBSITECHANNEL" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-websitecontent-34-430"> <changeSet author="a_LAB01_e85d8801c" id="fk-websitecontent-37-430">
<addForeignKeyConstraint baseColumnNames="WEBSITEID" baseTableName="WEBSITECONTENT" constraintName="DER1N_WEBSITECONTENT_WEBSITE_W" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITEID" referencedTableName="WEBSITE" validate="true"/> <addForeignKeyConstraint baseColumnNames="WEBSITEID" baseTableName="WEBSITECONTENT" constraintName="DER1N_WEBSITECONTENT_WEBSITE_W" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITEID" referencedTableName="WEBSITE" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[WEBSITERESOURCE]外键关系 --> <!--输出实体[WEBSITERESOURCE]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-websiteresource-15-431"> <changeSet author="a_LAB01_e85d8801c" id="fk-websiteresource-17-431">
<addForeignKeyConstraint baseColumnNames="WEBSITEID" baseTableName="WEBSITERESOURCE" constraintName="DER1N_WEBSITERESOURCE_WEBSITE_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITEID" referencedTableName="WEBSITE" validate="true"/> <addForeignKeyConstraint baseColumnNames="WEBSITEID" baseTableName="WEBSITERESOURCE" constraintName="DER1N_WEBSITERESOURCE_WEBSITE_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="WEBSITEID" referencedTableName="WEBSITE" validate="true"/>
</changeSet> </changeSet>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册