提交 34df4729 编写于 作者: KK's avatar KK

zk——日历部件初始化样式问题

上级 7def084b
......@@ -94,7 +94,7 @@ FullCalendar,
* 是否默认选中第一条数据
*
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop({ default: false }) public isSelectFirstDefault!: boolean;
......@@ -102,7 +102,7 @@ FullCalendar,
* 显示处理提示
*
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
......@@ -110,7 +110,7 @@ FullCalendar,
* 部件行为--load
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop() public loadAction!: string;
......@@ -121,7 +121,7 @@ FullCalendar,
* 打开新建数据视图
*
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop() public newdata: any;
</#if>
......@@ -130,7 +130,7 @@ FullCalendar,
* 打开编辑数据视图
*
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Prop() public opendata: any;
</#if>
......@@ -142,7 +142,7 @@ FullCalendar,
*
* @public
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calendarClass: string = "calendar";
......@@ -151,7 +151,7 @@ FullCalendar,
*
* @public
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public selectedEventElement:any;
......@@ -160,7 +160,7 @@ FullCalendar,
*
* @public
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calendarPlugins: any[] = [
dayGridPlugin,
......@@ -174,7 +174,7 @@ FullCalendar,
*
* @public
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public header: any = {
left: 'prev,next today gotoDate',
......@@ -187,7 +187,7 @@ FullCalendar,
*
* @public
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public buttonText: any = {
today: '今天',
......@@ -202,7 +202,7 @@ FullCalendar,
*
* @public
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public customButtons: any = {
gotoDate: {
......@@ -216,7 +216,7 @@ FullCalendar,
*
* @public
* @type boolean
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public modalVisible: boolean = false;
......@@ -225,7 +225,7 @@ FullCalendar,
*
* @public
* @type Date
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public selectedGotoDate: Date = new Date();
......@@ -233,7 +233,7 @@ FullCalendar,
* 打开时间选择模态
*
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public openDateSelect(){
this.modalVisible = true;
......@@ -243,7 +243,7 @@ FullCalendar,
* 跳转到指定时间
*
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public gotoDate(){
let appCalendar: any = this.$refs.calendar;
......@@ -256,7 +256,7 @@ FullCalendar,
*
* @public
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public validRange: any = {
start:"0000-01-01",
......@@ -268,7 +268,7 @@ FullCalendar,
*
* @public
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public defaultDate: any = this.$util.dateFormat(new Date());
......@@ -276,7 +276,7 @@ FullCalendar,
* 设置按钮文本
*
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public setButtonText(){
this.buttonText.today = this.$t('app.calendar.today'),
......@@ -291,7 +291,7 @@ FullCalendar,
* 监听语言变化
*
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
@Watch('$i18n.locale')
public onLocaleChange(newval: any, val: any) {
......@@ -303,7 +303,7 @@ FullCalendar,
*
* @public
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public events: any[] = [];
......@@ -312,7 +312,7 @@ FullCalendar,
*
* @public
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calendarType: string = "${ctrl.getCalendarStyle()}";
......@@ -321,7 +321,7 @@ FullCalendar,
*
* @public
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public isShowlegend: any = {
<#if ctrl.getPSSysCalendarItems()??>
......@@ -335,7 +335,7 @@ FullCalendar,
* 图例点击事件
*
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
legendTrigger(itemType:string){
this.isShowlegend[itemType] = !this.isShowlegend[itemType];
......@@ -347,7 +347,7 @@ FullCalendar,
*
* @public
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public searchArgCache: any = {};
......@@ -355,7 +355,7 @@ FullCalendar,
* 搜索获取日程事件
*
* @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public searchEvents(fetchInfo?:any, successCallback?:any, failureCallback?:any ) {
// 处理请求参数
......@@ -422,7 +422,7 @@ FullCalendar,
* 日期点击事件
*
* @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onDateClick($event: any) {
let date = $event.date;
......@@ -433,7 +433,7 @@ FullCalendar,
* 获取编辑视图信息
*
* @param {*} $event 事件信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public getEditView(deName: string) {
let view: any = {};
......@@ -484,7 +484,7 @@ FullCalendar,
* @param {*} $event calendar事件对象或event数据
* @param {*} isOriginData true:$event是原始event数据,false:是组件
* @param {*} $event timeline事件对象
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onEventClick($event: any, isOriginData:boolean = false, $event2?: any) {
// 处理event数据
......@@ -560,7 +560,7 @@ FullCalendar,
/**
* 日历刷新
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public refresh() {
if(Object.is(this.calendarType,"TIMELINE")){
......@@ -575,7 +575,7 @@ FullCalendar,
* 日程拖动事件
*
* @param {*} $event 事件信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onEventDrop($event: any) {
if(this.isSelectFirstDefault){
......@@ -620,7 +620,7 @@ FullCalendar,
* 选中的数据
*
* @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public selections: any[] = [];
......@@ -628,7 +628,7 @@ FullCalendar,
* 获取多项数据
*
* @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public getDatas(): any[] {
return this.selections;
......@@ -638,7 +638,7 @@ FullCalendar,
* 获取单项数据
*
* @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public getData(): any {
return null;
......@@ -648,7 +648,7 @@ FullCalendar,
* vue 生命周期
*
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public created() {
<#if ctrl.getCalendarStyle?? && ctrl.getCalendarStyle() == 'TIMELINE'>
......@@ -662,7 +662,7 @@ FullCalendar,
/**
* 执行created后的逻辑
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public afterCreated(){
if (this.viewState) {
......@@ -674,10 +674,33 @@ FullCalendar,
}
}
/**
* vue 生命周期
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public mounted(){
this.afterMounted();
}
/**
* 执行mounted后的逻辑
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public afterMounted(){
let appCalendar: any = this.$refs.calendar;
if(appCalendar){
let api = appCalendar.getApi();
api.updateSize()
}
}
/**
* vue 生命周期
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public destroyed() {
this.afterDestroy();
......@@ -686,7 +709,7 @@ FullCalendar,
/**
* 执行destroyed后的逻辑
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public afterDestroy() {
if (this.viewStateEvent) {
......@@ -711,7 +734,7 @@ FullCalendar,
* 事件绘制回调
*
* @param {*} info 信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public eventRender(info?:any,) {
let data = Object.assign({title: info.event.title, start: info.event.start, end: info.event.end}, info.event.extendedProps);
......@@ -735,7 +758,7 @@ FullCalendar,
*
* @param {*} event
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public renderContextMenu(event: any) {
let content;
......@@ -764,7 +787,7 @@ FullCalendar,
* 绘制${childCtrl.getOwner().getItemType()}类型右键菜单
*
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public renderContextMenu${srfclassname(childCtrl.getOwner().getItemType()?lower_case)}() {
return (
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册