Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
a4ee6af8
Commit
a4ee6af8
authored
Jan 09, 2019
by
季圣华
Browse files
解决应用和功能模块的bug
parent
9760cad7
Changes
2
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/manage/app.html
View file @
a4ee6af8
...
...
@@ -369,13 +369,18 @@
if
(
checkAppName
())
{
return
;
}
var
infoObj
=
$
(
"
#appFM
"
).
serializeObject
();
infoObj
.
ReSize
=
$
(
"
#ReSize
"
).
is
(
'
:checked
'
);
infoObj
.
OpenMax
=
$
(
"
#OpenMax
"
).
is
(
'
:checked
'
);
infoObj
.
Flash
=
$
(
"
#Flash
"
).
is
(
'
:checked
'
);
infoObj
.
Enabled
=
$
(
"
#Enabled
"
).
is
(
'
:checked
'
);
$
.
ajax
({
url
:
url
,
type
:
"
post
"
,
dataType
:
"
json
"
,
fileElementId
:
'
Icon
'
,
data
:
({
info
:
JSON
.
stringify
(
$
(
"
#appFM
"
).
serializeObject
()
)
info
:
JSON
.
stringify
(
infoObj
)
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
...
...
@@ -420,7 +425,7 @@
appID
=
appInfo
[
0
];
//焦点在名称输入框==定焦在输入文字后面
$
(
"
#name
"
).
val
(
""
).
focus
().
val
(
appInfo
[
1
]);
url
=
'
/
depot
/update?id=
'
+
appInfo
[
0
];
url
=
'
/
app
/update?id=
'
+
appInfo
[
0
];
}
//检查名称是否存在 ++ 重名无法提示问题需要跟进
...
...
erp_web/pages/manage/functions.html
View file @
a4ee6af8
...
...
@@ -252,12 +252,14 @@
//绑定事件
function
bindEvent
()
{
var
url
=
'
/js/pages/manage/pushBtn.json
'
;
$
(
'
#PushBtn
'
).
combobox
({
url
:
'
/js/pages/manage/pushBtn.json
'
,
url
:
url
,
valueField
:
'
id
'
,
textField
:
'
text
'
,
panelHeight
:
120
,
multiple
:
true
multiple
:
true
,
method
:
'
get
'
});
}
...
...
@@ -353,12 +355,17 @@
if
(
checkFunctionsName
())
{
return
;
}
var
infoObj
=
$
(
"
#functionsFM
"
).
serializeObject
();
infoObj
.
State
=
$
(
"
#State
"
).
is
(
'
:checked
'
);
infoObj
.
Enabled
=
$
(
"
#Enabled
"
).
is
(
'
:checked
'
);
var
PushBtn
=
JSON
.
stringify
(
$
(
"
#PushBtn
"
).
combobox
(
'
getValues
'
));
infoObj
.
PushBtn
=
PushBtn
.
replace
(
/
\"
/g
,
""
).
replace
(
/
\[
|]/g
,
""
);
$
.
ajax
({
url
:
url
,
type
:
"
post
"
,
dataType
:
"
json
"
,
data
:
({
info
:
JSON
.
stringify
(
$
(
"
#functionsFM
"
).
serializeObject
()
)
info
:
JSON
.
stringify
(
infoObj
)
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
...
...
Write
Preview
Supports
Markdown
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