Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
22
议题
22
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7
提交
f0e5cc64
提交
f0e5cc64
编写于
11月 01, 2022
作者:
tony001
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
fec09d11
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
34 行增加
和
33 行删除
+34
-33
SERVICE.ts.ftl
@CONTROL/日历部件/SERVICE.ts.ftl
+2
-2
CONTROL-BASE.vue.ftl
@CONTROL/看板视图/CONTROL-BASE.vue.ftl
+1
-1
VIEW_HEADER-BASE.vue.ftl
@VIEW/@MACRO/VIEW_HEADER-BASE.vue.ftl
+2
-2
VIEW-BASE.vue.ftl
@VIEW/应用首页视图/VIEW-BASE.vue.ftl
+29
-28
未找到文件。
@CONTROL/日历部件/SERVICE.ts.ftl
浏览文件 @
f0e5cc64
...
@@ -106,8 +106,8 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
...
@@ -106,8 +106,8 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
});
});
// 排序
// 排序
<#noparse>_data.sort((a:any, b:any)=>{
<#noparse>_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start
?
.replace(/-/g, "/")));
let dateA = new Date(Date.parse(a.start.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start
?
.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
return dateA > dateB ? 1 : -1 ;
});</#noparse>
});</#noparse>
let result = {status: 200, data: _data};
let result = {status: 200, data: _data};
...
...
@CONTROL/看板视图/CONTROL-BASE.vue.ftl
浏览文件 @
f0e5cc64
...
@@ -791,7 +791,7 @@ draggable,
...
@@ -791,7 +791,7 @@ draggable,
* @memberof ${srfclassname('${ctrl.codeName}')}Base
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
*/
public uiAction(tag: any, $event: any, group: any) {
public uiAction(tag: any, $event: any, group: any) {
let row = this.selections.length > 0 && group
?
.items.includes(this.selections[0])? this.selections[0] : {};
let row = this.selections.length > 0 && group
&& group
.items.includes(this.selections[0])? this.selections[0] : {};
if(!row.hasOwnProperty('srfgroup')){
if(!row.hasOwnProperty('srfgroup')){
Object.assign(row,{srfgroup: group? group.value:null});
Object.assign(row,{srfgroup: group? group.value:null});
}
}
...
...
@VIEW/@MACRO/VIEW_HEADER-BASE.vue.ftl
浏览文件 @
f0e5cc64
...
@@ -288,8 +288,8 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
...
@@ -288,8 +288,8 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
<#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem>
<#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem>
<#assign detail>name: '${panelItem.getName()}',caption: '${panelItem.getCaption()}',itemType: '${panelItem.getItemType()}',visible: <#if panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>,
<#assign detail>name: '${panelItem.getName()}',caption: '${panelItem.getCaption()}',itemType: '${panelItem.getItemType()}',visible: <#if panelItem.getPSPanelItemGroupLogic('PANELVISIBLE')??>false<#else>true</#if>,
disabled: false,layout:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getLayout?? && panelItem.getPSLayoutPos().getLayout()??>${panelItem.getPSLayoutPos().getLayout()}</#if>',
disabled: false,layout:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getLayout?? && panelItem.getPSLayoutPos().getLayout()??>${panelItem.getPSLayoutPos().getLayout()}</#if>',
layoutPos:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getLayoutPos?? && panelItem.getPSLayoutPos().getLayoutPos()??>${panelItem.getPSLayoutPos().getLayoutPos()}</#if>',layoutHeight:
'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHeight?? && panelItem.getPSLayoutPos().getHeight()??>${panelItem.getPSLayoutPos().getHeight()}</#if>'
,heightMode:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHeightMode?? && panelItem.getPSLayoutPos().getHeightMode()??>${panelItem.getPSLayoutPos().getHeightMode()}</#if>',
layoutPos:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getLayoutPos?? && panelItem.getPSLayoutPos().getLayoutPos()??>${panelItem.getPSLayoutPos().getLayoutPos()}</#if>',layoutHeight:
<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHeight?? && panelItem.getPSLayoutPos().getHeight()??>${panelItem.getPSLayoutPos().getHeight()}<#else>0</#if>
,heightMode:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHeightMode?? && panelItem.getPSLayoutPos().getHeightMode()??>${panelItem.getPSLayoutPos().getHeightMode()}</#if>',
layoutWidth:
'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getWidth?? && panelItem.getPSLayoutPos().getWidth()??>${panelItem.getPSLayoutPos().getWidth()}</#if>'
,widthMode:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getWidthMode?? && panelItem.getPSLayoutPos().getWidthMode()??>${panelItem.getPSLayoutPos().getWidthMode()}</#if>',spacingBottom:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingBottom?? && panelItem.getPSLayoutPos().getSpacingBottom()??>${panelItem.getPSLayoutPos().getSpacingBottom()}</#if>',spacingLeft:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingLeft?? && panelItem.getPSLayoutPos().getSpacingLeft()??>${panelItem.getPSLayoutPos().getSpacingLeft()}</#if>',
layoutWidth:
<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getWidth?? && panelItem.getPSLayoutPos().getWidth()??>${panelItem.getPSLayoutPos().getWidth()}<#else>0</#if>
,widthMode:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getWidthMode?? && panelItem.getPSLayoutPos().getWidthMode()??>${panelItem.getPSLayoutPos().getWidthMode()}</#if>',spacingBottom:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingBottom?? && panelItem.getPSLayoutPos().getSpacingBottom()??>${panelItem.getPSLayoutPos().getSpacingBottom()}</#if>',spacingLeft:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingLeft?? && panelItem.getPSLayoutPos().getSpacingLeft()??>${panelItem.getPSLayoutPos().getSpacingLeft()}</#if>',
spacingRight:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingRight?? && panelItem.getPSLayoutPos().getSpacingRight()??>${panelItem.getPSLayoutPos().getSpacingRight()}</#if>',spacingTop:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingTop?? && panelItem.getPSLayoutPos().getSpacingTop()??>${panelItem.getPSLayoutPos().getSpacingTop()}</#if>',hAlignSelf:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHAlignSelf?? && panelItem.getPSLayoutPos().getHAlignSelf()??>${panelItem.getPSLayoutPos().getHAlignSelf()}</#if>',vAlignSelf:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getVAlignSelf?? && panelItem.getPSLayoutPos().getVAlignSelf()??>${panelItem.getPSLayoutPos().getVAlignSelf()}</#if>',panel: this</#assign>
spacingRight:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingRight?? && panelItem.getPSLayoutPos().getSpacingRight()??>${panelItem.getPSLayoutPos().getSpacingRight()}</#if>',spacingTop:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getSpacingTop?? && panelItem.getPSLayoutPos().getSpacingTop()??>${panelItem.getPSLayoutPos().getSpacingTop()}</#if>',hAlignSelf:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getHAlignSelf?? && panelItem.getPSLayoutPos().getHAlignSelf()??>${panelItem.getPSLayoutPos().getHAlignSelf()}</#if>',vAlignSelf:'<#if panelItem.getPSLayoutPos?? && panelItem.getPSLayoutPos()?? && panelItem.getPSLayoutPos().getVAlignSelf?? && panelItem.getPSLayoutPos().getVAlignSelf()??>${panelItem.getPSLayoutPos().getVAlignSelf()}</#if>',panel: this</#assign>
<#if panelItem.getItemType() == 'CONTAINER'>
<#if panelItem.getItemType() == 'CONTAINER'>
${panelItem.name}:new PanelContainerModel({ ${detail}<#if panelItem.getPSPanelItems()??>,
${panelItem.name}:new PanelContainerModel({ ${detail}<#if panelItem.getPSPanelItems()??>,
...
...
@VIEW/应用首页视图/VIEW-BASE.vue.ftl
浏览文件 @
f0e5cc64
...
@@ -226,38 +226,39 @@ import { appConfig } from '@/config/appConfig';
...
@@ -226,38 +226,39 @@ import { appConfig } from '@/config/appConfig';
let left_move :any= document.getElementById("left_move");
let left_move :any= document.getElementById("left_move");
let right_move :any= document.getElementById("right_move");
let right_move :any= document.getElementById("right_move");
let movebox :any= document.getElementById("movebox");
let movebox :any= document.getElementById("movebox");
let leftWidth :number = parseInt(left_move.style.width);
if(left_move && right_move && move_axis && movebox){
move_axis.onmousedown = (e:any) =>{
let leftWidth :number = parseInt(left_move.style.width);
let startX = e.clientX;
move_axis.onmousedown = (e:any) =>{
move_axis.left = move_axis.offsetLeft;
let startX = e.clientX;
document.onmousemove = (e:any) =>{
move_axis.left = move_axis.offsetLeft;
let endX = e.clientX;
document.onmousemove = (e:any) =>{
let moveLen = move_axis.left + (endX - startX);
let endX = e.clientX;
let maxT = movebox.clientWidth - move_axis.offsetWidth;
let moveLen = move_axis.left + (endX - startX);
if (moveLen < 150) moveLen = 150;
let maxT = movebox.clientWidth - move_axis.offsetWidth;
if (moveLen > maxT - 150) moveLen = maxT - 150;
if (moveLen < 150) moveLen = 150;
move_axis.style.left = moveLen;
if (moveLen > maxT - 150) moveLen = maxT - 150;
left_move.style.width = moveLen + "px";
move_axis.style.left = moveLen;
right_move.style.width = (movebox.clientWidth - moveLen - 5) + "px";
left_move.style.width = moveLen + "px";
if (moveLen>500) {
right_move.style.width = (movebox.clientWidth - moveLen - 5) + "px";
left_move.style.width = 500 + 'px';
if (moveLen>500) {
}
left_move.style.width = 500 + 'px';
}
let left_width : number = parseInt(left_move.style.width);
let left_width : number = parseInt(left_move.style.width);
move_axis.style.left = left_width - 5 + 'px';
move_axis.style.left = left_width - 5 + 'px';
if (left_width < leftWidth){
if (left_width < leftWidth){
move_axis.style.left = leftWidth - 5 + 'px';
move_axis.style.left = leftWidth - 5 + 'px';
}
}
}
document.onmouseup = (evt) =>{
document.onmousemove = null;
document.onmouseup = null;
move_axis.releaseCapture && move_axis.releaseCapture();
}
move_axis.setCapture && move_axis.setCapture();
return false;
}
}
document.onmouseup = (evt) =>{
document.onmousemove = null;
document.onmouseup = null;
move_axis.releaseCapture && move_axis.releaseCapture();
}
move_axis.setCapture && move_axis.setCapture();
return false;
}
}
}
}
<#ibizinclude>
<#ibizinclude>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录