|
|
|
@ -79,6 +79,18 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label is-required">* 租户:</label>
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
|
<select data-placeholder="请选择租户" id="tenantId" name="tenantId" class="chosen-select" style="width:100%;" tabindex="4" required>
|
|
|
|
|
<option value=''>选择租户</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@ -119,6 +131,33 @@
|
|
|
|
|
checkboxClass: 'icheckbox_square-green',
|
|
|
|
|
radioClass: 'iradio_square-green',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
parent.axgetXiaoyao("${ctx}/backstage/admin/department/showDeptJsTree",null,false,function (data) {
|
|
|
|
|
$.each(data,function(name,anArray) {
|
|
|
|
|
console.log(anArray)
|
|
|
|
|
$("#tenantId").append("<option value='" + anArray.deptNo + "'>" + anArray.name + "</option>");
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var config = {
|
|
|
|
|
'.chosen-select': {},
|
|
|
|
|
'.chosen-select-deselect': {
|
|
|
|
|
allow_single_deselect: true
|
|
|
|
|
},
|
|
|
|
|
'.chosen-select-no-single': {
|
|
|
|
|
disable_search_threshold: 10
|
|
|
|
|
},
|
|
|
|
|
'.chosen-select-no-results': {
|
|
|
|
|
no_results_text: 'Oops, nothing found!'
|
|
|
|
|
},
|
|
|
|
|
'.chosen-select-width': {
|
|
|
|
|
width: "95%"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//for (var selector in config) {
|
|
|
|
|
// $(selector).chosen(config[selector]);
|
|
|
|
|
//}
|
|
|
|
|
_tableListDistionary = $('#Distionary_list').bootstrapTable({
|
|
|
|
|
url: '${ctx}/ocr/dictionary/list',
|
|
|
|
|
pagination: true, //是否显示分页(*)
|
|
|
|
@ -149,6 +188,8 @@
|
|
|
|
|
// { width:150,valign: "middle",field:'distionatygroupid',title:'数据字典分组主键',sortable:true},
|
|
|
|
|
{ width:150,valign: "middle",field:'value',title:'编码',sortable:true},
|
|
|
|
|
{ width:150,valign: "middle",field:'lable',title:'描述',sortable:true},
|
|
|
|
|
{ width:150,valign: "middle",field:'tenantName',title:'部门名称',sortable:true},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
width:200,
|
|
|
|
|
field: 'id',
|
|
|
|
@ -164,6 +205,15 @@
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.i-checks').iCheck({
|
|
|
|
|
checkboxClass: 'icheckbox_square-green',
|
|
|
|
|
radioClass: 'iradio_square-green',
|
|
|
|
|
});*/
|
|
|
|
|
|
|
|
|
|
$("#Distionaryform").attr("action","${ctx}/ocr/dictionary/save");
|
|
|
|
|
var distionaryForm1 = $('#Distionaryform');
|
|
|
|
|
var distionaryError1 = $('.alert-danger', distionaryForm1);
|
|
|
|
@ -198,6 +248,7 @@
|
|
|
|
|
},
|
|
|
|
|
success: function (label) {
|
|
|
|
|
label.closest('.form-group').removeClass('has-error');
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
submitHandler: function (){
|
|
|
|
|
parent.layer.load();
|
|
|
|
@ -241,10 +292,10 @@
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function _distionaryAdd(){
|
|
|
|
|
$("#Distionaryform")[0].reset();
|
|
|
|
|
showDistionaryModel();
|
|
|
|
|
$("#Distionaryform")[0].reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _distionaryUpdateData(jframeid,str){
|
|
|
|
|
|
|
|
|
|
parent.axgetXiaoyao('${ctx}/ocr/dictionary/getdata/' + str,null,false , function(data){
|
|
|
|
@ -252,10 +303,12 @@
|
|
|
|
|
$("#id").val(data.data.id);
|
|
|
|
|
$("#value").val(data.data.value);
|
|
|
|
|
$("#lable").val(data.data.lable);
|
|
|
|
|
$("#tenantId option[value='" + data.data.tenantId + "']").attr("selected",true);
|
|
|
|
|
showDistionaryModel();
|
|
|
|
|
}else{
|
|
|
|
|
parent.toastr.error("非法请求。");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|