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

zhouweidong@lab.ibiz5.com 发布系统代码

上级 fd4345e5
...@@ -49,6 +49,7 @@ export default { ...@@ -49,6 +49,7 @@ export default {
default_searchform: { default_searchform: {
details: { details: {
formpage1: "常规条件", formpage1: "常规条件",
n_userid_like: "用户标识(%)",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -48,6 +48,7 @@ export default { ...@@ -48,6 +48,7 @@ export default {
default_searchform: { default_searchform: {
details: { details: {
formpage1: "常规条件", formpage1: "常规条件",
n_userid_like: "用户标识(%)",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -4,7 +4,21 @@ ...@@ -4,7 +4,21 @@
<row> <row>
<i-col span="20" class="form-content"> <i-col span="20" class="form-content">
<row> <row>
</row> <i-col v-show="detailsModel.n_userid_like.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='n_userid_like' :itemRules="this.rules.n_userid_like" class='' :caption="$t('entities.msguseraccount.default_searchform.details.n_userid_like')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_userid_like.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.n_userid_like"
@enter="onEnter($event)"
:disabled="detailsModel.n_userid_like.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
</row>
</i-col> </i-col>
<i-col span="4" class="search-button"> <i-col span="4" class="search-button">
<row v-show="Object.keys(data).length>0"> <row v-show="Object.keys(data).length>0">
...@@ -260,6 +274,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -260,6 +274,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public data: any = { public data: any = {
n_userid_like: null,
}; };
/** /**
...@@ -269,6 +284,12 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -269,6 +284,12 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public rules: any = { public rules: any = {
n_userid_like: [
{ type: 'string', message: '用户标识(%) 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '用户标识(%) 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '用户标识(%) 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '用户标识(%) 值不能为空', trigger: 'blur' },
],
} }
/** /**
...@@ -279,9 +300,23 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -279,9 +300,23 @@ 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_userid_like: new FormItemModel({ caption: '用户标识(%)', detailType: 'FORMITEM', name: 'n_userid_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
}; };
/**
* 监控表单属性 n_userid_like 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@Watch('data.n_userid_like')
onN_userid_likeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'n_userid_like', newVal: newVal, oldVal: oldVal });
}
/** /**
* 重置表单项值 * 重置表单项值
...@@ -303,6 +338,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -303,6 +338,7 @@ 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,11 @@ export default class DefaultModel { ...@@ -25,6 +25,11 @@ export default class DefaultModel {
prop: 'srffrontuf', prop: 'srffrontuf',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'n_userid_like',
prop: 'userid',
dataType: 'TEXT',
},
] ]
} }
......
...@@ -66,6 +66,11 @@ export default class MainModel { ...@@ -66,6 +66,11 @@ export default class MainModel {
name: 'msguseraccount', name: 'msguseraccount',
prop: 'id', prop: 'id',
}, },
{
name: 'n_userid_like',
prop: 'n_userid_like',
dataType: 'TEXT',
},
{ {
name:'size', name:'size',
......
...@@ -27,6 +27,13 @@ import cn.ibizlab.core.notify.domain.MsgUserAccount; ...@@ -27,6 +27,13 @@ import cn.ibizlab.core.notify.domain.MsgUserAccount;
@Data @Data
public class MsgUserAccountSearchContext extends QueryWrapperContext<MsgUserAccount> { public class MsgUserAccountSearchContext extends QueryWrapperContext<MsgUserAccount> {
private String n_userid_like;//[用户标识]
public void setN_userid_like(String n_userid_like) {
this.n_userid_like = n_userid_like;
if(!ObjectUtils.isEmpty(this.n_userid_like)){
this.getSearchCond().like("userid", n_userid_like);
}
}
/** /**
* 启用快速搜索 * 启用快速搜索
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册