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
575b1a39
Commit
575b1a39
authored
Dec 18, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
039e7074
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
listeningFromData.js
...xt/src/main/webapp/biz/topsun/common/listeningFromData.js
+7
-7
productDetail.js
...un-xt/src/main/webapp/biz/topsun/product/productDetail.js
+2
-4
ProductController.java
...m/huigou/topsun/product/controller/ProductController.java
+1
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/common/listeningFromData.js
View file @
575b1a39
...
...
@@ -159,8 +159,8 @@ function listeningGrid(elId, options) {
options
.
data
=
data
;
// ------------------ 编辑框打开前记录当前行 ------------------
const
originalOnBeforeEdit
=
options
.
onBeforeEdit
;
options
.
onBeforeEdit
=
function
(
editParm
){
originalOnBeforeEdit
.
call
(
this
,
editParm
);
options
.
onBeforeEdit
=
function
(
editParm
,
gg
){
let
domIds
=
editParm
.
column
.
__domid
.
split
(
'|'
),
recordId
=
editParm
.
record
.
__id
,
colName
=
editParm
.
column
.
name
;
let
parentDomId
=
domIds
[
0
]
+
'|'
+
2
+
'|'
+
recordId
;
// +'|'+domIds[2];
let
rowDOM
;
...
...
@@ -177,6 +177,9 @@ function listeningGrid(elId, options) {
mapperEntry
[
rowId
][
'rowId'
]
=
parentDomId
;
mapperEntry
[
rowId
][
'rowIndex'
]
=
editParm
.
rowindex
;
}
originalOnBeforeEdit
.
call
(
this
,
editParm
,
'11'
);
debugger
;
}
const
toolbar
=
options
.
toolbar
;
if
(
toolbar
)
{
...
...
@@ -185,8 +188,6 @@ function listeningGrid(elId, options) {
if
(
but
.
id
===
"menuAdd"
)
{
const
originalOnClick
=
but
.
click
;
but
.
click
=
function
()
{
originalOnClick
.
call
(
this
);
debugger
;
let
mappingEntry
=
Object
.
entries
(
window
.
dataMapping
);
tryForEach
(
mappingEntry
,
entry
=>
{
let
beanName
=
entry
[
0
];
...
...
@@ -203,7 +204,6 @@ function listeningGrid(elId, options) {
// ------------- 设置 mapper -------------
debugger
;
tryForEach
(
entry
[
1
].
columns
,
property
=>
{
mapperData
[
'beanName'
]
=
beanName
;
if
(
!
mapper
[
property
])
{
mapper
[
property
]
=
{};
...
...
@@ -228,9 +228,9 @@ function listeningGrid(elId, options) {
window
.
dataSet
.
newData
[
beanName
].
ids
.
push
(
rowId
);
UICtrl
.
addGridRow
(
gridManager
,
data
);
}
})
originalOnClick
.
call
(
this
,
data
);
debugger
;
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/product/productDetail.js
View file @
575b1a39
...
...
@@ -128,7 +128,7 @@ var dataMapping = {
function
faceGrid
(
elId
,
data
)
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
(){
addHandler
:
function
(
rawData
){
},
updateHandler
:
function
(){
updateHandler
();
...
...
@@ -153,10 +153,8 @@ function faceGrid(elId, data) {
usePager
:
false
,
width
:
"100%"
,
height
:
150
,
on
AfterAddRow
:
function
(
rowdata
)
{
on
BeforeEdit
:
function
(
editParm
,
gg
)
{
debugger
;
},
onBeforeEdit
:
function
(
editParm
)
{
console
.
log
(
'original run onBeforeEdit()'
);
},
onDblClickRow
:
function
(
data
,
rowindex
,
rowobj
)
{
...
...
topsun/src/main/java/com/huigou/topsun/product/controller/ProductController.java
View file @
575b1a39
...
...
@@ -5,6 +5,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
import
com.fasterxml.jackson.databind.DeserializationFeature
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.huigou.cache.DictUtil
;
import
com.huigou.topsun.product.application.ProductApplication
;
import
com.huigou.topsun.product.domain.Product
;
import
com.huigou.uasp.annotation.ControllerMapping
;
...
...
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