Prechádzať zdrojové kódy

标准管理-应用标准:查看应用版本的信息:其中标准编码的信息错误

yingjie 9 rokov pred
rodič
commit
a7c7e6bccf

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

@ -142,7 +142,7 @@
      }
      // 自适应宽度
     // u.grid.adjustToWidth();
      u.grid.expandAll();//展开全部expandAll(); 收缩全部collapseAll()
      u.grid.collapseAll();//展开全部expandAll(); 收缩全部collapseAll()
      window.grid = u.grid;
    },
    showDialog: function (_tital, _url, _height, _width, callback) {
@ -173,7 +173,6 @@
      standard.list.showDialog(_tital, _url, 500, 500, callback);
    },
    addVersion: function (pid,id,name,code,rowindex,type) {
      var _tital = "";
      if(type =="0"){
        _tital = "新增标准版本";
@ -182,10 +181,12 @@
      }else{
        _tital = "标准版本信息";
      }
      if(type != "0") {
        standard.list.grid.select(rowindex);//选中行
        var row = standard.list.grid.getParent(standard.list.grid.getSelectedRow());
        if(row!=null){//是父节点
      standard.list.grid.select(rowindex);//选中行
      var row = standard.list.grid.getParent(standard.list.grid.getSelectedRow());
      if(row!=null) {//是父节点
        code = $.parseJSON(JSON.stringify(row)).code;
        if(type != "0") {
          name = $.parseJSON(JSON.stringify(row)).name;//获取父节点的标准名称
        }
      }

+ 4 - 7
Hos-resource/src/main/webapp/WEB-INF/ehr/jsp/standard/integration/versionDetailJs.jsp

@ -21,7 +21,6 @@
        validator: null,
        baseversion_select: null,
        init: function () {
          var id = $.Util.getUrlQueryString('id').replace("standard","");
          var standardId = $.Util.getUrlQueryString('standardId')==null?"":$.Util.getUrlQueryString('standardId').replace("standard","");
          var name = $.Util.getUrlQueryString('name');
@ -33,7 +32,6 @@
          $("#txt_stdname").text(name);
          $("#txt_stdcode").text(code);
          $("#txt_seestdname").text(name);
            debugger;
          if(type=="0"){//新增
            this.$addform.show();
@ -45,8 +43,8 @@
            $("#div_abaseVersion").hide();
            this.getStandardVersionInfo(id,type);
          }else{//查看
            this.$seeform.show();debugger;
            this.getStandardVersionInfo(id,type);
            this.$seeform.show();
            this.getStandardVersionInfo(id,type,code);
          }
          this.event();
@ -56,7 +54,7 @@
            }
          });
        },
        getStandardVersionInfo: function (versionId,type) {//获取标准版本信息
        getStandardVersionInfo: function (versionId,type,code) {//获取标准版本信息
          var u = standard.version;
            versionId = Number(versionId.replace("version",""));
            $("#versionId").val(versionId+"");
@ -71,8 +69,7 @@
                        u.getBaseVersionList($("#standardId").val(),type);//获取基础版本下拉框信息
                        if(type == ""){//查看标准版本信息
                            $("#lbl_version").text(u._getData.version);
                            $("#lbl_version").text(code);
                            $("#lbl_primaryVersion").text(u._getData.primaryVersion);
                            <%
                             SystemUser user = (SystemUser) session.getAttribute("userInfo");