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,
* 是否默认选中第一条数据
*
* @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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录