提交 279c0fa3 编写于 作者: RedPig97's avatar RedPig97

update: 恢复注释

上级 5f22c78c
......@@ -105,11 +105,11 @@ import ${srfclassname('${_appde.getCodeName()}')}Service from '@/service/${srffi
_data.push(..._response.data);
});
// 排序
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -791,17 +791,17 @@ draggable,
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public uiAction(tag: any, $event: any, group: any) {
// let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
// if(!row.hasOwnProperty('srfgroup')){
// Object.assign(row,{srfgroup: group? group.value:null});
// }
let row = this.selections.length > 0 && group?.items.includes(this.selections[0])? this.selections[0] : {};
if(!row.hasOwnProperty('srfgroup')){
Object.assign(row,{srfgroup: group? group.value:null});
}
<#if ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic>
<#if logic.getPSAppViewUIAction().getPSUIAction()??>
<#assign action = logic.getPSAppViewUIAction().getPSUIAction()>
// if(Object.is('${action.getUIActionTag()}', tag)) {
// this.${logic.getName()}(row, tag, $event);
// }
if(Object.is('${action.getUIActionTag()}', tag)) {
this.${logic.getName()}(row, tag, $event);
}
</#if>
</#list>
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册