rushfee/resource/html/authtask/addcompany.html

83 lines
2.7 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false">
<head>
<title>分公司</title>
</head>
<body >
<div widget="toolbar" showCloseButton="false">
<a widget="button" iconCls="icon-save" id="savebtn" onclick="save" linkToState="editold,editnew">保存</a>
<a widget="button" iconCls="icon-enabled" id="savebtn" onclick="quanxuan" linkToState="editold,editnew">全选</a>
<a widget="button" iconCls="icon-disable" id="savebtn" onclick="buxuan" linkToState="editold,editnew">全不选</a>
</div>
<!-- <input widget="edit" name="org_id" visible="false"/> -->
<div style="clear:both">
<div name="company" label="分公司" widget="checkboxlist"
repeatitems="3" repeatlayout="table" textfield="name" valuefield="name" url="aisinoha/rule/getPersonOrgList">
</div>
</div>
<br/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(param){
var pageState = param['pageState'];
var company=param['company'];
if(company!=null){
aos.get('company').setValue(company);
}
}
function quanxuan(){
var params={
company: null
}
/* var data = "张熔熔,李海玲,魏帆,郭之芳,刘源,刘金帅,张孟迪,吴世秋,超级管理员,张敏,王腾,周宇飞,朱佳浩,郭鹏程,闫世杰,周娟,康怡清,赵娅含,刘鹏辉,杨成龙,万梦茹,郭廷一,杨世纪,程瑞月,康伟,巩莉,孟心如,申周鑫,李飞,王培培,测试,陈新,岳鑫浩,陈鹏,林佩宇,史晓莹,韩兴歌,徐康康,张良凯,刘鑫,禹智慧,申文莉,刘喜笑,李珊珊,司佳浩,李聪,高占琦,魏静茹,崔洺瑞,李燕1,耿晓静,付志强,申清清,张雨晴,汤婷婷,张阳阳,丁梦一,董小静,张凯文,张梦歌,申亚楠,张琦,姚丹丹,邱诗晴,应珂,王晨杰,鲁云鹏,周晓如,温家宝,梁儒娇,寿安琪,杨旭静,李鑫,李慧迪,姚康鑫,吴彩云,周雪莉,高一鸣,刘河森,徐璐可,张东梅,张永利,郭利妍,刘若林";
aos.get('feedback1').setValue(data); */
aos.post({
data: params,
url:"aisinoha/rule/getcompany",
success:function(data, textStatus, jqXHR){
//console.log(data);
//aos.alert(data.name);
aos.get('company').setValue(data.name);
}
});
}
function buxuan(){
aos.get('company').setValue();
}
function save(){
var params ={}
var company = aos.get('company').getValue();
if(company== null || company==''){
aos.alert('请添加公司!');
return ;
}
params['company']=company;
CloseWindow(params);
}
function RtnData(){
var RtnData ={}
var company = aos.get('company').getValue();
RtnData['company']=company;
return RtnData;}
</script>
</html>