Kaynağa Gözat

空格转换 搜索下拉框

yingjie 9 yıl önce
ebeveyn
işleme
98e1eedb5d

+ 1 - 0
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/integration/appIndexJs.jsp

@ -221,6 +221,7 @@
      });
    },
    config: function (code,pid,status,rowindex) {
      debugger
      standard.list.grid.select(rowindex);//选中行
      var row = standard.list.grid.getParent(standard.list.grid.getSelectedRow());
      var rootRow =  standard.list.grid.getParent(standard.list.grid.getParent(standard.list.grid.getSelectedRow()));

+ 0 - 2
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/integration/configurationJs.jsp

@ -3,7 +3,6 @@
<link href="${contextRoot}/develop/lib/select2/select2.min.css" rel="stylesheet">
<script src="${contextRoot}/develop/lib/select2/select2.js"></script>
<script >
  (function ($, win) {
      /* ************************** 全局变量定义 **************************** */
      var status = $("#publish_status").val();
      var Util = $.Util;
@ -730,5 +729,4 @@
        $(function () {
          pageInit();
        });
  })(jQuery, window);
</script>

+ 2 - 1
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/integration/dataset/updateMetadata.jsp

@ -56,7 +56,8 @@
          <label>对应字典:</label>
        </td>
        <td class="td-left">
          <input id="sel_dict" type="hidden" class="max-length-50 validate-special-char f-pl5" style="width: 240px;" data-attr-scan="dictId" data-type="select"/>
          <select id="sel_dict" type="hidden" class="js-example-basic-multiple"  data-attr-scan="dictId">
          </select>
        </td>
      </tr>
      <tr>

+ 22 - 4
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/integration/dataset/updateMetadataJs.jsp

@ -7,6 +7,9 @@
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@include file="/WEB-INF/ehr/commons/jsp/commonInclude.jsp" %>
<link href="${contextRoot}/develop/lib/select2/select2.min.css" rel="stylesheet">
<script src="${contextRoot}/develop/lib/select2/select2.js"></script>
<script >
  (function ($, win) {
        var standard = {};
@ -26,9 +29,24 @@
            var version =  $("#std_version").val();
            var metadataId =  $("#metadata_id").val();
            $("#sel_dict").ligerComboBox({url : u._url+"/standardCenter/getDicts?stdVersion="+version ,
              cancelable:false,
             });
            $.ajax({
              url:u._url+"/standardCenter/getDicts?stdVersion="+version,
              type:"post",
              dataType: "json",
              success:function (data) {
                debugger;
                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").select2();
                }
              }
            });
            if(type==""){//查看数据元信息
              u.$div_see_metadata_info_form.show();
@ -44,7 +62,6 @@
                data: {datasetId: datasetId,stdVersion:version,metadataId:metadataId},
                success: function (data) {
                  if(data.successFlg){
                    debugger
                    if(type=="modify"){//修改数据元信息
                      u.$type_form.attrScan();
                      u.$type_form.Fields.fillValues({
@ -129,6 +146,7 @@
            dataJson[0]["standardId"] = Number(standardId);
            dataJson[0]["primaryKey"] = $("#ck_primaryKey").prop("checked")==true?1:0;
            dataJson[0]["nullable"] = $("#ck_nullable").prop("checked")==true?1:0;
            debugger
            if($("#type").val()=="modify"){//修改
              _url = $("#hd_url").val() + "/standardCenter/updateMetadata";
              dataJson[0]["id"] = Number(id);