Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5lcyq
Overview
Overview
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
管理员
jfV5lcyq
Commits
5dad0090
Commit
5dad0090
authored
Sep 12, 2018
by
朱天成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jfV5lcyq
parent
5c7f1abf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
formmodelTab.js
WebContent/process/pages/formmodel/js/formmodelTab.js
+17
-4
viewAction.java
src_process/com/gaowj/formmodel/action/viewAction.java
+0
-5
No files found.
WebContent/process/pages/formmodel/js/formmodelTab.js
View file @
5dad0090
...
...
@@ -157,17 +157,30 @@ function editRow(index) {
var
is_row
=
$
(
'#list'
).
datagrid
(
'getSelections'
);
$
(
'#list'
).
datagrid
(
'clearSelections'
);
is_row
[
0
].
OPETYPE
=
'update'
;
openEditRow
(
"formmodelView_formmodelTabDetail"
,
is_row
[
0
],
"编辑"
,
true
,
0.95
,
0.95
,
0
,
0
);
$
(
'#list'
).
data
(
'content'
,
is_row
[
0
].
MODEL_CONTENT
);
var
new_is_row
=
get_FIELD2
(
is_row
[
0
]);
delete
new_is_row
.
MODEL_CONTENT
;
openEditRow
(
"formmodelView_formmodelTabDetail"
,
new_is_row
,
"编辑"
,
true
,
0.95
,
0.95
,
0
,
0
);
}
function
get_FIELD2
(
data
){
if
(
data
==
null
){
return
;
}
var
ret_data
=
{};
$
.
each
(
data
,
function
(
i
,
n
){
ret_data
[
i
]
=
n
;
});
return
ret_data
;
}
//加载修改子页面成功后的回调
function
updateUrlOnloadCallback
(
is_row
){
initUeditor
(
is_row
);
$
(
"#inputForm"
).
form
(
'load'
,
get_FIELD
(
is_row
));
initUeditor
(
{
MODEL_CONTENT
:
$
(
'#list'
).
data
(
'content'
)}
);
}
function
initUeditor
(
is_row
){
console
.
log
(
is_row
);
UE
.
delEditor
(
'ueditId'
);
var
ue
=
UE
.
getEditor
(
'ueditId'
,{});
ue
.
ready
(
function
(){
...
...
src_process/com/gaowj/formmodel/action/viewAction.java
View file @
5dad0090
package
com
.
gaowj
.
formmodel
.
action
;
import
java.util.Map
;
import
com.gaowj.business.action.BasicAction
;
import
com.gaowj.business.exception.BusinessException
;
import
com.gaowj.business.util.RequestUtils
;
public
class
viewAction
extends
BasicAction
{
...
...
@@ -13,8 +10,6 @@ public class viewAction extends BasicAction{
}
public
String
formmodelTabDetail
()
throws
BusinessException
{
Map
<
String
,
Object
>
query
=
RequestUtils
.
getUpdateFieldMapUtf8
(
request
,
RequestUtils
.
UPDATEDATAFIELDPREFIX
);
request
.
setAttribute
(
"is_row"
,
query
);
return
"formmodelTabDetail"
;
}
...
...
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