提交 740fcf73 编写于 作者: JunZai's avatar JunZai

update

上级 43cf42c1
......@@ -7,14 +7,31 @@
<draggable :key="group + index" :list="group.items" group="${ctrl.name}" class="dataview-group-content">
<div slot="header" class="dataview-group-header">
{{ getGroupText(group.name) }}
<Poptip trigger="hover" content="content" style="float: right;">
<#if ctrl.getGroupPSUIActionGroup()??>
<Poptip trigger="hover" content="content" placement="bottom-end" style="float: right;">
<Icon type="md-more" />
<div slot="content" class="group-action">
<#if ctrl.getGroupPSUIActionGroup().getPSUIActions()??>
<#list ctrl.getGroupPSUIActionGroup().getPSUIActions() as action>
<div class="group-action-item">
<i-button long @click="uiaction('${action.getCodeName()}', $event)">
<#if action.getPSSysImage()??>
<#if action.getPSSysImage().getImagePath()?length gt 0>
<img src="${action.getPSSysImage().getImagePath()}"/>
<#else>
<i class="${action.getPSSysImage().getCssClass()}"></i>
</#if>
</#if>
${action.getCaption()}
</i-button>
</div>
</#list>
</#if>
</div>
</Poptip>
</#if>
</div>
<div v-for="(item, i) in group.items" :key="i" class="dataview-group-item">
<div v-for="(item, i) in group.items" :key="i" :class="{'dataview-group-item': true, 'is-select': item.isselected}" @click="handleClick(item)">
<#if ctrl.getItemPSLayoutPanel()??>
<#assign panel = ctrl.getItemPSLayoutPanel()>
<layout_${panel.getName()} name='${panel.name}' :data="item"></layout_${panel.getName()}>
......@@ -222,42 +239,6 @@ draggable,
*/
public groupCodelist: string = '<#if ctrl.getGroupPSCodeList()??>${ctrl.getGroupPSCodeList().getCodeName()}</#if>'
/**
* 排序点击事件
* @param {string} field 属性名
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public sortClick(field:string) {
if(this.sortField !== field){
this.sortField = field;
this.sortDir = 'asc';
}else if(this.sortDir === 'asc'){
this.sortDir = 'desc';
}else if(this.sortDir === 'desc'){
this.sortDir = '';
}else{
this.sortDir = 'asc';
}
this.refresh();
}
/**
* 排序class变更
* @param {string} field 属性名
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public getsortClass(field:string) {
if(this.sortField !== field || this.sortDir === ''){
return '';
}else if(this.sortDir === 'asc'){
return 'sort-ascending'
}else if(this.sortDir === 'desc'){
return 'sort-descending'
}
}
/**
* Vue声明周期,组件挂载完毕
*
......@@ -610,13 +591,11 @@ draggable,
*/
public handleClick(args: any) {
args.isselected = !args.isselected;
if(this.isSingleSelect) {
this.items.forEach((item:any) =>{
if(item.srfkey !== args.srfkey){
item.isselected =false;
}
})
}
this.items.forEach((item:any) =>{
if(item.srfkey !== args.srfkey){
item.isselected =false;
}
})
this.selectchange();
}
......@@ -647,13 +626,12 @@ draggable,
/**
* 界面行为
*
* @param {*} row
* @param {*} tag
* @param {*} $event
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public uiAction(row: any, tag: any, $event: any) {
// this.rowClick(row, true);
public uiAction(tag: any, $event: any) {
let row = this.selections.length > 0 ? this.selections[0] : {};
<#if ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic>
<#if logic.getPSAppViewUIAction().getPSUIAction()??>
......@@ -665,7 +643,7 @@ draggable,
</#list>
</#if>
}
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
......@@ -25,6 +25,9 @@
border: 1px solid #ddd;
padding: 8px;
}
.dataview-group-item.is-select {
border-color: #108cee;
}
}
.dataview-group-content:nth-child(1) {
border-left: 1px solid #ddd;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册