Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
0119902b
提交
0119902b
编写于
11月 23, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
1ffe6590
变更
34
隐藏空白字符变更
内嵌
并排
正在显示
34 个修改的文件
包含
274 行增加
和
53 行删除
+274
-53
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+12
-0
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+12
-0
ibizbooklist-view-base.vue
...pages/sample/ibizbooklist-view/ibizbooklist-view-base.vue
+196
-0
internal-func-grid-base.vue
...s/ibizbook/internal-func-grid/internal-func-grid-base.vue
+1
-1
internal-func-grid-model.ts
...s/ibizbook/internal-func-grid/internal-func-grid-model.ts
+1
-1
main-form-base.vue
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
+3
-2
main-form-model.ts
app_Web/src/widgets/ibizbook/main-form/main-form-model.ts
+1
-1
main2-grid-base.vue
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-base.vue
+1
-1
main2-grid-model.ts
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-model.ts
+1
-1
main3-grid-base.vue
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-base.vue
+1
-1
main3-grid-model.ts
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-model.ts
+1
-1
main4-grid-base.vue
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-base.vue
+1
-1
main4-grid-model.ts
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-model.ts
+1
-1
main5-grid-base.vue
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-base.vue
+1
-1
main5-grid-model.ts
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-model.ts
+1
-1
new-default-grid-base.vue
...dgets/ibizbook/new-default-grid/new-default-grid-base.vue
+3
-3
new-default-grid-model.ts
...dgets/ibizbook/new-default-grid/new-default-grid-model.ts
+1
-1
quicksearchform-searchform-base.vue
...searchform-searchform/quicksearchform-searchform-base.vue
+6
-5
quicksearchform-searchform-model.ts
...searchform-searchform/quicksearchform-searchform-model.ts
+1
-1
row-edit-grid-base.vue
...src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
+2
-2
row-edit-grid-model.ts
...src/widgets/ibizbook/row-edit-grid/row-edit-grid-model.ts
+1
-1
row-rules-grid-base.vue
...c/widgets/ibizbook/row-rules-grid/row-rules-grid-base.vue
+2
-2
row-rules-grid-model.ts
...c/widgets/ibizbook/row-rules-grid/row-rules-grid-model.ts
+1
-1
update-default-grid-base.vue
...ibizbook/update-default-grid/update-default-grid-base.vue
+3
-3
update-default-grid-model.ts
...ibizbook/update-default-grid/update-default-grid-model.ts
+1
-1
main-grid-base.vue
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
+2
-2
uipart-0015-grid-base.vue
...gets/ibizorder/uipart-0015-grid/uipart-0015-grid-base.vue
+2
-2
uipart-0017-grid-base.vue
...gets/ibizorder/uipart-0017-grid/uipart-0017-grid-base.vue
+2
-2
uipart-0018-grid-base.vue
...gets/ibizorder/uipart-0018-grid/uipart-0018-grid-base.vue
+2
-2
IBIZBOOK.java
...src/main/java/cn/ibizlab/core/sample/domain/IBIZBOOK.java
+2
-2
IBIZBOOKSearchContext.java
.../cn/ibizlab/core/sample/filter/IBIZBOOKSearchContext.java
+2
-2
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+2
-2
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+3
-3
IBIZBOOKDTO.java
...api/src/main/java/cn/ibizlab/demoapi/dto/IBIZBOOKDTO.java
+2
-3
未找到文件。
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
0119902b
...
...
@@ -437,6 +437,18 @@ export default {
usr2gridviewtoolbar_toolbar
:
{
},
listviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"New"
,
tip
:
"New"
,
},
deuiaction3
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
deuiaction2
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
},
internalfuncgridviewtoolbar_toolbar
:
{
tbitem3
:
{
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
0119902b
...
...
@@ -436,6 +436,18 @@ export default {
usr2gridviewtoolbar_toolbar
:
{
},
listviewtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
deuiaction3
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
deuiaction2
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
},
internalfuncgridviewtoolbar_toolbar
:
{
tbitem3
:
{
...
...
app_Web/src/pages/sample/ibizbooklist-view/ibizbooklist-view-base.vue
浏览文件 @
0119902b
...
...
@@ -16,6 +16,27 @@
<i-input
v-show=
"!isExpandSearchForm"
v-model=
"query"
search
enter-button
@
on-search=
"onSearch($event)"
class=
'pull-left'
placeholder=
"图书名称"
style=
'max-width: 400px;margin-top:6px;'
/>
<div
class=
'pull-right'
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.deuiaction1.visabled"
:disabled=
"toolBarModels.deuiaction1.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'deuiaction1' }, $event)">
<i
class=
'fa fa-file-text-o'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.listviewtoolbar_toolbar.deuiaction1.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.listviewtoolbar_toolbar.deuiaction1.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.deuiaction3.visabled"
:disabled=
"toolBarModels.deuiaction3.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'deuiaction3' }, $event)">
<i
class=
'fa fa-edit'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.listviewtoolbar_toolbar.deuiaction3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.listviewtoolbar_toolbar.deuiaction3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.deuiaction2.visabled"
:disabled=
"toolBarModels.deuiaction2.disabled"
class=
''
@
click=
"toolbar_click(
{ tag: 'deuiaction2' }, $event)">
<i
class=
'fa fa-remove'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizbook.listviewtoolbar_toolbar.deuiaction2.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizbook.listviewtoolbar_toolbar.deuiaction2.tip'
)
}}
</div>
</tooltip>
</div>
</div>
</div>
...
...
@@ -283,6 +304,12 @@ export default class IBIZBOOKListViewBase extends Vue {
* @memberof IBIZBOOKListView
*/
public
toolBarModels
:
any
=
{
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
deuiaction3
:
{
name
:
'deuiaction3'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'删除'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
}
},
};
...
...
@@ -614,6 +641,26 @@ export default class IBIZBOOKListViewBase extends Vue {
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKListViewBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
toolbar_deuiaction3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
toolbar_deuiaction2_click
(
null
,
''
,
$event2
);
}
}
/**
* list 部件 selectionchange 事件
*
...
...
@@ -711,6 +758,90 @@ export default class IBIZBOOKListViewBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
list
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
list
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
list
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 打开新建数据视图
*
...
...
@@ -791,6 +922,71 @@ export default class IBIZBOOKListViewBase extends Vue {
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
ibizbook
:
args
[
0
].
ibizbook
})
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 批量删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOKListViewBase
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
remove
instanceof
Function
))
{
return
;
}
xData
.
remove
(
args
);
}
/**
* 关闭视图
...
...
app_Web/src/widgets/ibizbook/internal-func-grid/internal-func-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -77,7 +77,7 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
dataType=
"
CURRENCY"
precision=
"0
"
:data=
"row.price"
></app-format-data>
<app-format-data
dataType=
"
FLOAT"
precision=
"2
"
:data=
"row.price"
></app-format-data>
</
template
>
</el-table-column>
</template>
...
...
app_Web/src/widgets/ibizbook/internal-func-grid/internal-func-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -44,7 +44,7 @@ export default class InternalFuncModel {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
},
{
name
:
'ibizbookid'
,
...
...
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
浏览文件 @
0119902b
...
...
@@ -75,6 +75,7 @@
:disabled=
"detailsModel.price.disabled"
type=
'number'
:precision=
"2"
style=
""
>
</input-box>
...
...
@@ -650,8 +651,8 @@ export default class MainBase extends Vue implements ControlInterface {
{
required
:
this
.
detailsModel
.
press
.
required
,
type
:
'string'
,
message
:
'图书出版社 值不能为空'
,
trigger
:
'blur'
},
],
price
:
[
{
required
:
this
.
detailsModel
.
price
.
required
,
type
:
'
string
'
,
message
:
'图书价格 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
price
.
required
,
type
:
'
string
'
,
message
:
'图书价格 值不能为空'
,
trigger
:
'blur'
},
{
required
:
this
.
detailsModel
.
price
.
required
,
type
:
'
number
'
,
message
:
'图书价格 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
price
.
required
,
type
:
'
number
'
,
message
:
'图书价格 值不能为空'
,
trigger
:
'blur'
},
],
type
:
[
{
required
:
this
.
detailsModel
.
type
.
required
,
type
:
'string'
,
message
:
'图书类型 值不能为空'
,
trigger
:
'change'
},
...
...
app_Web/src/widgets/ibizbook/main-form/main-form-model.ts
浏览文件 @
0119902b
...
...
@@ -78,7 +78,7 @@ export default class MainModel {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
},
{
name
:
'type'
,
...
...
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -87,7 +87,7 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
dataType=
"
CURRENCY"
precision=
"0
"
:data=
"row.price"
></app-format-data>
<app-format-data
dataType=
"
FLOAT"
precision=
"2
"
:data=
"row.price"
></app-format-data>
</
template
>
</el-table-column>
</template>
...
...
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -44,7 +44,7 @@ export default class Main2Model {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
},
{
name
:
'ibizbookid'
,
...
...
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -87,7 +87,7 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
dataType=
"
CURRENCY"
precision=
"0
"
:data=
"row.price"
></app-format-data>
<app-format-data
dataType=
"
FLOAT"
precision=
"2
"
:data=
"row.price"
></app-format-data>
</
template
>
</el-table-column>
</template>
...
...
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -44,7 +44,7 @@ export default class Main3Model {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
},
{
name
:
'ibizbookid'
,
...
...
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -79,7 +79,7 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
dataType=
"
CURRENCY"
precision=
"0
"
:data=
"row.price"
></app-format-data>
<app-format-data
dataType=
"
FLOAT"
precision=
"2
"
:data=
"row.price"
></app-format-data>
</
template
>
</el-table-column>
</template>
...
...
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -44,7 +44,7 @@ export default class Main4Model {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
},
{
name
:
'booknumber'
,
...
...
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -79,7 +79,7 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
dataType=
"
CURRENCY"
precision=
"0
"
:data=
"row.price"
></app-format-data>
<app-format-data
dataType=
"
FLOAT"
precision=
"2
"
:data=
"row.price"
></app-format-data>
</
template
>
</el-table-column>
</template>
...
...
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -44,7 +44,7 @@ export default class Main5Model {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
},
{
name
:
'booknumber'
,
...
...
app_Web/src/widgets/ibizbook/new-default-grid/new-default-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -147,7 +147,7 @@
:disabled=
"getColumnDisabled(row,column.property)"
v-model=
"row[column.property]"
type=
"number"
:precision=
"
0
"
:precision=
"
2
"
style=
""
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
...
...
@@ -155,7 +155,7 @@
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
CURRENCY"
precision=
"0
"
></app-span>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
FLOAT"
precision=
"2
"
></app-span>
</
template
>
</template>
</el-table-column>
...
...
@@ -2348,7 +2348,7 @@ export default class NewDefaultBase extends Vue implements ControlInterface {
row
[
'ibizbookname'
]
=
'新建默认值:图书'
;
}
if
(
row
.
hasOwnProperty
(
'price'
))
{
row
[
'price'
]
=
'133.3'
;
row
[
'price'
]
=
133.3
;
}
if
(
row
.
hasOwnProperty
(
'updatedate'
))
{
row
[
'updatedate'
]
=
this
.
$util
.
dateFormat
(
new
Date
());
...
...
app_Web/src/widgets/ibizbook/new-default-grid/new-default-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -47,7 +47,7 @@ export default class NewDefaultModel {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
isEditable
:
true
},
{
...
...
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-base.vue
浏览文件 @
0119902b
...
...
@@ -25,7 +25,8 @@
@
enter=
"onEnter($event)"
:disabled=
"detailsModel.n_price_gtandeq.disabled"
type=
'text'
type=
'number'
:precision=
"2"
style=
"width:100px;"
>
</input-box>
...
...
@@ -322,10 +323,10 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
{
required
:
this
.
detailsModel
.
n_ibizbookname_like
.
required
,
type
:
'string'
,
message
:
'图书名称(%) 值不能为空'
,
trigger
:
'blur'
},
],
n_price_gtandeq
:
[
{
type
:
'
string'
,
message
:
'图书价格(>=) 值必须为字符串
类型'
,
trigger
:
'change'
},
{
type
:
'
string'
,
message
:
'图书价格(>=) 值必须为字符串
类型'
,
trigger
:
'blur'
},
{
required
:
this
.
detailsModel
.
n_price_gtandeq
.
required
,
type
:
'
string
'
,
message
:
'图书价格(>=) 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
n_price_gtandeq
.
required
,
type
:
'
string
'
,
message
:
'图书价格(>=) 值不能为空'
,
trigger
:
'blur'
},
{
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'
},
],
}
...
...
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-model.ts
浏览文件 @
0119902b
...
...
@@ -33,7 +33,7 @@ export default class QUICKSEARCHFORMModel {
{
name
:
'n_price_gtandeq'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
},
]
}
...
...
app_Web/src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -159,7 +159,7 @@
:disabled=
"getColumnDisabled(row,column.property)"
v-model=
"row[column.property]"
type=
"number"
:precision=
"
0
"
:precision=
"
2
"
style=
""
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
...
...
@@ -167,7 +167,7 @@
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
CURRENCY"
precision=
"0
"
></app-span>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
FLOAT"
precision=
"2
"
></app-span>
</
template
>
</template>
</el-table-column>
...
...
app_Web/src/widgets/ibizbook/row-edit-grid/row-edit-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -47,7 +47,7 @@ export default class RowEditModel {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
isEditable
:
true
},
{
...
...
app_Web/src/widgets/ibizbook/row-rules-grid/row-rules-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -147,7 +147,7 @@
:disabled=
"getColumnDisabled(row,column.property)"
v-model=
"row[column.property]"
type=
"number"
:precision=
"
0
"
:precision=
"
2
"
style=
""
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
...
...
@@ -155,7 +155,7 @@
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
CURRENCY"
precision=
"0
"
></app-span>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
FLOAT"
precision=
"2
"
></app-span>
</
template
>
</template>
</el-table-column>
...
...
app_Web/src/widgets/ibizbook/row-rules-grid/row-rules-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -47,7 +47,7 @@ export default class RowRulesModel {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
isEditable
:
true
},
{
...
...
app_Web/src/widgets/ibizbook/update-default-grid/update-default-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -147,7 +147,7 @@
:disabled=
"getColumnDisabled(row,column.property)"
v-model=
"row[column.property]"
type=
"number"
:precision=
"
0
"
:precision=
"
2
"
style=
""
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
...
...
@@ -155,7 +155,7 @@
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
CURRENCY"
precision=
"0
"
></app-span>
<app-span
name=
'price'
editorType=
"NUMBER"
:value=
"row.price"
dataType=
"
FLOAT"
precision=
"2
"
></app-span>
</
template
>
</template>
</el-table-column>
...
...
@@ -2356,7 +2356,7 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
row
[
'ibizbookname'
]
=
'更新默认值:图书'
;
}
if
(
row
.
hasOwnProperty
(
'price'
)
&&
!
row
.
price
&&
row
.
hasUpdated
)
{
row
[
'price'
]
=
'133.3'
;
row
[
'price'
]
=
133.3
;
}
if
(
row
.
hasOwnProperty
(
'updatedate'
)
&&
!
row
.
updatedate
&&
row
.
hasUpdated
)
{
row
[
'updatedate'
]
=
this
.
$util
.
dateFormat
(
new
Date
());
...
...
app_Web/src/widgets/ibizbook/update-default-grid/update-default-grid-model.ts
浏览文件 @
0119902b
...
...
@@ -47,7 +47,7 @@ export default class UpdateDefaultModel {
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'
CURRENCY
'
,
dataType
:
'
FLOAT
'
,
isEditable
:
true
},
{
...
...
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -1070,10 +1070,10 @@ export default class MainBase extends Vue implements ControlInterface {
serviceName
:
'ibizorder'
,
appDeLogicName
:
'订单'
,
importData
:{
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
},
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
}
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
},
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/uipart-0015-grid/uipart-0015-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -1066,10 +1066,10 @@ export default class UIPART_0015Base extends Vue implements ControlInterface {
serviceName
:
'ibizorder'
,
appDeLogicName
:
'订单'
,
importData
:{
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
},
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
}
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
},
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/uipart-0017-grid/uipart-0017-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -1189,10 +1189,10 @@ export default class UIPART_0017Base extends Vue implements ControlInterface {
serviceName
:
'ibizorder'
,
appDeLogicName
:
'订单'
,
importData
:{
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
},
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
}
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
},
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/uipart-0018-grid/uipart-0018-grid-base.vue
浏览文件 @
0119902b
...
...
@@ -1121,10 +1121,10 @@ export default class UIPART_0018Base extends Vue implements ControlInterface {
serviceName
:
'ibizorder'
,
appDeLogicName
:
'订单'
,
importData
:{
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
},
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
}
"ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid"
,
"order"
:
1000
},
"IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZBOOK.java
浏览文件 @
0119902b
...
...
@@ -105,7 +105,7 @@ public class IBIZBOOK extends EntityMP implements Serializable {
@TableField
(
value
=
"price"
)
@JSONField
(
name
=
"price"
)
@JsonProperty
(
"price"
)
private
String
price
;
private
Double
price
;
/**
* 图书出版社
*/
...
...
@@ -149,7 +149,7 @@ public class IBIZBOOK extends EntityMP implements Serializable {
/**
* 设置 [图书价格]
*/
public
void
setPrice
(
String
price
)
{
public
void
setPrice
(
Double
price
)
{
this
.
price
=
price
;
this
.
modify
(
"price"
,
price
);
}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/filter/IBIZBOOKSearchContext.java
浏览文件 @
0119902b
...
...
@@ -34,8 +34,8 @@ 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
)
{
private
Double
n_price_gtandeq
;
//[图书价格]
public
void
setN_price_gtandeq
(
Double
n_price_gtandeq
)
{
this
.
n_price_gtandeq
=
n_price_gtandeq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_price_gtandeq
)){
this
.
getSearchCond
().
ge
(
"price"
,
n_price_gtandeq
);
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
0119902b
...
...
@@ -28,7 +28,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-1
7
3-2"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-1
8
3-2"
>
<createTable
tableName=
"T_IBIZBOOK"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -45,7 +45,7 @@
</column>
<column
name=
"AUTHOR"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"PRICE"
remarks=
""
type=
"
VARCHAR(200)
"
>
<column
name=
"PRICE"
remarks=
""
type=
"
FLOAT
"
>
</column>
<column
name=
"PRESS"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
0119902b
...
...
@@ -268,11 +268,11 @@
"codename"
:
"Price"
,
"field_logic_name"
:
"图书价格"
,
"entity_name"
:
"IBIZBOOK"
,
"field_type"
:
"
CURRENCY
"
,
"field_type"
:
"
FLOAT
"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"
VARCHAR
"
,
"data_
length"
:
200
,
"data_type"
:
"
FLOAT
"
,
"data_
preci"
:
2
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZBOOKDTO.java
浏览文件 @
0119902b
...
...
@@ -99,8 +99,7 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
*/
@JSONField
(
name
=
"price"
)
@JsonProperty
(
"price"
)
@Size
(
min
=
0
,
max
=
200
,
message
=
"内容长度必须小于等于[200]"
)
private
String
price
;
private
Double
price
;
/**
* 属性 [PRESS]
...
...
@@ -148,7 +147,7 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
/**
* 设置 [PRICE]
*/
public
void
setPrice
(
String
price
){
public
void
setPrice
(
Double
price
){
this
.
price
=
price
;
this
.
modify
(
"price"
,
price
);
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录