提交 cf35628b 编写于 作者: ibizdev's avatar ibizdev

Mosher 发布系统代码 [后台服务,演示应用]

上级 8214c908
......@@ -112,6 +112,15 @@ export default {
uiactions: {
},
},
quicksearchform_searchform: {
details: {
formpage1: "表单分页",
n_ibizbookname_like: "图书名称(%)",
n_price_gtandeq: "图书价格(>=)",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......
......@@ -111,6 +111,15 @@ export default {
uiactions: {
},
},
quicksearchform_searchform: {
details: {
formpage1: "表单分页",
n_ibizbookname_like: "图书名称(%)",
n_price_gtandeq: "图书价格(>=)",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
......
......@@ -12,6 +12,21 @@
<div class="quick-group-container">
<app-quick-group :items="quickGroupModel" @valuechange="quickGroupValueChange"></app-quick-group>
</div>
<div class="quick-search-container">
<view_quicksearchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="quicksearchform"
ref='quicksearchform'
@closeview="closeView($event)">
</view_quicksearchform>
</div>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="图书名称" />
<div class='pull-right'>
<div class='toolbar-container'>
......@@ -330,6 +345,7 @@ export default class IBIZBOOKInternalFuncGridViewBase extends Vue {
* @memberof IBIZBOOKInternalFuncGridViewBase
*/
public containerModel: any = {
view_quicksearchform: { name: 'quicksearchform', type: 'SEARCHFORM' },
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
......@@ -1881,6 +1897,23 @@ export default class IBIZBOOKInternalFuncGridViewBase extends Vue {
}
this.isEmitQuickGroupValue = true;
}
/**
* 快速搜索栏数据对象
*
* @memberof IBIZBOOKInternalFuncGridViewBase
*/
public quickFormData:any;
/**
* 快速搜索栏值变化
*
* @memberof IBIZBOOKInternalFuncGridViewBase
*/
public quickFormValueChange($event:any){
this.quickFormData = $event;
this.onSearch($event);
}
}
</script>
......
......@@ -2,10 +2,12 @@
import { Component } from 'vue-property-decorator';
import IBIZBOOKInternalFuncGridViewBase from './ibizbookinternal-func-grid-view-base.vue';
import view_quicksearchform from '@widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform.vue';
import view_grid from '@widgets/ibizbook/internal-func-grid/internal-func-grid.vue';
import view_searchform from '@widgets/ibizbook/default-searchform/default-searchform.vue';
@Component({
components: {
view_quicksearchform,
view_grid,
view_searchform,
},
......
/**
* QUICKSEARCHFORM 部件模型
*
* @export
* @class QUICKSEARCHFORMModel
*/
export default class QUICKSEARCHFORMModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof QUICKSEARCHFORMModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'n_ibizbookname_like',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'n_price_gtandeq',
prop: 'price',
dataType: 'CURRENCY',
},
]
}
}
\ No newline at end of file
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import QUICKSEARCHFORMBase from './quicksearchform-searchform-base.vue';
@Component({
components: {
}
})
export default class QUICKSEARCHFORM extends QUICKSEARCHFORMBase {
}
</script>
\ No newline at end of file
......@@ -34,6 +34,13 @@ public class IBIZBOOKSearchContext extends QueryWrapperContext<IBIZBOOK> {
this.getSearchCond().like("ibizbookname", n_ibizbookname_like);
}
}
private String n_price_gtandeq;//[图书价格]
public void setN_price_gtandeq(String n_price_gtandeq) {
this.n_price_gtandeq = n_price_gtandeq;
if(!ObjectUtils.isEmpty(this.n_price_gtandeq)){
this.getSearchCond().ge("price", n_price_gtandeq);
}
}
/**
* 启用快速搜索
......
......@@ -28,7 +28,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-75-2">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-82-2">
<createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册