Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
04759ff6
Commit
04759ff6
authored
Mar 16, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联动
parent
671ee3de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
12 deletions
+36
-12
edit.html
gavel/src/main/resources/templates/views/gygl/gylx/edit.html
+29
-10
index.html
...l/src/main/resources/templates/views/gygl/gylx/index.html
+7
-2
No files found.
gavel/src/main/resources/templates/views/gygl/gylx/edit.html
View file @
04759ff6
...
@@ -153,7 +153,11 @@
...
@@ -153,7 +153,11 @@
var
$edtJghs
=
$div
.
find
(
'input[name="jghs"]'
);
var
$edtJghs
=
$div
.
find
(
'input[name="jghs"]'
);
var
$edtZyhs
=
$div
.
find
(
'input[name="zyhs"]'
);
var
$edtZyhs
=
$div
.
find
(
'input[name="zyhs"]'
);
var
$bInit
=
true
;
var
$bInit
=
true
;
var
apigzzxid
=
""
var
$dialog
=
$
(
'#gyglGylxEdit'
);
var
params
=
$dialog
.
closest
(
".panel-body"
).
iDialog
(
"options"
).
queryParams
.
pid
;
//取参
var
apigzzxid
=
params
.
gzzxid
var
apigxlx
=
""
function
pageInit
(
ops
){
function
pageInit
(
ops
){
//$cbxGcid.iCombobox({valueField:'id', textField:'name', onSelect: doSelectGcid});
//$cbxGcid.iCombobox({valueField:'id', textField:'name', onSelect: doSelectGcid});
...
@@ -176,13 +180,6 @@
...
@@ -176,13 +180,6 @@
}
}
},
ops
);
},
ops
);
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
},
ops
);
gas
.
post
(
'gygl/gylx/init/gxlx'
,
{},
function
(
res
){
gas
.
post
(
'gygl/gylx/init/gxlx'
,
{},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGxlx
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxGxlx
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
...
@@ -194,6 +191,23 @@
...
@@ -194,6 +191,23 @@
$cbxGxbz
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxGxbz
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
}
},
ops
);
},
ops
);
setTimeout
(
function
(){
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{
gxlx
:
apigxlx
,
gzzxid
:
apigzzxid
},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
// let value=""
// res.data.records.forEach(function(e){
// if(e.name==params.bzgxName){
// value=e.code
// }
// })
console
.
log
(
params
.
bzgxName
)
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxBzgxid
.
iCombobox
(
'setValue'
,
params
.
bzgxName
);
$edtName
.
val
(
params
.
bzgxNam
)
}
},
ops
);
},
200
)
}
}
function
run
(
ops
){
function
run
(
ops
){
...
@@ -215,10 +229,12 @@
...
@@ -215,10 +229,12 @@
function
doSelectGzzxid
(
a
){
function
doSelectGzzxid
(
a
){
apigzzxid
=
a
.
id
apigzzxid
=
a
.
id
if
(
$div
.
closest
(
"form"
).
attr
(
"tag"
)
!=
"add"
&&
$bInit
)
return
false
;
if
(
$div
.
closest
(
"form"
).
attr
(
"tag"
)
!=
"add"
&&
$bInit
)
return
false
;
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{
g
zzxid
:
a
.
id
},
function
(
res
){
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{
g
xlx
:
apigxlx
,
gzzxid
:
apigzzx
id
},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxBzgxid
.
iCombobox
(
'setValue'
,
''
);
$cbxBzgxid
.
iCombobox
(
'setValue'
,
''
);
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxBzgxid
.
iCombobox
(
'setValue'
,
params
.
bzgxName
);
$edtName
.
val
(
params
.
bzgxNam
)
}
}
});
});
}
}
...
@@ -239,10 +255,13 @@
...
@@ -239,10 +255,13 @@
});
});
}
}
function
doldbzgx
(
e
){
function
doldbzgx
(
e
){
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{
gxlx
:
e
.
id
,
gzzxid
:
apigzzxid
},
function
(
res
){
apigxlx
=
e
.
id
gas
.
post
(
'gygl/bzgx/queryNotTybzBzgx'
,
{
gxlx
:
apigxlx
,
gzzxid
:
apigzzxid
},
function
(
res
){
if
(
res
.
success
&&
res
.
data
.
records
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxBzgxid
.
iCombobox
(
'setValue'
,
''
);
$cbxBzgxid
.
iCombobox
(
'setValue'
,
''
);
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxBzgxid
.
iCombobox
(
'setValue'
,
params
.
bzgxName
);
$edtName
.
val
(
params
.
bzgxNam
)
}
}
});
});
}
}
...
...
gavel/src/main/resources/templates/views/gygl/gylx/index.html
View file @
04759ff6
...
@@ -66,7 +66,6 @@ $(function () {
...
@@ -66,7 +66,6 @@ $(function () {
var
$cbxGzzxid
=
$div
.
find
(
'input[name="gzzxid"]'
);
var
$cbxGzzxid
=
$div
.
find
(
'input[name="gzzxid"]'
);
var
$gxlxArray
=
[];
var
$gxlxArray
=
[];
var
$gxbzArray
=
[];
var
$gxbzArray
=
[];
function
paramInit
(
ops
){
function
paramInit
(
ops
){
gas
.
post
(
'gygl/gylx/init/gxlx'
,
{},
function
(
res
){
gas
.
post
(
'gygl/gylx/init/gxlx'
,
{},
function
(
res
){
$gxlxArray
=
res
.
data
.
records
;
$gxlxArray
=
res
.
data
.
records
;
...
@@ -109,7 +108,13 @@ $(function () {
...
@@ -109,7 +108,13 @@ $(function () {
]],
]],
dialog
:
{
dialog
:
{
footerIn
:
true
,
footerIn
:
true
,
href
:
'gygl/gylx/edit'
href
:
'gygl/gylx/edit'
,
onBeforeLoad
:
function
()
{
//传参
let
pid
=
$
(
"#gyglGylxTable"
).
datagrid
(
'getSelected'
)
$
(
this
).
dialog
(
"options"
).
queryParams
=
{
pid
:
pid
}
}
}
}
};
};
$div
.
Holder
(
options
);
$div
.
Holder
(
options
);
...
...
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