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
abbba506
Commit
abbba506
authored
Dec 29, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加逻辑: Grid 刷新映射
parent
b384026f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
32 deletions
+150
-32
listeningFromData.js
...xt/src/main/webapp/biz/topsun/common/listeningFromData.js
+136
-25
productDetail.js
...un-xt/src/main/webapp/biz/topsun/product/productDetail.js
+14
-7
No files found.
topsun-xt/src/main/webapp/biz/topsun/common/listeningFromData.js
View file @
abbba506
This diff is collapsed.
Click to expand it.
topsun-xt/src/main/webapp/biz/topsun/product/productDetail.js
View file @
abbba506
...
...
@@ -46,8 +46,8 @@ function initializateSelectC() {
Public
.
ajax
(
web_app
.
name
+
"/product/queryProcessbyTechnologyId.ajax"
,{
productTechnologyId
:
data
.
productTechnologyId
},
function
(
data
)
{
window
.
dataSet
.
original
.
processed
=
data
;
let
showData
=
mapping
(
dataMapping
,
window
.
dataSet
.
original
);
let
showData
=
refreshMapping
(
dataMapping
,
'processed'
,
data
);
$
(
'#submitForm'
).
formClean
();
$
(
'#submitForm'
).
formSet
(
showData
);
processedGrid
(
'#processedGrid'
,
window
.
dataSet
.
rawData
.
processed
);
...
...
@@ -57,15 +57,22 @@ function initializateSelectC() {
});
}
function
initGridSearchbox
()
{
listeningGridSearchbox
(
'fronColorsGrid_colorName'
,
{
type
:
"product"
,
name
:
"color"
,
autocomplete
:
true
,
onChange
:
function
(
value
,
data
,
fillInValue
)
{
console
.
log
(
'fillInValue : '
+
fillInValue
);
}
})
});
listeningGridSearchbox
(
'backColorsGrid_colorName'
,
{
type
:
"product"
,
name
:
"color"
,
autocomplete
:
true
,
onChange
:
function
(
value
,
data
,
fillInValue
)
{
}
});
}
...
...
@@ -125,7 +132,7 @@ function loadDataTest() {
Public
.
ajax
(
web_app
.
name
+
"/product/loadProductDetail.ajax"
,
{
data
:
params
.
get
(
"data"
)
},
function
(
data
)
{
var
showData
=
m
apping
(
dataMapping
,
data
.
rawData
);
var
showData
=
buildM
apping
(
dataMapping
,
data
.
rawData
);
$
(
'#submitForm'
).
formSet
(
showData
);
var
fronData
=
{};
if
(
window
.
dataSet
.
isInsert
)
{
...
...
@@ -232,8 +239,8 @@ function faceGrid(elId, data) {
onBeforeEdit
:
function
(
editParm
,
gg
)
{
console
.
log
(
'original run onBeforeEdit()'
);
},
on
AfterEdit
:
function
()
{
debugger
;
on
BeforeSubmitEdit
:
function
(
editParm
,
gg
)
{
//
debugger;
},
});
}
...
...
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