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

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 827a1ee3
......@@ -508,19 +508,19 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @memberof PanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
......@@ -617,7 +617,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -653,7 +653,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -546,19 +546,19 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Item1layoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
......@@ -546,19 +546,19 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
......@@ -546,19 +546,19 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
......@@ -558,33 +558,33 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
if (Object.is(name, 'button_link1')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] instanceof Function) {
UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
}
})
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
if (Object.is(name, 'button_link1')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] && UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`] instanceof Function) {
UIService[`IBIZBOOK_panel_Listpanel_button_link1_click`](datas, contextJO, paramJO, $event, xData, this, undefined);
}
if (Object.is(name, 'button_calluilogic1')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) {
UIService[`IBIZBOOK_openDocument`](datas, contextJO, paramJO, $event, xData, this, undefined);
}
})
})
}
if (Object.is(name, 'button_calluilogic1')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) {
UIService[`IBIZBOOK_openDocument`](datas, contextJO, paramJO, $event, xData, this, undefined);
}
})
}
}
......
......@@ -46,11 +46,11 @@
<span class="quick-toolbar">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr4listview_layoutlist_quicktoolbarModels.deuiaction1.visabled" :disabled="usr4listview_layoutlist_quicktoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_quicktoolbar_click({ tag: 'deuiaction1' }, $event)">
<i-button v-show="listviewlist_quicktoolbarModels.deuiaction1.visabled" :disabled="listviewlist_quicktoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_quicktoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_quicktoolbar_toolbar.deuiaction1.caption')}}</span>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_quicktoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_quicktoolbar_toolbar.deuiaction1.tip')}}</div>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_quicktoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
</div>
</span>
......@@ -61,18 +61,18 @@
<span class="batch-toolbar">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr4listview_layoutlist_batchtoolbarModels.deuiaction1.visabled" :disabled="usr4listview_layoutlist_batchtoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction1' }, $event)">
<i-button v-show="listviewlist_batchtoolbarModels.deuiaction1.visabled" :disabled="listviewlist_batchtoolbarModels.deuiaction1.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction1.caption')}}</span>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction1.tip')}}</div>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr4listview_layoutlist_batchtoolbarModels.deuiaction2.visabled" :disabled="usr4listview_layoutlist_batchtoolbarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction2' }, $event)">
<i-button v-show="listviewlist_batchtoolbarModels.deuiaction2.visabled" :disabled="listviewlist_batchtoolbarModels.deuiaction2.disabled" class='' v-button-loading:i-button @click="list_batchtoolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction2.caption')}}</span>
<span class='caption'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr4listview_layoutlist_batchtoolbar_toolbar.deuiaction2.tip')}}</div>
<div slot='content'>{{$t('entities.ibizbook.listviewlist_batchtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
</div>
</span>
......@@ -362,7 +362,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr4ListView_layoutBase
* @memberof IBIZBOOKListViewBase
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
......@@ -382,7 +382,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr4ListView_layoutBase
* @memberof IBIZBOOKListViewBase
*/
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
......@@ -408,7 +408,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr4ListView_layoutBase
* @memberof IBIZBOOKListViewBase
*/
public Remove(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
......@@ -602,9 +602,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOKUsr4ListView_layout
* @memberof IBIZBOOKListView
*/
public usr4listview_layoutlist_quicktoolbarModels: any = {
public listviewlist_quicktoolbarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
};
......@@ -614,9 +614,9 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOKUsr4ListView_layout
* @memberof IBIZBOOKListView
*/
public usr4listview_layoutlist_batchtoolbarModels: any = {
public listviewlist_batchtoolbarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
......@@ -839,7 +839,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
*/
public load(opt: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -955,7 +955,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.removeAction') as string) });
return;
}
if (datas.length === 0) {
......@@ -1050,7 +1050,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -1058,7 +1058,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZBOOKListView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){
......
......@@ -534,19 +534,19 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
......@@ -534,19 +534,19 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
......@@ -676,7 +676,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -755,7 +755,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -864,7 +864,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -872,7 +872,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){
......
......@@ -69,6 +69,11 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
......
......@@ -546,19 +546,19 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
......@@ -534,19 +534,19 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase
*/
public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
let datas: any[] = [];
const data: any = this.layoutModelDetails[name].getData();
if (data) {
if (data instanceof Array) {
datas = [...data];
} else {
datas = [data];
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
const xData: any = this.layoutModelDetails[name].getDataArea();
const paramJO: any = {};
const contextJO: any = {};
const _this: any = this;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册