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
d9ed1b47
Commit
d9ed1b47
authored
Dec 16, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23-12-16: 下班前提交
parent
08074efd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
166 additions
and
76 deletions
+166
-76
listeningFromData.js
...xt/src/main/webapp/biz/topsun/common/listeningFromData.js
+151
-60
productDetail.js
...un-xt/src/main/webapp/biz/topsun/product/productDetail.js
+15
-16
No files found.
topsun-xt/src/main/webapp/biz/topsun/common/listeningFromData.js
View file @
d9ed1b47
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/product/productDetail.js
View file @
d9ed1b47
...
...
@@ -26,19 +26,25 @@ function initializeUI() {
});
}
function
deleteHandler
(){
DataUtil
.
del
({
gridManager
:
gridManager
,
idFieldName
:
'id'
,
onSuccess
:
function
(){
}
});
}
function
faceGrid
(
elId
,
data
)
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
(){
UICtrl
.
addGridRow
(
gridManager
);
},
updateHandler
:
function
(){
updateHandler
();
},
aaHandler
:
{
id
:
'ccAA'
,
text
:
'Hello'
,
img
:
'fa-music'
,
className
:
'btn-gray'
,
click
:
function
()
{
alert
(
'hello~!'
);
}
}
deleteHandler
:
()
=>
{
gridManager
.
deleteSelectedRow
();
},
});
var
gridManager
=
listeningGrid
(
elId
,
{
columns
:
[
...
...
@@ -46,9 +52,7 @@ function faceGrid(elId, data) {
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"
}
{
display
:
"油墨覆盖率(%)"
,
name
:
"coverageRate"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
type
:
'text'
,
required
:
true
}
}
],
toolbar
:
toolbarOptions
,
dataType
:
"local"
,
...
...
@@ -107,13 +111,10 @@ function loadDataTest() {
data
:
params
.
get
(
"data"
)
},
function
(
data
)
{
var
showData
=
mapping
(
dataMapping
,
data
.
rawData
);
debugger
;
$
(
'#submitForm'
).
formSet
(
showData
);
var
fronData
=
{};
fronData
.
Rows
=
data
.
rawData
.
fronColors
;
faceGrid
(
"#fronColorsGrid"
,
fronData
);
fronData
.
Rows
=
data
.
backColors
;
faceGrid
(
"#backColorsGrid"
,
fronData
);
faceGrid
(
"#fronColorsGrid"
,
data
.
rawData
.
fronColors
);
faceGrid
(
"#backColorsGrid"
,
data
.
rawData
.
backColors
);
inputEventListener
();
});
}
...
...
@@ -122,8 +123,6 @@ function loadDataTest() {
// alias必须唯一.这里不再要求所有对象的属性名唯一 { property : alias }
// 未设 alias 情况同 { property : property }
// Grid: 需要监听 Grid Data 时,必须设置 唯一 id 列。
// 匹配规则 elementId.indexOf( dataMapping.ArrayKey )
// 即当前页面 ‘fronColorsGrid’.indexOf('fronColors')
var
dataMapping
=
{
Product
:
[
"productId"
...
...
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