Commit 8e3960c5 authored by yff's avatar yff

Merge branch 'master' of gitlab.gavelinfo.com:gavelinfo/kwell-mes

parents 942aba2e 053321c1
...@@ -82,7 +82,7 @@ public class UpointDaoImpl extends BaseDaoImpl implements UpointDao { ...@@ -82,7 +82,7 @@ public class UpointDaoImpl extends BaseDaoImpl implements UpointDao {
sqlMap.append("from U_PLCPOINT "); sqlMap.append("from U_PLCPOINT ");
sqlMap.append("where U_PLCPOINT_TYPE = :U_PLCPOINT_TYPE "); sqlMap.append("where U_PLCPOINT_TYPE = :U_PLCPOINT_TYPE ");
sqlMap.setParamValue("U_PLCPOINT_TYPE", type); sqlMap.setParamValue("U_PLCPOINT_TYPE", type);
sqlMap.append("order by U_PLCPOINT_CODE "); sqlMap.append("order by U_PLCPOINT_NAME ");
return sqlMap.query(Upoint.class); return sqlMap.query(Upoint.class);
} }
} }
...@@ -438,12 +438,12 @@ ...@@ -438,12 +438,12 @@
} }
.allnav-left{ .allnav-left{
float: left; float: left;
width: 50%; width: 40%;
margin-top: 0.1rem; margin-top: 0.1rem;
} }
.allnav-right{ .allnav-right{
float: right; float: right;
width: 50%; width: 60%;
height: 100%; height: 100%;
} }
.allnav-circle li{ .allnav-circle li{
...@@ -464,7 +464,7 @@ ...@@ -464,7 +464,7 @@
.allnav-right ul li{ .allnav-right ul li{
height: 25%; height: 25%;
float: left; float: left;
width: 25%; width: 20%;
text-align: center; text-align: center;
} }
.allnav-right ul li>div{ .allnav-right ul li>div{
......
...@@ -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', {gzzxid: a.id}, function(res){ 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)
} }
}); });
} }
...@@ -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)
} }
}); });
} }
......
...@@ -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);
......
...@@ -91,6 +91,8 @@ ...@@ -91,6 +91,8 @@
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
</ul> </ul>
</div> </div>
</div> </div>
......
...@@ -108,6 +108,8 @@ ...@@ -108,6 +108,8 @@
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
</ul> </ul>
</div> </div>
</div> </div>
......
...@@ -227,6 +227,8 @@ ...@@ -227,6 +227,8 @@
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li> <li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
</ul> </ul>
</div> </div>
</div> </div>
......
[Application] [Application]
version=1.0.0.9 version=1.0.0.11
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment