Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz4jVue
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
iBiz4jVue
提交
34df4729
提交
34df4729
编写于
6月 19, 2020
作者:
KK
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zk——日历部件初始化样式问题
上级
7def084b
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
63 行增加
和
40 行删除
+63
-40
CONTROL-BASE.vue.ftl
@CONTROL/日历部件/CONTROL-BASE.vue.ftl
+63
-40
未找到文件。
@CONTROL/日历部件/CONTROL-BASE.vue.ftl
浏览文件 @
34df4729
...
@@ -94,7 +94,7 @@ FullCalendar,
...
@@ -94,7 +94,7 @@ FullCalendar,
* 是否默认选中第一条数据
* 是否默认选中第一条数据
*
*
* @type {boolean}
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
@Prop({ default: false }) public isSelectFirstDefault!: boolean;
@Prop({ default: false }) public isSelectFirstDefault!: boolean;
...
@@ -102,7 +102,7 @@ FullCalendar,
...
@@ -102,7 +102,7 @@ FullCalendar,
* 显示处理提示
* 显示处理提示
*
*
* @type {boolean}
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
@Prop({ default: true }) public showBusyIndicator?: boolean;
@Prop({ default: true }) public showBusyIndicator?: boolean;
...
@@ -110,7 +110,7 @@ FullCalendar,
...
@@ -110,7 +110,7 @@ FullCalendar,
* 部件行为--load
* 部件行为--load
*
*
* @type {string}
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
@Prop() public loadAction!: string;
@Prop() public loadAction!: string;
...
@@ -121,7 +121,7 @@ FullCalendar,
...
@@ -121,7 +121,7 @@ FullCalendar,
* 打开新建数据视图
* 打开新建数据视图
*
*
* @type {any}
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
@Prop() public newdata: any;
@Prop() public newdata: any;
</#if>
</#if>
...
@@ -130,7 +130,7 @@ FullCalendar,
...
@@ -130,7 +130,7 @@ FullCalendar,
* 打开编辑数据视图
* 打开编辑数据视图
*
*
* @type {any}
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
@Prop() public opendata: any;
@Prop() public opendata: any;
</#if>
</#if>
...
@@ -142,7 +142,7 @@ FullCalendar,
...
@@ -142,7 +142,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {any[]}
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public calendarClass: string = "calendar";
public calendarClass: string = "calendar";
...
@@ -151,7 +151,7 @@ FullCalendar,
...
@@ -151,7 +151,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {any[]}
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public selectedEventElement:any;
public selectedEventElement:any;
...
@@ -160,7 +160,7 @@ FullCalendar,
...
@@ -160,7 +160,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {any[]}
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public calendarPlugins: any[] = [
public calendarPlugins: any[] = [
dayGridPlugin,
dayGridPlugin,
...
@@ -174,7 +174,7 @@ FullCalendar,
...
@@ -174,7 +174,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {}
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public header: any = {
public header: any = {
left: 'prev,next today gotoDate',
left: 'prev,next today gotoDate',
...
@@ -187,7 +187,7 @@ FullCalendar,
...
@@ -187,7 +187,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {}
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public buttonText: any = {
public buttonText: any = {
today: '今天',
today: '今天',
...
@@ -202,7 +202,7 @@ FullCalendar,
...
@@ -202,7 +202,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {}
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public customButtons: any = {
public customButtons: any = {
gotoDate: {
gotoDate: {
...
@@ -216,7 +216,7 @@ FullCalendar,
...
@@ -216,7 +216,7 @@ FullCalendar,
*
*
* @public
* @public
* @type boolean
* @type boolean
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public modalVisible: boolean = false;
public modalVisible: boolean = false;
...
@@ -225,7 +225,7 @@ FullCalendar,
...
@@ -225,7 +225,7 @@ FullCalendar,
*
*
* @public
* @public
* @type Date
* @type Date
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public selectedGotoDate: Date = new Date();
public selectedGotoDate: Date = new Date();
...
@@ -233,7 +233,7 @@ FullCalendar,
...
@@ -233,7 +233,7 @@ FullCalendar,
* 打开时间选择模态
* 打开时间选择模态
*
*
* @public
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public openDateSelect(){
public openDateSelect(){
this.modalVisible = true;
this.modalVisible = true;
...
@@ -243,7 +243,7 @@ FullCalendar,
...
@@ -243,7 +243,7 @@ FullCalendar,
* 跳转到指定时间
* 跳转到指定时间
*
*
* @public
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public gotoDate(){
public gotoDate(){
let appCalendar: any = this.$refs.calendar;
let appCalendar: any = this.$refs.calendar;
...
@@ -256,7 +256,7 @@ FullCalendar,
...
@@ -256,7 +256,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {}
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public validRange: any = {
public validRange: any = {
start:"0000-01-01",
start:"0000-01-01",
...
@@ -268,7 +268,7 @@ FullCalendar,
...
@@ -268,7 +268,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {}
* @type {}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public defaultDate: any = this.$util.dateFormat(new Date());
public defaultDate: any = this.$util.dateFormat(new Date());
...
@@ -276,7 +276,7 @@ FullCalendar,
...
@@ -276,7 +276,7 @@ FullCalendar,
* 设置按钮文本
* 设置按钮文本
*
*
* @public
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public setButtonText(){
public setButtonText(){
this.buttonText.today = this.$t('app.calendar.today'),
this.buttonText.today = this.$t('app.calendar.today'),
...
@@ -291,7 +291,7 @@ FullCalendar,
...
@@ -291,7 +291,7 @@ FullCalendar,
* 监听语言变化
* 监听语言变化
*
*
* @public
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
@Watch('$i18n.locale')
@Watch('$i18n.locale')
public onLocaleChange(newval: any, val: any) {
public onLocaleChange(newval: any, val: any) {
...
@@ -303,7 +303,7 @@ FullCalendar,
...
@@ -303,7 +303,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {any[]}
* @type {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public events: any[] = [];
public events: any[] = [];
...
@@ -312,7 +312,7 @@ FullCalendar,
...
@@ -312,7 +312,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {string}
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public calendarType: string = "${ctrl.getCalendarStyle()}";
public calendarType: string = "${ctrl.getCalendarStyle()}";
...
@@ -321,7 +321,7 @@ FullCalendar,
...
@@ -321,7 +321,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {any}
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public isShowlegend: any = {
public isShowlegend: any = {
<#if ctrl.getPSSysCalendarItems()??>
<#if ctrl.getPSSysCalendarItems()??>
...
@@ -335,7 +335,7 @@ FullCalendar,
...
@@ -335,7 +335,7 @@ FullCalendar,
* 图例点击事件
* 图例点击事件
*
*
* @public
* @public
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
legendTrigger(itemType:string){
legendTrigger(itemType:string){
this.isShowlegend[itemType] = !this.isShowlegend[itemType];
this.isShowlegend[itemType] = !this.isShowlegend[itemType];
...
@@ -347,7 +347,7 @@ FullCalendar,
...
@@ -347,7 +347,7 @@ FullCalendar,
*
*
* @public
* @public
* @type {any}
* @type {any}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public searchArgCache: any = {};
public searchArgCache: any = {};
...
@@ -355,7 +355,7 @@ FullCalendar,
...
@@ -355,7 +355,7 @@ FullCalendar,
* 搜索获取日程事件
* 搜索获取日程事件
*
*
* @param {*} $event 日期信息
* @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public searchEvents(fetchInfo?:any, successCallback?:any, failureCallback?:any ) {
public searchEvents(fetchInfo?:any, successCallback?:any, failureCallback?:any ) {
// 处理请求参数
// 处理请求参数
...
@@ -422,7 +422,7 @@ FullCalendar,
...
@@ -422,7 +422,7 @@ FullCalendar,
* 日期点击事件
* 日期点击事件
*
*
* @param {*} $event 日期信息
* @param {*} $event 日期信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public onDateClick($event: any) {
public onDateClick($event: any) {
let date = $event.date;
let date = $event.date;
...
@@ -433,7 +433,7 @@ FullCalendar,
...
@@ -433,7 +433,7 @@ FullCalendar,
* 获取编辑视图信息
* 获取编辑视图信息
*
*
* @param {*} $event 事件信息
* @param {*} $event 事件信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public getEditView(deName: string) {
public getEditView(deName: string) {
let view: any = {};
let view: any = {};
...
@@ -484,7 +484,7 @@ FullCalendar,
...
@@ -484,7 +484,7 @@ FullCalendar,
* @param {*} $event calendar事件对象或event数据
* @param {*} $event calendar事件对象或event数据
* @param {*} isOriginData true:$event是原始event数据,false:是组件
* @param {*} isOriginData true:$event是原始event数据,false:是组件
* @param {*} $event timeline事件对象
* @param {*} $event timeline事件对象
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public onEventClick($event: any, isOriginData:boolean = false, $event2?: any) {
public onEventClick($event: any, isOriginData:boolean = false, $event2?: any) {
// 处理event数据
// 处理event数据
...
@@ -560,7 +560,7 @@ FullCalendar,
...
@@ -560,7 +560,7 @@ FullCalendar,
/**
/**
* 日历刷新
* 日历刷新
*
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public refresh() {
public refresh() {
if(Object.is(this.calendarType,"TIMELINE")){
if(Object.is(this.calendarType,"TIMELINE")){
...
@@ -575,7 +575,7 @@ FullCalendar,
...
@@ -575,7 +575,7 @@ FullCalendar,
* 日程拖动事件
* 日程拖动事件
*
*
* @param {*} $event 事件信息
* @param {*} $event 事件信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public onEventDrop($event: any) {
public onEventDrop($event: any) {
if(this.isSelectFirstDefault){
if(this.isSelectFirstDefault){
...
@@ -620,7 +620,7 @@ FullCalendar,
...
@@ -620,7 +620,7 @@ FullCalendar,
* 选中的数据
* 选中的数据
*
*
* @returns {any[]}
* @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public selections: any[] = [];
public selections: any[] = [];
...
@@ -628,7 +628,7 @@ FullCalendar,
...
@@ -628,7 +628,7 @@ FullCalendar,
* 获取多项数据
* 获取多项数据
*
*
* @returns {any[]}
* @returns {any[]}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public getDatas(): any[] {
public getDatas(): any[] {
return this.selections;
return this.selections;
...
@@ -638,7 +638,7 @@ FullCalendar,
...
@@ -638,7 +638,7 @@ FullCalendar,
* 获取单项数据
* 获取单项数据
*
*
* @returns {*}
* @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public getData(): any {
public getData(): any {
return null;
return null;
...
@@ -648,7 +648,7 @@ FullCalendar,
...
@@ -648,7 +648,7 @@ FullCalendar,
* vue 生命周期
* vue 生命周期
*
*
* @returns
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public created() {
public created() {
<#if ctrl.getCalendarStyle?? && ctrl.getCalendarStyle() == 'TIMELINE'>
<#if ctrl.getCalendarStyle?? && ctrl.getCalendarStyle() == 'TIMELINE'>
...
@@ -662,7 +662,7 @@ FullCalendar,
...
@@ -662,7 +662,7 @@ FullCalendar,
/**
/**
* 执行created后的逻辑
* 执行created后的逻辑
*
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public afterCreated(){
public afterCreated(){
if (this.viewState) {
if (this.viewState) {
...
@@ -674,10 +674,33 @@ FullCalendar,
...
@@ -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 生命周期
* vue 生命周期
*
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public destroyed() {
public destroyed() {
this.afterDestroy();
this.afterDestroy();
...
@@ -686,7 +709,7 @@ FullCalendar,
...
@@ -686,7 +709,7 @@ FullCalendar,
/**
/**
* 执行destroyed后的逻辑
* 执行destroyed后的逻辑
*
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public afterDestroy() {
public afterDestroy() {
if (this.viewStateEvent) {
if (this.viewStateEvent) {
...
@@ -711,7 +734,7 @@ FullCalendar,
...
@@ -711,7 +734,7 @@ FullCalendar,
* 事件绘制回调
* 事件绘制回调
*
*
* @param {*} info 信息
* @param {*} info 信息
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public eventRender(info?:any,) {
public eventRender(info?:any,) {
let data = Object.assign({title: info.event.title, start: info.event.start, end: info.event.end}, info.event.extendedProps);
let data = Object.assign({title: info.event.title, start: info.event.start, end: info.event.end}, info.event.extendedProps);
...
@@ -735,7 +758,7 @@ FullCalendar,
...
@@ -735,7 +758,7 @@ FullCalendar,
*
*
* @param {*} event
* @param {*} event
* @returns
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public renderContextMenu(event: any) {
public renderContextMenu(event: any) {
let content;
let content;
...
@@ -764,7 +787,7 @@ FullCalendar,
...
@@ -764,7 +787,7 @@ FullCalendar,
* 绘制${childCtrl.getOwner().getItemType()}类型右键菜单
* 绘制${childCtrl.getOwner().getItemType()}类型右键菜单
*
*
* @returns
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof ${srfclassname('${ctrl.codeName}')}
Base
*/
*/
public renderContextMenu${srfclassname(childCtrl.getOwner().getItemType()?lower_case)}() {
public renderContextMenu${srfclassname(childCtrl.getOwner().getItemType()?lower_case)}() {
return (
return (
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录