提交 26ec3564 编写于 作者: JunZai's avatar JunZai

update

上级 bbec2993
......@@ -17,6 +17,17 @@
<#-- <#if !view.isEnableQuickSearch() && ctrl.getQuickSearchMode() gt 0>
<i-input v-model="query" placeholder="<#if ctrl.getPSSearchBarQuickSearchs()??><#list ctrl.getPSSearchBarQuickSearchs() as search><#if search_index gt 0>,</#if><#if search.getPSDEField()??>${search.getPSDEField().getLogicName()}</#if></#list></#if>" style="<#if ctrl.getQuickSearchWidth() gt 0>width: ${ctrl.getQuickSearchWidth()?c}px;</#if>"></i-input>
</#if> -->
<modal
v-model="isShow"
:fullscreen="false"
title="设置名称"
:maskClosable="false"
:width="200"
:zIndex="zIndex"
@on-ok="onOk"
@on-cancel="onCancel">
<i-input v-model="saveItemName"></i-input>
</modal>
<div class="search-bar-action">
<el-select size="small" v-if="historyItems.length > 0" v-model="selectItem" @change="onFilterChange">
<el-option v-for="item in historyItems" :key="item.value" :label="item.name" :value="item.value"></el-option>
......@@ -126,6 +137,30 @@ FilterTree,
*/
protected selectItem: any = null;
/**
* 弹框层级下标
*
* @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
protected zIndex: number = 0;
/**
* 是否显示弹框
*
* @type {boolean}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
protected isShow: boolean = false;
/**
* 存储项名称
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
protected saveItemName: string = '';
/**
* 获取多项数据
*
......@@ -286,10 +321,10 @@ FilterTree,
* @return {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onSave() {
public onSave(name?: string) {
let time = moment();
this.historyItems.push({
name: time.format('YYYY-MM-DD HH:mm:ss'),
name: (name ? name : time.format('YYYY-MM-DD HH:mm:ss')),
value: time.unix(),
data: JSON.parse(JSON.stringify(this.filterItems))
})
......@@ -358,6 +393,41 @@ FilterTree,
this.filterItems = JSON.parse(JSON.stringify(item.data));
}
}
/**
* 设置存储名称
*
* @return {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public setName() {
const zIndex = this.$store.getters.getZIndex();
if (zIndex) {
this.zIndex = zIndex + 100;
}
this.isShow = true;
this.saveItemName = '';
}
/**
* 确定
*
* @return {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onOk() {
this.onSave(this.saveItemName);
}
/**
* 取消设置
*
* @return {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onCancel() {
this.onSave();
}
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册