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

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

上级 92967a4a
...@@ -269,6 +269,8 @@ export default { ...@@ -269,6 +269,8 @@ export default {
default_searchform: { default_searchform: {
details: { details: {
formpage1: "常规条件", formpage1: "常规条件",
n_ibizbookname_like: "图书名称(%)",
n_price_gtandeq: "图书价格(>=)",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -268,6 +268,8 @@ export default { ...@@ -268,6 +268,8 @@ export default {
default_searchform: { default_searchform: {
details: { details: {
formpage1: "常规条件", formpage1: "常规条件",
n_ibizbookname_like: "图书名称(%)",
n_price_gtandeq: "图书价格(>=)",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -50,6 +50,16 @@ export default class AutoGroupListModel { ...@@ -50,6 +50,16 @@ export default class AutoGroupListModel {
prop: 'ibizbookid', prop: 'ibizbookid',
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -4,6 +4,35 @@ ...@@ -4,6 +4,35 @@
<row> <row>
<i-col span="20" class="form-content"> <i-col span="20" class="form-content">
<row> <row>
<i-col v-show="detailsModel.n_ibizbookname_like.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='n_ibizbookname_like' :itemRules="this.rules.n_ibizbookname_like" class='' :caption="$t('entities.ibizbook.default_searchform.details.n_ibizbookname_like')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_ibizbookname_like.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.n_ibizbookname_like"
@enter="onEnter($event)"
:disabled="detailsModel.n_ibizbookname_like.disabled"
type='text'
style="width:100px;">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.n_price_gtandeq.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='n_price_gtandeq' :itemRules="this.rules.n_price_gtandeq" class='' :caption="$t('entities.ibizbook.default_searchform.details.n_price_gtandeq')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_price_gtandeq.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.n_price_gtandeq"
@enter="onEnter($event)"
:disabled="detailsModel.n_price_gtandeq.disabled"
type='number'
:precision="2"
style="width:100px;">
</input-box>
</app-form-item>
</i-col>
</row> </row>
</i-col> </i-col>
<i-col span="4" class="search-button"> <i-col span="4" class="search-button">
...@@ -261,6 +290,8 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -261,6 +290,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public data: any = { public data: any = {
n_ibizbookname_like: null,
n_price_gtandeq: null,
}; };
/** /**
...@@ -271,6 +302,10 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -271,6 +302,10 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public detailsModel: any = { public detailsModel: any = {
formpage1: new FormPageModel({ caption: '常规条件', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }) formpage1: new FormPageModel({ caption: '常规条件', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
n_ibizbookname_like: new FormItemModel({ caption: '图书名称(%)', detailType: 'FORMITEM', name: 'n_ibizbookname_like', visible: true, isShowCaption: true, form: this,required:false, disabled: false, enableCond: 3 })
,
n_price_gtandeq: new FormItemModel({ caption: '图书价格(>=)', detailType: 'FORMITEM', name: 'n_price_gtandeq', visible: true, isShowCaption: true, form: this,required:false, disabled: false, enableCond: 3 })
, ,
}; };
...@@ -281,6 +316,42 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -281,6 +316,42 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public rules: any = { public rules: any = {
n_ibizbookname_like: [
{ type: 'string', message: '图书名称(%) 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '图书名称(%) 值必须为字符串类型', trigger: 'blur' },
{ required: this.detailsModel.n_ibizbookname_like.required, type: 'string', message: '图书名称(%) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.n_ibizbookname_like.required, type: 'string', message: '图书名称(%) 值不能为空', trigger: 'blur' },
],
n_price_gtandeq: [
{ type: 'number', message: '图书价格(>=) 值必须为数值类型', trigger: 'change' },
{ type: 'number', message: '图书价格(>=) 值必须为数值类型', trigger: 'blur' },
{ required: this.detailsModel.n_price_gtandeq.required, type: 'number', message: '图书价格(>=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.n_price_gtandeq.required, type: 'number', message: '图书价格(>=) 值不能为空', trigger: 'blur' },
],
}
/**
* 监控表单属性 n_ibizbookname_like 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@Watch('data.n_ibizbookname_like')
onN_ibizbookname_likeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'n_ibizbookname_like', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 n_price_gtandeq 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@Watch('data.n_price_gtandeq')
onN_price_gtandeqChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'n_price_gtandeq', newVal: newVal, oldVal: oldVal });
} }
...@@ -304,6 +375,8 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -304,6 +375,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
} }
/** /**
......
...@@ -25,6 +25,16 @@ export default class DefaultModel { ...@@ -25,6 +25,16 @@ export default class DefaultModel {
prop: 'srffrontuf', prop: 'srffrontuf',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'n_ibizbookname_like',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'n_price_gtandeq',
prop: 'price',
dataType: 'FLOAT',
},
] ]
} }
......
...@@ -50,6 +50,16 @@ export default class GroupByCodelistListModel { ...@@ -50,6 +50,16 @@ export default class GroupByCodelistListModel {
prop: 'ibizbookid', prop: 'ibizbookid',
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -50,6 +50,16 @@ export default class HasPanelListModel { ...@@ -50,6 +50,16 @@ export default class HasPanelListModel {
prop: 'ibizbookid', prop: 'ibizbookid',
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -76,6 +76,16 @@ export default class InternalFuncModel { ...@@ -76,6 +76,16 @@ export default class InternalFuncModel {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -50,6 +50,16 @@ export default class LnternalFuncListModel { ...@@ -50,6 +50,16 @@ export default class LnternalFuncListModel {
prop: 'ibizbookid', prop: 'ibizbookid',
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -76,6 +76,16 @@ export default class Main2Model { ...@@ -76,6 +76,16 @@ export default class Main2Model {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -76,6 +76,16 @@ export default class Main3Model { ...@@ -76,6 +76,16 @@ export default class Main3Model {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -76,6 +76,16 @@ export default class Main4Model { ...@@ -76,6 +76,16 @@ export default class Main4Model {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -76,6 +76,16 @@ export default class Main5Model { ...@@ -76,6 +76,16 @@ export default class Main5Model {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -87,6 +87,16 @@ export default class RowRulesModel { ...@@ -87,6 +87,16 @@ export default class RowRulesModel {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -687,7 +687,7 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -687,7 +687,7 @@ export default class UsrBase extends Vue implements ControlInterface {
* @type {number} * @type {number}
* @memberof UsrBase * @memberof UsrBase
*/ */
public limit: number = 20; public limit: number = 10;
/** /**
* 排序方向 * 排序方向
......
...@@ -46,6 +46,16 @@ export default class UsrModel { ...@@ -46,6 +46,16 @@ export default class UsrModel {
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
......
...@@ -36,6 +36,16 @@ export default class Usr2Model { ...@@ -36,6 +36,16 @@ export default class Usr2Model {
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
......
...@@ -36,6 +36,16 @@ export default class Usr3Model { ...@@ -36,6 +36,16 @@ export default class Usr3Model {
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册