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

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

上级 7490802d
......@@ -628,7 +628,7 @@ export default {
tip: "Remove {0}",
},
},
usr2calendarviewcalendar_quicktoolbar_toolbar: {
usr2calendarviewcalendar_batchtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
......@@ -674,50 +674,22 @@ export default {
tip: "导出数据模型",
},
},
usr2calendarviewcalendar_batchtoolbar_toolbar: {
tbitem3: {
calendarviewtoolbar_toolbar: {
deuiaction1: {
caption: "New",
tip: "New",
},
deuiaction2: {
caption: "Save",
tip: "Save",
},
tbitem4: {
deuiaction3: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
deuiaction2: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
deuiaction1: {
caption: "导入",
tip: "导入",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
deuiaction4: {
caption: "Filter",
tip: "Filter",
},
},
autogrouplistviewtoolbar_toolbar: {
......
......@@ -627,7 +627,7 @@ export default {
tip: "删除",
},
},
usr2calendarviewcalendar_quicktoolbar_toolbar: {
usr2calendarviewcalendar_batchtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
......@@ -673,50 +673,22 @@ export default {
tip: "导出数据模型",
},
},
usr2calendarviewcalendar_batchtoolbar_toolbar: {
tbitem3: {
calendarviewtoolbar_toolbar: {
deuiaction1: {
caption: "新建",
tip: "新建",
},
deuiaction2: {
caption: "保存",
tip: "保存",
},
tbitem4: {
deuiaction3: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
deuiaction2: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
deuiaction1: {
caption: "导入",
tip: "导入",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "导出数据模型",
tip: "导出数据模型",
deuiaction4: {
caption: "过滤",
tip: "过滤",
},
},
autogrouplistviewtoolbar_toolbar: {
......
<template>
<div class='view-container decalendarview ibizbookcalendar-view'>
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizbookcalendarview"></app-studioaction>
<card class='view-card view-no-toolbar' :bordered="false" :dis-hover="true" >
<card class='view-card ' :bordered="false" :dis-hover="true" >
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
......@@ -30,6 +30,36 @@
</view_quicksearchform>
</div>
<div class='pull-right'>
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class='' @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction3.visabled" :disabled="toolBarModels.deuiaction3.disabled" class='' @click="toolbar_click({ tag: 'deuiaction3' }, $event)">
<i class='fa fa-edit'></i>
<span class='caption'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction3.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction2.visabled" :disabled="toolBarModels.deuiaction2.disabled" class='' @click="toolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.deuiaction4.visabled" :disabled="toolBarModels.deuiaction4.disabled" class='' @click="toolbar_click({ tag: 'deuiaction4' }, $event)">
<i class='fa fa-filter'></i>
<span class='caption'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction4.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.calendarviewtoolbar_toolbar.deuiaction4.tip')}}</div>
</tooltip>
</div>
</div>
</div>
<view_searchform
......@@ -239,6 +269,7 @@ export default class IBIZBOOKCalendarViewBase extends Vue {
*/
public containerModel: any = {
view_quicksearchform: { name: 'quicksearchform', type: 'SEARCHFORM' },
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
view_calendar: { name: 'calendar', type: 'CALENDAR' },
};
......@@ -279,6 +310,23 @@ export default class IBIZBOOKCalendarViewBase extends Vue {
* @memberof IBIZBOOKCalendarViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOKCalendarView
*/
public toolBarModels: any = {
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
deuiaction3: { name: 'deuiaction3', 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' } },
deuiaction4: { name: 'deuiaction4', actiontarget: 'NONE', caption: '过滤', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' } },
};
......@@ -586,6 +634,141 @@ export default class IBIZBOOKCalendarViewBase extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKCalendarViewBase
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction3')) {
this.toolbar_deuiaction3_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.toolbar_deuiaction2_click(null, '', $event2);
}
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.calendar;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_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.$refs.calendar;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_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.$refs.calendar;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_deuiaction4_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.calendar;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 打开新建数据视图
......@@ -628,6 +811,88 @@ export default class IBIZBOOKCalendarViewBase extends Vue {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase
*/
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 视图处理逻辑不存在,请添加!' });
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase
*/
public Edit(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 })
}
_this.opendata([{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKCalendarViewBase
*/
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 IBIZBOOKCalendarViewBase
*/
public ToggleFilter(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.hasOwnProperty('isExpandSearchForm')) {
_this.isExpandSearchForm = !_this.isExpandSearchForm;
}
}
/**
* 关闭视图
......
.ibizbookcalendar-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<template>
<div :class='calendarClass'>
<span class="quick-toolbar">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_quicktoolbarModels.tbitem3.visabled" :disabled="usr2calendarviewcalendar_quicktoolbarModels.tbitem3.disabled" class=' deepskyblueToolBar' @click="calendar_quicktoolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem3.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem3.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_quicktoolbarModels.deuiaction2.visabled" :disabled="usr2calendarviewcalendar_quicktoolbarModels.deuiaction2.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-save'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_quicktoolbarModels.tbitem4.visabled" :disabled="usr2calendarviewcalendar_quicktoolbarModels.tbitem4.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'tbitem4' }, $event)">
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem4.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem4.tip')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_quicktoolbarModels.tbitem6.visabled" :disabled="usr2calendarviewcalendar_quicktoolbarModels.tbitem6.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'tbitem6' }, $event)">
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem6.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem6.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_quicktoolbarModels.tbitem8.visabled" :disabled="usr2calendarviewcalendar_quicktoolbarModels.tbitem8.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'tbitem8' }, $event)">
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem8.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem8.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_quicktoolbarModels.deuiaction1.visabled" :disabled="usr2calendarviewcalendar_quicktoolbarModels.deuiaction1.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-upload'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.deuiaction1.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.deuiaction1.tip')}}</div>
</tooltip>
<span class='seperator'>|</span>
<dropdown v-show="usr2calendarviewcalendar_quicktoolbarModels.tbitem16.visabled" trigger='click'>
<tooltip :transfer="true" :max-width="600">
<i-button class=''>
<i class=''></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem16.caption')}}</span>
<icon type="ios-arrow-down"></icon>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem16.tip')}}</div>
</tooltip>
<dropdown-menu slot='list'>
<dropdown-item>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="usr2calendarviewcalendar_quicktoolbarModels.tbitem21.visabled" :disabled="usr2calendarviewcalendar_quicktoolbarModels.tbitem21.disabled" class='' @click="calendar_quicktoolbar_click({ tag: 'tbitem21' }, $event)">
<i class='fa fa-download'></i>
<span class='caption'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem21.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.ibizbook.usr2calendarviewcalendar_quicktoolbar_toolbar.tbitem21.tip')}}</div>
</tooltip>
</dropdown-item>
</dropdown-menu>
</dropdown>
</div>
</span>
<span v-if="selections.length > 0" class="batch-toolbar">
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
......@@ -279,55 +207,6 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
*/
public appEntityService: IBIZBOOKService = new IBIZBOOKService({ $store: this.$store });
/**
* calendar_quicktoolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKTIMELINEBase
*/
public calendar_quicktoolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) {
this.calendar_quicktoolbar_tbitem3_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, 'tbitem4')) {
this.calendar_quicktoolbar_tbitem4_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem6')) {
this.calendar_quicktoolbar_tbitem6_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'deuiaction3')) {
this.calendar_quicktoolbar_deuiaction3_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem24')) {
this.calendar_quicktoolbar_tbitem24_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem25')) {
this.calendar_quicktoolbar_tbitem25_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem8')) {
this.calendar_quicktoolbar_tbitem8_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem13')) {
this.calendar_quicktoolbar_tbitem13_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'deuiaction1')) {
this.calendar_quicktoolbar_deuiaction1_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem11')) {
this.calendar_quicktoolbar_tbitem11_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem21')) {
this.calendar_quicktoolbar_tbitem21_click(null, 'calendar_quicktoolbar', $event2);
}
if (Object.is($event.tag, 'tbitem23')) {
this.calendar_quicktoolbar_tbitem23_click(null, 'calendar_quicktoolbar', $event2);
}
}
/**
* cm 部件 click 事件
*
......@@ -339,6 +218,9 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
if (Object.is($event.tag, 'deuiaction1')) {
this.cm_deuiaction1_click(null, 'cm', $event2);
}
if (Object.is($event.tag, 'deuiaction2')) {
this.cm_deuiaction2_click(null, 'cm', $event2);
}
}
/**
......@@ -399,7 +281,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -427,7 +309,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -455,7 +337,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -483,7 +365,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem6_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem6_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -511,7 +393,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -539,7 +421,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem24_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem24_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -567,7 +449,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem25_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem25_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -595,7 +477,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem8_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem8_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -623,7 +505,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem13_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem13_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -651,7 +533,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -679,7 +561,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem11_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem11_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -707,7 +589,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem21_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem21_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -735,7 +617,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_quicktoolbar_tbitem23_click(params: any = {}, tag?: any, $event?: any) {
public calendar_batchtoolbar_tbitem23_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -763,63 +645,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_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;
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 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.Save(datas, contextJO,paramJO, $event, xData,this,"IBIZBOOK");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
public cm_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -847,119 +673,7 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @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");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_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.ToggleFilter(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");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public calendar_batchtoolbar_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;
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) {
public cm_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -979,174 +693,6 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
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 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.Import(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 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");
}
/**
* 新建
*
......@@ -1694,7 +1240,8 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
* @memberof IBIZBOOKTIMELINEBase
*/
public actionModel: any = {
item1_deuiaction1: {name:'deuiaction1',nodeOwner:'item1',type: 'DEUIACTION', tag: 'New', noprivdisplaymode:2, visabled: true, disabled: false},
item1_deuiaction1: {name:'deuiaction1',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Edit', actiontarget: 'SINGLEKEY', noprivdisplaymode:2, visabled: true, disabled: false},
item1_deuiaction2: {name:'deuiaction2',nodeOwner:'item1',type: 'DEUIACTION', tag: 'Remove', actiontarget: 'MULTIKEY', noprivdisplaymode:2, visabled: true, disabled: false},
}
/**
......@@ -2082,34 +1629,6 @@ export default class IBIZBOOKTIMELINEBase extends Vue implements ControlInterfac
}
}
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOKUsr2CalendarView
*/
public usr2calendarviewcalendar_quicktoolbarModels: any = {
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', 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: { } },
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: '' } },
};
/**
* 工具栏模型
......@@ -2239,8 +1758,12 @@ 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-menu slot="list">
<dropdown-item name='deuiaction1' v-show={this.copyActionModel['deuiaction1'].visabled} disabled={this.copyActionModel['deuiaction1'].disabled}>
<i class='fa fa-file-text-o'></i>
新建
<i class='fa fa-edit'></i>
编辑
</dropdown-item>
<dropdown-item name='deuiaction2' v-show={this.copyActionModel['deuiaction2'].visabled} disabled={this.copyActionModel['deuiaction2'].disabled}>
<i class='fa fa-remove'></i>
删除
</dropdown-item>
</dropdown-menu>
</dropdown>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册