|
@ -30,27 +30,6 @@
|
|
|
var version = $("#std_version").val();
|
|
|
var metadataId = $("#metadata_id").val();
|
|
|
|
|
|
$.ajax({
|
|
|
url:u._url+"/standardCenter/getDicts?stdVersion="+version,
|
|
|
type:"post",
|
|
|
dataType: "json",
|
|
|
success:function (data) {
|
|
|
if(data.successFlg){
|
|
|
var option = "";
|
|
|
var list = data.detailModelList;
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
option += '<option value="' +list[i].code+'">'+list[i].value+'</option>';
|
|
|
}
|
|
|
$("#sel_dict").html(option);
|
|
|
$("#sel_dict").val(dictId);
|
|
|
$("#sel_dict").select2();
|
|
|
$("#see_dict").text($("#sel_dict").find("option:selected").text());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if(type==""){//查看数据元信息
|
|
|
u.$div_see_metadata_info_form.show();
|
|
|
}else{
|
|
@ -115,7 +94,7 @@
|
|
|
$("#see_ck_nullable").prop('checked', true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
u.setDictValue(version);
|
|
|
}else{
|
|
|
$.ligerDialog.error(data.message);
|
|
|
}
|
|
@ -133,6 +112,29 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
setDictValue:function(version){
|
|
|
var self = this;
|
|
|
$.ajax({
|
|
|
url:self._url+"/standardCenter/getDicts?stdVersion="+version,
|
|
|
type:"post",
|
|
|
dataType: "json",
|
|
|
success:function (data) {
|
|
|
if(data.successFlg){
|
|
|
var option = "";
|
|
|
var list = data.detailModelList;
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
option += '<option value="' +list[i].code+'">'+list[i].value+'</option>';
|
|
|
}
|
|
|
$("#sel_dict").html(option);
|
|
|
$("#sel_dict").val(dictId);
|
|
|
$("#sel_dict").select2();
|
|
|
$("#see_dict").text($("#sel_dict").find("option:selected").text());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
save: function () {
|
|
|
if(!this.validator.validate()){
|
|
|
return;
|