Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
08074efd
Commit
08074efd
authored
Dec 15, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23-12-15: 下班前提交
parent
5dfc4510
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
163 additions
and
89 deletions
+163
-89
listeningFromData.js
...xt/src/main/webapp/biz/topsun/common/listeningFromData.js
+141
-77
productDetail.js
...un-xt/src/main/webapp/biz/topsun/product/productDetail.js
+19
-10
productDetail.jsp
...n-xt/src/main/webapp/biz/topsun/product/productDetail.jsp
+2
-2
ProductApplicationImpl.java
...psun/product/application/impl/ProductApplicationImpl.java
+1
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/common/listeningFromData.js
View file @
08074efd
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/product/productDetail.js
View file @
08074efd
...
...
@@ -46,7 +46,9 @@ function faceGrid(elId, data) {
type
:
'text'
,
required
:
true
}},
{
display
:
"油墨覆盖率(%)"
,
name
:
"coverageRate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
,
required
:
true
}
}
{
display
:
"油墨覆盖率(%)"
,
name
:
"coverageRate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
,
required
:
true
}
},
{
name
:
"colorId"
,
hide
:
true
},
{
name
:
"colorId"
}
],
toolbar
:
toolbarOptions
,
dataType
:
"local"
,
...
...
@@ -58,7 +60,9 @@ function faceGrid(elId, data) {
height
:
150
,
onAfterEdit
:
function
(
editParm
)
{
// 后备方案: 表格遍历完成时
debugger
;
},
onBeforeEdit
:
function
(
editParm
)
{
console
.
log
(
'original run onBeforeEdit()'
);
},
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
...
...
@@ -107,16 +111,19 @@ function loadDataTest() {
$
(
'#submitForm'
).
formSet
(
showData
);
var
fronData
=
{};
fronData
.
Rows
=
data
.
rawData
.
fronColors
;
faceGrid
(
"#fron
tFace
Grid"
,
fronData
);
faceGrid
(
"#fron
Colors
Grid"
,
fronData
);
fronData
.
Rows
=
data
.
backColors
;
faceGrid
(
"#back
Face
Grid"
,
fronData
);
faceGrid
(
"#back
Colors
Grid"
,
fronData
);
inputEventListener
();
});
}
// 数据映射配置
// alias 必须唯一.这里不再要求所有对象的属性名唯一 { property : alias }
// 未设 alias 情况同 { property : property }
// Form 映射数据格式为: elementName(alias): { objName: property }
// Form: 映射数据格式为elementName(alias): { objName: property }
// alias必须唯一.这里不再要求所有对象的属性名唯一 { property : alias }
// 未设 alias 情况同 { property : property }
// Grid: 需要监听 Grid Data 时,必须设置 唯一 id 列。
// 匹配规则 elementId.indexOf( dataMapping.ArrayKey )
// 即当前页面 ‘fronColorsGrid’.indexOf('fronColors')
var
dataMapping
=
{
Product
:
[
"productId"
...
...
@@ -136,9 +143,11 @@ var dataMapping = {
"rowNum"
,
"modulus"
],
fronColors
:
[
[
"productFaceColorId"
,
"coverageRate"
]
]
fronColors
:
{
id
:
"productFaceColorId"
,
columns
:
[
"productFaceColorId"
,
"coverageRate"
]
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/product/productDetail.jsp
View file @
08074efd
...
...
@@ -87,11 +87,11 @@
<div
id=
"layout"
style=
"height: 280px; display: contents;"
>
<div
position=
"left"
title=
"正面颜色"
>
<div
id=
"fron
tFace
Grid"
style=
"margin: 2px;"
></div>
<div
id=
"fron
Colors
Grid"
style=
"margin: 2px;"
></div>
</div>
<div
position=
"right"
title=
"反面颜色"
>
<div
id=
"back
Face
Grid"
style=
"margin: 2px;"
></div>
<div
id=
"back
Colors
Grid"
style=
"margin: 2px;"
></div>
</div>
</div>
...
...
topsun/src/main/java/com/huigou/topsun/product/application/impl/ProductApplicationImpl.java
View file @
08074efd
...
...
@@ -113,6 +113,7 @@ public class ProductApplicationImpl implements ProductApplication {
}
else
{
ProductFaceColor
fc
=
new
ProductFaceColor
();
fc
.
setProductFaceColorId
(
111L
);
fc
.
setColorId
(
1L
);
ArrayList
<
ProductFaceColor
>
fronColors
=
new
ArrayList
<>();
fronColors
.
add
(
fc
);
assemble
.
put
(
"fronColors"
,
fronColors
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment