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

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

上级 73c75099
{ {
"VMGroup26":[
{"tag":"ViewMsg25","position":"TOP","type":"ERROR"}
],
"VMGroup16":[ "VMGroup16":[
{"tag":"ViewMsg15","position":"TOP","type":"ERROR"} {"tag":"ViewMsg15","position":"TOP","type":"ERROR"}
], ],
...@@ -17,6 +20,9 @@ ...@@ -17,6 +20,9 @@
"VMGroup6":[ "VMGroup6":[
{"tag":"ViewMsg6","position":"TOP","type":"ERROR"} {"tag":"ViewMsg6","position":"TOP","type":"ERROR"}
], ],
"VMGroup25":[
{"tag":"ViewMsg24","position":"TOP","type":"ERROR"}
],
"VMGroup3":[ "VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"} {"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
], ],
...@@ -32,12 +38,12 @@ ...@@ -32,12 +38,12 @@
"VMGroup7":[ "VMGroup7":[
{"tag":"ViewMsg7","position":"TOP","type":"ERROR"} {"tag":"ViewMsg7","position":"TOP","type":"ERROR"}
], ],
"VMGroup24":[
{"tag":"ViewMsg23","position":"TOP","type":"ERROR"}
],
"VMGroup23":[ "VMGroup23":[
{"tag":"ViewMsg22","position":"TOP","type":"ERROR"} {"tag":"ViewMsg22","position":"TOP","type":"ERROR"}
], ],
"VMGroup24":[
{"tag":"ViewMsg23","position":"TOP","type":"ERROR"}
],
"VMGroup17":[ "VMGroup17":[
{"tag":"ViewMsg16","position":"TOP","type":"ERROR"} {"tag":"ViewMsg16","position":"TOP","type":"ERROR"}
], ],
......
...@@ -629,59 +629,31 @@ export default { ...@@ -629,59 +629,31 @@ export default {
}, },
}, },
usr2calendarviewcalendar_batchtoolbar_toolbar: { usr2calendarviewcalendar_batchtoolbar_toolbar: {
tbitem3: { deuiaction1: {
caption: "New",
tip: "New",
},
deuiaction2: {
caption: "Save", caption: "Save",
tip: "Save", tip: "Save",
}, },
tbitem4: { deuiaction2: {
caption: "Edit", caption: "Edit",
tip: "Edit {0}", tip: "Edit {0}",
}, },
tbitem6: { deuiaction3: {
caption: "Copy", caption: "刷新",
tip: "Copy {0}", tip: "刷新",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
deuiaction1: {
caption: "导入",
tip: "导入",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
}, },
}, },
calendarviewcalendar_quicktoolbar_toolbar: { calendarviewcalendar_quicktoolbar_toolbar: {
tbitem3: { deuiaction1: {
caption: "Save", caption: "Save",
tip: "Save", tip: "Save",
}, },
tbitem5: { deuiaction2: {
caption: "Save And Close", caption: "Edit",
tip: "Save And Close Window", tip: "Edit {0}",
},
deuiaction3: {
caption: "刷新",
tip: "刷新",
}, },
}, },
calendarviewtoolbar_toolbar: { calendarviewtoolbar_toolbar: {
...@@ -1030,28 +1002,17 @@ export default { ...@@ -1030,28 +1002,17 @@ export default {
ibizbooktimeline_calendar: { ibizbooktimeline_calendar: {
nodata:"", nodata:"",
uiactions: { uiactions: {
new: "New",
save: "Save", save: "Save",
edit: "Edit", edit: "Edit",
copy: "Copy", refresh: "刷新",
togglefilter: "Filter",
togglerowedit: "行编辑",
newrow: "新建行",
remove: "Remove",
exportexcel: "Export",
importexcel: "导入",
print: "Print",
exportmodel: "Export Data Model",
import: "数据导入",
}, },
}, },
ibizbookmonth_calendar: { ibizbookmonth_calendar: {
nodata:"", nodata:"",
uiactions: { uiactions: {
save: "Save", save: "Save",
saveandexit: "Save And Close", edit: "Edit",
saveandstart: "Start workflow", refresh: "刷新",
print: "Print",
}, },
}, },
}; };
\ No newline at end of file
...@@ -628,59 +628,31 @@ export default { ...@@ -628,59 +628,31 @@ export default {
}, },
}, },
usr2calendarviewcalendar_batchtoolbar_toolbar: { usr2calendarviewcalendar_batchtoolbar_toolbar: {
tbitem3: { deuiaction1: {
caption: "新建",
tip: "新建",
},
deuiaction2: {
caption: "保存", caption: "保存",
tip: "保存", tip: "保存",
}, },
tbitem4: { deuiaction2: {
caption: "编辑", caption: "编辑",
tip: "编辑", tip: "编辑",
}, },
tbitem6: { deuiaction3: {
caption: "拷贝", caption: "刷新",
tip: "拷贝", tip: "刷新",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
deuiaction1: {
caption: "导入",
tip: "导入",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "导出数据模型",
tip: "导出数据模型",
}, },
}, },
calendarviewcalendar_quicktoolbar_toolbar: { calendarviewcalendar_quicktoolbar_toolbar: {
tbitem3: { deuiaction1: {
caption: "保存", caption: "保存",
tip: "保存", tip: "保存",
}, },
tbitem5: { deuiaction2: {
caption: "保存并关闭", caption: "编辑",
tip: "保存并关闭", tip: "编辑",
},
deuiaction3: {
caption: "刷新",
tip: "刷新",
}, },
}, },
calendarviewtoolbar_toolbar: { calendarviewtoolbar_toolbar: {
...@@ -1029,28 +1001,17 @@ export default { ...@@ -1029,28 +1001,17 @@ export default {
ibizbooktimeline_calendar: { ibizbooktimeline_calendar: {
nodata:"", nodata:"",
uiactions: { uiactions: {
new: "新建",
save: "保存", save: "保存",
edit: "编辑", edit: "编辑",
copy: "拷贝", refresh: "刷新",
togglefilter: "过滤",
togglerowedit: "行编辑",
newrow: "新建行",
remove: "删除",
exportexcel: "导出",
importexcel: "导入",
print: "打印",
exportmodel: "导出数据模型",
import: "数据导入",
}, },
}, },
ibizbookmonth_calendar: { ibizbookmonth_calendar: {
nodata:"", nodata:"",
uiactions: { uiactions: {
save: "保存", save: "保存",
saveandexit: "保存并关闭", edit: "编辑",
saveandstart: "开始流程", refresh: "刷新",
print: "打印",
}, },
}, },
}; };
\ No newline at end of file
...@@ -41,6 +41,7 @@ export class MessageServiceRegister { ...@@ -41,6 +41,7 @@ export class MessageServiceRegister {
protected init(): void { protected init(): void {
this.allMessageService.set('ViewMsg4', () => import('@/message/view-msg4/view-msg4-message')); this.allMessageService.set('ViewMsg4', () => import('@/message/view-msg4/view-msg4-message'));
this.allMessageService.set('ViewMsg22', () => import('@/message/view-msg22/view-msg22-message')); this.allMessageService.set('ViewMsg22', () => import('@/message/view-msg22/view-msg22-message'));
this.allMessageService.set('ViewMsg24', () => import('@/message/view-msg24/view-msg24-message'));
this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message')); this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message'));
this.allMessageService.set('ViewMsg10', () => import('@/message/view-msg10/view-msg10-message')); this.allMessageService.set('ViewMsg10', () => import('@/message/view-msg10/view-msg10-message'));
this.allMessageService.set('ViewMsg23', () => import('@/message/view-msg23/view-msg23-message')); this.allMessageService.set('ViewMsg23', () => import('@/message/view-msg23/view-msg23-message'));
...@@ -60,6 +61,7 @@ export class MessageServiceRegister { ...@@ -60,6 +61,7 @@ export class MessageServiceRegister {
this.allMessageService.set('ViewMsg19', () => import('@/message/view-msg19/view-msg19-message')); this.allMessageService.set('ViewMsg19', () => import('@/message/view-msg19/view-msg19-message'));
this.allMessageService.set('ViewMsg21', () => import('@/message/view-msg21/view-msg21-message')); this.allMessageService.set('ViewMsg21', () => import('@/message/view-msg21/view-msg21-message'));
this.allMessageService.set('ViewMsg11', () => import('@/message/view-msg11/view-msg11-message')); this.allMessageService.set('ViewMsg11', () => import('@/message/view-msg11/view-msg11-message'));
this.allMessageService.set('ViewMsg25', () => import('@/message/view-msg25/view-msg25-message'));
this.allMessageService.set('ViewMsg3', () => import('@/message/view-msg3/view-msg3-message')); this.allMessageService.set('ViewMsg3', () => import('@/message/view-msg3/view-msg3-message'));
this.allMessageService.set('ViewMsg6', () => import('@/message/view-msg6/view-msg6-message')); this.allMessageService.set('ViewMsg6', () => import('@/message/view-msg6/view-msg6-message'));
this.allMessageService.set('ViewMsg14', () => import('@/message/view-msg14/view-msg14-message')); this.allMessageService.set('ViewMsg14', () => import('@/message/view-msg14/view-msg14-message'));
......
import ViewMessageService from '../view-message-service';
/**
* 日历部件非时间轴样式视图消息服务对象基类
*
* @export
* @class ViewMsg24MessageServiceBase
*/
export default class ViewMsg24MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg24MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg24MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg24MessageServiceBase
*/
public initBasicParam(){
this.id = "1C7B5B06-FD69-4377-B95B-124B3779D8BF";
this.name = "日历部件非时间轴样式";
this.codename = "ViewMsg24";
this.title = "";
this.content = "非时间轴日历样式:快速搜索、快速分组搜索、搜索表单搜索、快速搜索表单部件、搜索栏搜索和快速操作工具栏、右键菜单等配置";
this.closeMode = 0;
this.position = "TOP";
this.type = "error";
this.isEnableRemove = false;
this.order = 1;
this.dynamicMode = "STATIC";
this.hasMessageTemp = false;
this.messageType = "TEXT";
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg24MessageServiceBase
*/
public translateMessageTemp(target:any,context:any,viewparam:any,item?:any){
if(this.hasMessageTemp && Object.is(this.messageType,"HTML")){
Object.assign(target,{title:``});
Object.assign(target,{content:``});
}
if(this.hasMessageTemp && Object.is(this.messageType,"TEXT")){
Object.assign(target,{title:""});
Object.assign(target,{content:""});
}
}
}
\ No newline at end of file
import ViewMsg24MessageServiceBase from './view-msg24-message-base';
/**
* 日历部件非时间轴样式视图消息服务对象
*
* @export
* @class ViewMsg24MessageService
*/
export default class ViewMsg24MessageService extends ViewMsg24MessageServiceBase {
/**
* Creates an instance of ViewMsg24MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg24MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import ViewMessageService from '../view-message-service';
/**
* 日历时间轴样式视图消息服务对象基类
*
* @export
* @class ViewMsg25MessageServiceBase
*/
export default class ViewMsg25MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg25MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg25MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg25MessageServiceBase
*/
public initBasicParam(){
this.id = "A5539E12-F033-4C5D-9333-8370F9DB01F2";
this.name = "日历时间轴样式";
this.codename = "ViewMsg25";
this.title = "";
this.content = "时间轴样式日历:批操作工具栏,右键菜单配置";
this.closeMode = 0;
this.position = "TOP";
this.type = "error";
this.isEnableRemove = false;
this.order = 1;
this.dynamicMode = "STATIC";
this.hasMessageTemp = false;
this.messageType = "TEXT";
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg25MessageServiceBase
*/
public translateMessageTemp(target:any,context:any,viewparam:any,item?:any){
if(this.hasMessageTemp && Object.is(this.messageType,"HTML")){
Object.assign(target,{title:``});
Object.assign(target,{content:``});
}
if(this.hasMessageTemp && Object.is(this.messageType,"TEXT")){
Object.assign(target,{title:""});
Object.assign(target,{content:""});
}
}
}
\ No newline at end of file
import ViewMsg25MessageServiceBase from './view-msg25-message-base';
/**
* 日历时间轴样式视图消息服务对象
*
* @export
* @class ViewMsg25MessageService
*/
export default class ViewMsg25MessageService extends ViewMsg25MessageServiceBase {
/**
* Creates an instance of ViewMsg25MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg25MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -1214,6 +1214,9 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -1214,6 +1214,9 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
return [status,{ return [status,{
"VMGroup26":[
{"tag":"ViewMsg25","position":"TOP","type":"ERROR"}
],
"VMGroup16":[ "VMGroup16":[
{"tag":"ViewMsg15","position":"TOP","type":"ERROR"} {"tag":"ViewMsg15","position":"TOP","type":"ERROR"}
], ],
...@@ -1232,6 +1235,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { ...@@ -1232,6 +1235,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup6":[ "VMGroup6":[
{"tag":"ViewMsg6","position":"TOP","type":"ERROR"} {"tag":"ViewMsg6","position":"TOP","type":"ERROR"}
], ],
"VMGroup25":[
{"tag":"ViewMsg24","position":"TOP","type":"ERROR"}
],
"VMGroup3":[ "VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"} {"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
], ],
...@@ -1247,12 +1253,12 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { ...@@ -1247,12 +1253,12 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup7":[ "VMGroup7":[
{"tag":"ViewMsg7","position":"TOP","type":"ERROR"} {"tag":"ViewMsg7","position":"TOP","type":"ERROR"}
], ],
"VMGroup24":[
{"tag":"ViewMsg23","position":"TOP","type":"ERROR"}
],
"VMGroup23":[ "VMGroup23":[
{"tag":"ViewMsg22","position":"TOP","type":"ERROR"} {"tag":"ViewMsg22","position":"TOP","type":"ERROR"}
], ],
"VMGroup24":[
{"tag":"ViewMsg23","position":"TOP","type":"ERROR"}
],
"VMGroup17":[ "VMGroup17":[
{"tag":"ViewMsg16","position":"TOP","type":"ERROR"} {"tag":"ViewMsg16","position":"TOP","type":"ERROR"}
], ],
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class='view-top-messages'> <div class='view-top-messages'>
</div> <app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup25' viewname='ibizbookcalendarview'></app-alert-group> </div>
<div class='content-container'> <div class='content-container'>
<div style="margin-bottom:6px;"> <div style="margin-bottom:6px;">
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
@closeview="closeView($event)"> @closeview="closeView($event)">
</view_searchform> </view_searchform>
<div class='view-body-messages'> <div class='view-body-messages'>
</div> <app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup25' viewname='ibizbookcalendarview'></app-alert-group> </div>
<view_calendar <view_calendar
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</div> </div>
<div class='view-bottom-messages'> <div class='view-bottom-messages'>
</div> <app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup25' viewname='ibizbookcalendarview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
</div> </div>
<div class='view-top-messages'> <div class='view-top-messages'>
</div> <app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup26' viewname='ibizbookusr2calendarview'></app-alert-group> </div>
<div class='content-container'> <div class='content-container'>
<div class='view-body-messages'> <div class='view-body-messages'>
</div> <app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup26' viewname='ibizbookusr2calendarview'></app-alert-group> </div>
<view_calendar <view_calendar
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
<div class='view-bottom-messages'> <div class='view-bottom-messages'>
</div> <app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup26' viewname='ibizbookusr2calendarview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
...@@ -3,18 +3,25 @@ ...@@ -3,18 +3,25 @@
<span class="quick-toolbar"> <span class="quick-toolbar">
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="calendarviewcalendar_quicktoolbarModels.tbitem3.visabled" :disabled="calendarviewcalendar_quicktoolbarModels.tbitem3.disabled" class=' deepskyblueToolBar' @click="calendar_quicktoolbar_click({ tag: 'tbitem3' }, $event)"> <i-button v-show="calendarviewcalendar_quicktoolbarModels.deuiaction1.visabled" :disabled="calendarviewcalendar_quicktoolbarModels.deuiaction1.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-save'></i> <i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.tbitem3.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.tbitem3.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip> </tooltip>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="calendarviewcalendar_quicktoolbarModels.tbitem5.visabled" :disabled="calendarviewcalendar_quicktoolbarModels.tbitem5.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'tbitem5' }, $event)"> <i-button v-show="calendarviewcalendar_quicktoolbarModels.deuiaction2.visabled" :disabled="calendarviewcalendar_quicktoolbarModels.deuiaction2.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='sx-tb-saveandclose'></i> <i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.tbitem5.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.tbitem5.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="calendarviewcalendar_quicktoolbarModels.deuiaction3.visabled" :disabled="calendarviewcalendar_quicktoolbarModels.deuiaction3.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'deuiaction3' }, $event)">
<i class='fa fa-refresh'></i>
<span class='caption'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.calendarviewcalendar_quicktoolbar_toolbar.deuiaction3.tip')}}</div>
</tooltip> </tooltip>
</div> </div>
</span> </span>
...@@ -170,17 +177,33 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -170,17 +177,33 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKMONTHBase * @memberof IBIZBOOKMONTHBase
*/ */
public calendar_quicktoolbar_click($event: any, $event2?: any) { public calendar_quicktoolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'deuiaction1')) {
this.calendar_quicktoolbar_tbitem3_click(null, 'calendar_quicktoolbar', $event2); this.calendar_quicktoolbar_deuiaction1_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.calendar_quicktoolbar_deuiaction2_click(null, 'calendar_quicktoolbar', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'deuiaction3')) {
this.calendar_quicktoolbar_tbitem5_click(null, 'calendar_quicktoolbar', $event2); this.calendar_quicktoolbar_deuiaction3_click(null, 'calendar_quicktoolbar', $event2);
}
}
/**
* cm 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKMONTHBase
*/
public cm_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'deuiaction1')) {
this.cm_deuiaction1_click(null, 'cm', $event2);
} }
if (Object.is($event.tag, 'tbitem9')) { if (Object.is($event.tag, 'deuiaction2')) {
this.calendar_quicktoolbar_tbitem9_click(null, 'calendar_quicktoolbar', $event2); this.cm_deuiaction2_click(null, 'cm', $event2);
} }
if (Object.is($event.tag, 'tbitem15')) { if (Object.is($event.tag, 'deuiaction3')) {
this.calendar_quicktoolbar_tbitem15_click(null, 'calendar_quicktoolbar', $event2); this.cm_deuiaction3_click(null, 'cm', $event2);
} }
} }
...@@ -193,7 +216,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -193,7 +216,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public calendar_quicktoolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) { public calendar_quicktoolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -221,7 +244,63 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -221,7 +244,63 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public calendar_quicktoolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) { public calendar_quicktoolbar_deuiaction2_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_deuiaction3_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Refresh(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public cm_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -238,7 +317,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -238,7 +317,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK"); this.Save(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
} }
/** /**
...@@ -249,7 +328,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -249,7 +328,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public calendar_quicktoolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) { public cm_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -266,7 +345,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -266,7 +345,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK"); this.Edit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
} }
/** /**
...@@ -277,7 +356,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -277,7 +356,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public calendar_quicktoolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) { public cm_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -294,7 +373,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -294,7 +373,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK"); this.Refresh(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
} }
/** /**
...@@ -324,7 +403,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -324,7 +403,7 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
} }
/** /**
* 保存并关闭 * 编辑
* *
* @param {any[]} args 当前数据 * @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文 * @param {any} contextJO 行为附加上下文
...@@ -334,62 +413,23 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -334,62 +413,23 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase * @memberof IBIZBOOKCalendarViewBase
*/ */
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; if (args.length === 0) {
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return; return;
} }
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase
*/
public SaveAndStart(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (!xData || !(xData.wfstart instanceof Function)) { if (_this.opendata && _this.opendata instanceof Function) {
return; const data: any = { };
} if (args.length > 0) {
xData.wfstart(args).then((response: any) => { Object.assign(data, { ibizbook: args[0].ibizbook })
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if(window.parent){
window.parent.postMessage({ ..._data },'*');
} }
if (_this.viewdata) { _this.opendata([{ ...data }], params, $event, xData);
_this.$emit('viewdataschange', [{ ..._data }]); } else {
_this.$emit('close'); _this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
} }
});
} }
/** /**
* 打印 * 刷新
* *
* @param {any[]} args 当前数据 * @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文 * @param {any} contextJO 行为附加上下文
...@@ -399,12 +439,13 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -399,12 +439,13 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase * @memberof IBIZBOOKCalendarViewBase
*/ */
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Refresh(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this; const _this: any = this;
if (!xData || !(xData.print instanceof Function) || !$event) { if (xData && xData.refresh && xData.refresh instanceof Function) {
return ; xData.refresh(args);
} else if (_this.refresh && _this.refresh instanceof Function) {
_this.refresh(args);
} }
xData.print();
} }
/** /**
...@@ -673,6 +714,9 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -673,6 +714,9 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKMONTHBase * @memberof IBIZBOOKMONTHBase
*/ */
public actionModel: any = { public actionModel: any = {
item1_deuiaction1: {name:'deuiaction1',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Save', noprivdisplaymode:2, visabled: true, disabled: false},
item1_deuiaction2: {name:'deuiaction2',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Edit', actiontarget: 'SINGLEKEY', noprivdisplaymode:2, visabled: true, disabled: false},
item1_deuiaction3: {name:'deuiaction3',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Refresh', actiontarget: 'SINGLEKEY', noprivdisplaymode:2, visabled: true, disabled: false},
} }
/** /**
...@@ -1067,9 +1111,11 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -1067,9 +1111,11 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
* @memberof IBIZBOOKCalendarView * @memberof IBIZBOOKCalendarView
*/ */
public calendarviewcalendar_quicktoolbarModels: any = { public calendarviewcalendar_quicktoolbarModels: any = {
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } }, deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem5: { name: 'tbitem5', actiontarget: 'NONE', caption: '保存并关闭', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' } }, deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
deuiaction3: { name: 'deuiaction3', actiontarget: 'NONE', caption: '刷新', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' } },
}; };
...@@ -1155,11 +1201,41 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface { ...@@ -1155,11 +1201,41 @@ export default class IBIZBOOKMONTHBase extends Vue implements ControlInterface {
const data: any = JSON.parse(JSON.stringify(event)); const data: any = JSON.parse(JSON.stringify(event));
this.selections = [event]; this.selections = [event];
switch(event.itemType){ switch(event.itemType){
case "item1":
content = this.renderContextMenuItem1();
break;
} }
} }
return content; return content;
} }
/**
* 绘制item1类型右键菜单
*
* @returns
* @memberof IBIZBOOKMONTHBase
*/
public renderContextMenuItem1() {
return (
<dropdown class="tree-right-menu" trigger="custom" visible={true} on-on-click={($event: any) => this.cm_click({tag: $event})}>
<dropdown-menu slot="list">
<dropdown-item name='deuiaction1' v-show={this.copyActionModel['deuiaction1'].visabled} disabled={this.copyActionModel['deuiaction1'].disabled}>
<i class='fa fa-save'></i>
保存
</dropdown-item>
<dropdown-item name='deuiaction2' v-show={this.copyActionModel['deuiaction2'].visabled} disabled={this.copyActionModel['deuiaction2'].disabled}>
<i class='fa fa-edit'></i>
编辑
</dropdown-item>
<dropdown-item name='deuiaction3' v-show={this.copyActionModel['deuiaction3'].visabled} disabled={this.copyActionModel['deuiaction3'].disabled}>
<i class='fa fa-refresh'></i>
刷新
</dropdown-item>
</dropdown-menu>
</dropdown>
);
}
} }
</script> </script>
......
// this is less // this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
@import '~@fullcalendar/core/main.css'; @import '~@fullcalendar/core/main.css';
@import '~@fullcalendar/daygrid/main.css'; @import '~@fullcalendar/daygrid/main.css';
@import '~@fullcalendar/timegrid/main.css'; @import '~@fullcalendar/timegrid/main.css';
......
...@@ -2,74 +2,27 @@ ...@@ -2,74 +2,27 @@
<div :class='calendarClass'> <div :class='calendarClass'>
<span v-if="selections.length > 0" class="batch-toolbar"> <span v-if="selections.length > 0" class="batch-toolbar">
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.tbitem3.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.tbitem3.disabled" class=' deepskyblueToolBar' @click="calendar_batchtoolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem3.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.tbitem4.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.tbitem4.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'tbitem4' }, $event)">
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem4.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem4.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.tbitem6.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.tbitem6.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'tbitem6' }, $event)">
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem6.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem6.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.tbitem8.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.tbitem8.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'tbitem8' }, $event)">
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem8.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem8.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.deuiaction1.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.deuiaction1.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'deuiaction1' }, $event)"> <i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.deuiaction1.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.deuiaction1.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-upload'></i> <i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction1.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction1.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip> </tooltip>
<span class='seperator'>|</span>
<dropdown v-show="usr2calendarviewcalendar_batchtoolbarModels.tbitem16.visabled" trigger='click'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button class=''> <i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.deuiaction2.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'deuiaction2' }, $event)">
<i class=''></i> <i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem16.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2.caption')}}</span>
<icon type="ios-arrow-down"></icon>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem16.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip> </tooltip>
<dropdown-menu slot='list'>
<dropdown-item>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.tbitem21.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.tbitem21.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'tbitem21' }, $event)"> <i-button v-show="usr2calendarviewcalendar_batchtoolbarModels.deuiaction3.visabled" :disabled="usr2calendarviewcalendar_batchtoolbarModels.deuiaction3.disabled" class='' @click="calendar_batchtoolbar_click({ tag: 'deuiaction3' }, $event)">
<i class='fa fa-download'></i> <i class='fa fa-refresh'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem21.caption')}}</span> <span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction3.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.tbitem21.tip')}}</div> <div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_batchtoolbar_toolbar.deuiaction3.tip')}}</div>
</tooltip> </tooltip>
</dropdown-item>
</dropdown-menu>
</dropdown>
</div> </div>
</span> </span>
<context-menu-container> <context-menu-container>
...@@ -221,6 +174,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -221,6 +174,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
if (Object.is($event.tag, 'deuiaction2')) { if (Object.is($event.tag, 'deuiaction2')) {
this.cm_deuiaction2_click(null, 'cm', $event2); this.cm_deuiaction2_click(null, 'cm', $event2);
} }
if (Object.is($event.tag, 'deuiaction3')) {
this.cm_deuiaction3_click(null, 'cm', $event2);
}
} }
/** /**
...@@ -231,45 +187,15 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -231,45 +187,15 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKTIMELINEBase * @memberof IBIZBOOKTIMELINEBase
*/ */
public calendar_batchtoolbar_click($event: any, $event2?: any) { public calendar_batchtoolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'deuiaction1')) {
this.calendar_batchtoolbar_tbitem3_click(null, 'calendar_batchtoolbar', $event2); this.calendar_batchtoolbar_deuiaction1_click(null, 'calendar_batchtoolbar', $event2);
} }
if (Object.is($event.tag, 'deuiaction2')) { if (Object.is($event.tag, 'deuiaction2')) {
this.calendar_batchtoolbar_deuiaction2_click(null, 'calendar_batchtoolbar', $event2); this.calendar_batchtoolbar_deuiaction2_click(null, 'calendar_batchtoolbar', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) {
this.calendar_batchtoolbar_tbitem4_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.calendar_batchtoolbar_tbitem6_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'deuiaction3')) { if (Object.is($event.tag, 'deuiaction3')) {
this.calendar_batchtoolbar_deuiaction3_click(null, 'calendar_batchtoolbar', $event2); this.calendar_batchtoolbar_deuiaction3_click(null, 'calendar_batchtoolbar', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) {
this.calendar_batchtoolbar_tbitem24_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.calendar_batchtoolbar_tbitem25_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.calendar_batchtoolbar_tbitem8_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem13')) {
this.calendar_batchtoolbar_tbitem13_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.calendar_batchtoolbar_deuiaction1_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem11')) {
this.calendar_batchtoolbar_tbitem11_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem21')) {
this.calendar_batchtoolbar_tbitem21_click(null, 'calendar_batchtoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem23')) {
this.calendar_batchtoolbar_tbitem23_click(null, 'calendar_batchtoolbar', $event2);
}
} }
...@@ -281,35 +207,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -281,35 +207,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public calendar_batchtoolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) { public calendar_batchtoolbar_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -337,7 +235,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -337,7 +235,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public calendar_batchtoolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) { public calendar_batchtoolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -357,34 +255,6 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -357,34 +255,6 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
this.Edit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK"); this.Edit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_tbitem6_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/** /**
* 逻辑事件 * 逻辑事件
* *
...@@ -410,35 +280,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -410,35 +280,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK"); this.Refresh(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
} }
/** /**
...@@ -449,175 +291,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -449,175 +291,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public calendar_batchtoolbar_tbitem25_click(params: any = {}, tag?: any, $event?: any) { public cm_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_tbitem8_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_tbitem13_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ImportExcel(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_tbitem11_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_tbitem21_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;
if (_this.getDatas && _this.getDatas instanceof Function) {
datas = [..._this.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_tbitem23_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -634,7 +308,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -634,7 +308,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.Import(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK"); this.Save(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
} }
/** /**
...@@ -645,7 +319,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -645,7 +319,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public cm_deuiaction1_click(params: any = {}, tag?: any, $event?: any) { public cm_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -673,7 +347,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -673,7 +347,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public cm_deuiaction2_click(params: any = {}, tag?: any, $event?: any) { public cm_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -690,29 +364,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -690,29 +364,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK"); this.Refresh(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
} }
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
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 视图处理逻辑不存在,请添加!' });
}
}
/** /**
* 保存 * 保存
* *
...@@ -766,35 +420,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -766,35 +420,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
} }
} }
/** /**
* 拷贝 * 刷新
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { ibizbook: args[0].ibizbook });
}
if(!params) params = {};
Object.assign(params,{copymode:true});
_this.opendata([{ ...data }], params, $event, xData);
} else {
Object.assign(this.viewparams,{copymode:true});
}
}
/**
* 过滤
* *
* @param {any[]} args 当前数据 * @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文 * @param {any} contextJO 行为附加上下文
...@@ -804,175 +430,14 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -804,175 +430,14 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase * @memberof IBIZBOOKUsr2CalendarViewBase
*/ */
public ToggleFilter(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Refresh(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const _this: any = this;
if (_this.hasOwnProperty('isExpandSearchForm')) { if (xData && xData.refresh && xData.refresh instanceof Function) {
_this.isExpandSearchForm = !_this.isExpandSearchForm; xData.refresh(args);
} else if (_this.refresh && _this.refresh instanceof Function) {
_this.refresh(args);
} }
} }
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
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 IBIZBOOKUsr2CalendarViewBase
*/
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.hasOwnProperty('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 视图处理逻辑不存在,请添加!' });
}
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public Remove(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.remove instanceof Function)) {
return ;
}
xData.remove(args);
}
/**
* 导出
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public ExportExcel(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.exportExcel instanceof Function) || !$event) {
return ;
}
xData.exportExcel($event.exportparms);
}
/**
* 导入
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async ImportExcel(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'NONE';
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
const openPopupApp = (url: string) => {
window.open(url, '_blank');
return null;
}
const url = `../../ibizutil/uploaddedataview.jsp?srfdeid=`;
openPopupApp(url);
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) {
return ;
}
xData.print();
}
/**
* 导出数据模型
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public ExportModel(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '导出数据模型未支持' });
}
/**
* 数据导入
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKUsr2CalendarViewBase
*/
public Import(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.importExcel instanceof Function) || !$event) {
return ;
}
xData.importExcel(params);
}
/** /**
* 转化数据 * 转化数据
...@@ -1240,8 +705,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -1240,8 +705,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKTIMELINEBase * @memberof IBIZBOOKTIMELINEBase
*/ */
public actionModel: any = { public actionModel: any = {
item1_deuiaction1: {name:'deuiaction1',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Edit', actiontarget: 'SINGLEKEY', noprivdisplaymode:2, visabled: true, disabled: false}, item1_deuiaction1: {name:'deuiaction1',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Save', noprivdisplaymode:2, visabled: true, disabled: false},
item1_deuiaction2: {name:'deuiaction2',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Remove', actiontarget: 'MULTIKEY', noprivdisplaymode:2, visabled: true, disabled: false}, item1_deuiaction2: {name:'deuiaction2',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Edit', actiontarget: 'SINGLEKEY', noprivdisplaymode:2, visabled: true, disabled: false},
item1_deuiaction3: {name:'deuiaction3',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Refresh', actiontarget: 'SINGLEKEY', noprivdisplaymode:2, visabled: true, disabled: false},
} }
/** /**
...@@ -1637,24 +1103,11 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -1637,24 +1103,11 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKUsr2CalendarView * @memberof IBIZBOOKUsr2CalendarView
*/ */
public usr2calendarviewcalendar_batchtoolbarModels: any = { public usr2calendarviewcalendar_batchtoolbarModels: any = {
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } }, deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } },
tbitem4: { name: 'tbitem4', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
tbitem6: { name: 'tbitem6', actiontarget: 'NONE', caption: '拷贝', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' } },
tbitem7: { name: 'tbitem7', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
tbitem8: { name: 'tbitem8', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
tbitem9: { name: 'tbitem9', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '导入', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ImportExcel', target: 'NONE' } },
tbitem10: { name: 'tbitem10', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem16: { name: 'tbitem16', caption: '其它', disabled: false, type: 'ITEMS', visabled: true, dataaccaction: '', uiaction: { } },
tbitem21: { name: 'tbitem21', actiontarget: 'NONE', caption: '导出数据模型', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ExportModel', target: '' } },
deuiaction3: { name: 'deuiaction3', actiontarget: 'NONE', caption: '刷新', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Refresh', target: 'SINGLEKEY' } },
}; };
...@@ -1758,12 +1211,16 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac ...@@ -1758,12 +1211,16 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
<dropdown class="tree-right-menu" trigger="custom" visible={true} on-on-click={($event: any) => this.cm_click({tag: $event})}> <dropdown class="tree-right-menu" trigger="custom" visible={true} on-on-click={($event: any) => this.cm_click({tag: $event})}>
<dropdown-menu slot="list"> <dropdown-menu slot="list">
<dropdown-item name='deuiaction1' v-show={this.copyActionModel['deuiaction1'].visabled} disabled={this.copyActionModel['deuiaction1'].disabled}> <dropdown-item name='deuiaction1' v-show={this.copyActionModel['deuiaction1'].visabled} disabled={this.copyActionModel['deuiaction1'].disabled}>
<i class='fa fa-save'></i>
保存
</dropdown-item>
<dropdown-item name='deuiaction2' v-show={this.copyActionModel['deuiaction2'].visabled} disabled={this.copyActionModel['deuiaction2'].disabled}>
<i class='fa fa-edit'></i> <i class='fa fa-edit'></i>
编辑 编辑
</dropdown-item> </dropdown-item>
<dropdown-item name='deuiaction2' v-show={this.copyActionModel['deuiaction2'].visabled} disabled={this.copyActionModel['deuiaction2'].disabled}> <dropdown-item name='deuiaction3' v-show={this.copyActionModel['deuiaction3'].visabled} disabled={this.copyActionModel['deuiaction3'].disabled}>
<i class='fa fa-remove'></i> <i class='fa fa-refresh'></i>
删除 刷新
</dropdown-item> </dropdown-item>
</dropdown-menu> </dropdown-menu>
</dropdown> </dropdown>
......
// this is less // this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
@import '~@fullcalendar/core/main.css'; @import '~@fullcalendar/core/main.css';
@import '~@fullcalendar/daygrid/main.css'; @import '~@fullcalendar/daygrid/main.css';
@import '~@fullcalendar/timegrid/main.css'; @import '~@fullcalendar/timegrid/main.css';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册