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
Hide 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 @@
var
$edtJghs
=
$div
.
find
(
'input[name="jghs"]'
);
var
$edtZyhs
=
$div
.
find
(
'input[name="zyhs"]'
);
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
){
//$cbxGcid.iCombobox({valueField:'id', textField:'name', onSelect: doSelectGcid});
...
...
@@ -176,13 +180,6 @@
}
},
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
){
if
(
res
.
success
&&
res
.
data
.
records
){
$cbxGxlx
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
...
...
@@ -194,6 +191,23 @@
$cbxGxbz
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
}
},
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
){
...
...
@@ -215,10 +229,12 @@
function
doSelectGzzxid
(
a
){
apigzzxid
=
a
.
id
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
){
$cbxBzgxid
.
iCombobox
(
'setValue'
,
''
);
$cbxBzgxid
.
iCombobox
(
'loadData'
,
res
.
data
.
records
);
$cbxBzgxid
.
iCombobox
(
'setValue'
,
params
.
bzgxName
);
$edtName
.
val
(
params
.
bzgxNam
)
}
});
}
...
...
@@ -239,10 +255,13 @@
});
}
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
){
$cbxBzgxid
.
iCombobox
(
'setValue'
,
''
);
$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 () {
var
$cbxGzzxid
=
$div
.
find
(
'input[name="gzzxid"]'
);
var
$gxlxArray
=
[];
var
$gxbzArray
=
[];
function
paramInit
(
ops
){
gas
.
post
(
'gygl/gylx/init/gxlx'
,
{},
function
(
res
){
$gxlxArray
=
res
.
data
.
records
;
...
...
@@ -109,7 +108,13 @@ $(function () {
]],
dialog
:
{
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
);
...
...
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