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
85d619ba
Commit
85d619ba
authored
Jan 02, 2024
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
97c53725
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
20 deletions
+22
-20
product.js
topsun-xt/src/main/webapp/biz/topsun/product/product.js
+0
-1
product.jsp
topsun-xt/src/main/webapp/biz/topsun/product/product.jsp
+7
-6
productDetail.js
...un-xt/src/main/webapp/biz/topsun/product/productDetail.js
+6
-5
ProductController.java
...m/huigou/topsun/product/controller/ProductController.java
+9
-8
No files found.
topsun-xt/src/main/webapp/biz/topsun/product/product.js
View file @
85d619ba
...
...
@@ -5,7 +5,6 @@ $(document).ready(function() {
loadCodeRuleListGrid
();
});
function
initializateUI
()
{
//UICtrl.layout("#layout", {leftWidth: 3});
UICtrl
.
layout
(
"#layout"
,{
leftWidth
:
50
});
}
...
...
topsun-xt/src/main/webapp/biz/topsun/product/product.jsp
View file @
85d619ba
...
...
@@ -17,6 +17,13 @@
<x:script
src=
'/biz/topsun/product/product.js'
/>
</head>
<body>
<div
position=
"center"
title=
"产品管理"
>
<div
id=
"productListGrid"
style=
"margin: 2px;"
></div>
</div>
</body>
</html>
<%-- <div position="top">--%>
<%-- <form class="hg-form" method="post" action="" id="submitForm">--%>
<%-- <div class="hg-form-cols">--%>
...
...
@@ -38,9 +45,3 @@
<%-- <div class="clearfix"></div>--%>
<%-- </form>--%>
<%-- </div>--%>
<div
position=
"center"
title=
"产品管理"
>
<div
id=
"productListGrid"
style=
"margin: 2px;"
></div>
</div>
</body>
</html>
topsun-xt/src/main/webapp/biz/topsun/product/productDetail.js
View file @
85d619ba
$
(
document
).
ready
(
function
()
{
loadData
Test
();
loadData
();
initializeUI
();
initializeToobarContainer
();
initializeTab
();
...
...
@@ -126,16 +126,17 @@ function initializeToobarContainer(){
$
(
'#toolBar'
).
data
(
'dropup'
,
true
).
removeClass
(
'job-button-fixed-top'
).
addClass
(
'job-button-fixed-bottom'
);
}
function
loadData
Test
()
{
function
loadData
()
{
console
.
log
(
"loadData"
)
var
params
=
new
URLSearchParams
(
document
.
location
.
search
);
Public
.
ajax
(
web_app
.
name
+
"/product/loadProductDetail.ajax"
,
{
data
:
params
.
get
(
"data"
)
},
function
(
data
)
{
var
showData
=
buildMapping
(
dataMapping
,
data
.
rawData
);
let
showData
=
buildMapping
(
dataMapping
,
data
.
rawData
);
$
(
'#submitForm'
).
formSet
(
showData
);
var
fronData
=
{};
if
(
window
.
dataSet
.
isInsert
)
{
// Grid 使用 Local 模式,data 不能为 undefined
data
.
rawData
=
{};
data
.
rawData
.
fronColors
=
{};
data
.
rawData
.
backColors
=
{};
...
...
@@ -144,11 +145,11 @@ function loadDataTest() {
faceGrid
(
"#fronColorsGrid"
,
data
.
rawData
.
fronColors
);
faceGrid
(
"#backColorsGrid"
,
data
.
rawData
.
backColors
);
processedGrid
(
'#processedGrid'
,
data
.
rawData
.
processed
);
debugger
;
productLossGrid
(
'#productLossGrid'
,
data
.
rawData
.
productLoss
);
inputEventListener
();
});
}
// 数据映射配置
// Form: 映射数据格式为elementName(alias): { objName: property }
// alias必须唯一.这里不再要求所有对象的属性名唯一 { property : alias }
...
...
topsun/src/main/java/com/huigou/topsun/product/controller/ProductController.java
View file @
85d619ba
...
...
@@ -60,16 +60,10 @@ public class ProductController extends CommonController {
}
public
String
forwardProduct
()
{
// 通过此方法可以查看系统配置的 字典 的数据结构
DictUtil
.
getDictionaryList
(
"technologyType"
);
Map
<
String
,
Object
>
map4
=
new
HashMap
<>(
10
);
map4
.
put
(
"六六六"
,
"666"
);
map4
.
put
(
"七七七"
,
"777"
);
map4
.
put
(
"八八八"
,
"888"
);
return
forward
(
"product"
);
}
public
String
forwardProductDetail
()
{
public
String
forwardProductDetail
()
{
ObjectMapper
objectMapper
=
new
ObjectMapper
();
SDO
sdo
=
this
.
getSDO
();
String
str
=
sdo
.
getString
(
"data"
);
...
...
@@ -131,4 +125,11 @@ public class ProductController extends CommonController {
return
success
(
aa
);
}
}
\ No newline at end of file
}
//// 通过此方法可以查看系统配置的 字典 的数据结构
// DictUtil.getDictionaryList("technologyType");
// Map<String, Object> map4 = new HashMap<>(10);
// map4.put("六六六", "666");
// map4.put("七七七", "777");
// map4.put("八八八", "888");
\ No newline at end of file
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