lkk
2024-12-27 724c4830ea23cd632802a2f76a318a16b309f8a2
滚动条
2个文件已修改
117 ■■■■ 已修改文件
src/views/hosp/project/index.vue 83 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/rules/index.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue
@@ -12,7 +12,22 @@
            style="margin-bottom: 15px"
          />
        </div>
        <el-scrollbar style="height: 629px; width: 100%">
        <div class="scrollable-container">
          <div class="content">
            <el-tree
              :data="deptOptions"
              :props="defaultProps"
              :expand-on-click-node="false"
              :filter-node-method="filterNode"
              ref="tree"
              node-key="id"
              :default-expanded-keys="treeId"
              highlight-current
              @node-click="handleNodeClick"
            />
          </div>
        </div>
        <!-- <el-scrollbar style="height: 629px; width: 100%">
          <div class="head-container">
            <el-tree
              :data="deptOptions"
@@ -26,7 +41,7 @@
              @node-click="handleNodeClick"
            />
          </div>
        </el-scrollbar>
        </el-scrollbar> -->
      </el-col>
      <el-col :span="20" :xs="24">
        <el-form
@@ -313,7 +328,7 @@
            @select="obtain"
          />
        </el-form-item>
        <el-form-item label="明细项目" prop="proName">
          <el-input v-model="form.proName" placeholder="请输入明细项目">
          </el-input>
@@ -506,7 +521,7 @@
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="结果类型" prop="resultType">
          <el-select
            v-model="form.resultType"
@@ -529,15 +544,22 @@
            style="display: inline-block; border-bottom: 2px solid blue"
            @click="getDetailed"
          >
          his项目名称
            his项目名称
          </span>
          <el-input v-model="form.hisXmmc" placeholder="his项目名称" style="width: 200px;">
          <el-input
            v-model="form.hisXmmc"
            placeholder="his项目名称"
            style="width: 200px"
          >
          </el-input>
        </el-form-item>
        <el-form-item label="his项目名称" prop="hisXmmc" v-if="key == 'N'">
          <el-input v-model="form.hisXmmc" placeholder="请输入明细项目" style="width: 260px;">
          <el-input
            v-model="form.hisXmmc"
            placeholder="请输入明细项目"
            style="width: 260px"
          >
          </el-input>
        </el-form-item>
        <el-form-item label="his编码" prop="hisXmbm">
@@ -563,10 +585,14 @@
            LIS项目
          </span>
          <el-input v-model="form.lisXmmc" placeholder="请输入LIS项目" style="width: 200px;">
          <el-input
            v-model="form.lisXmmc"
            placeholder="请输入LIS项目"
            style="width: 200px"
          >
          </el-input>
        </el-form-item>
        <el-form-item label="LIS编码" prop="lisXmbm">
          <el-input
            v-model="form.LISXmbm"
@@ -1038,8 +1064,8 @@
        sfxmId: "",
        lisXmbm: "",
        lisXmmc: "",
        proMetering:'',
        proScope:''
        proMetering: "",
        proScope: "",
      },
      // 表单校验
      rules: {
@@ -1139,8 +1165,8 @@
      };
      getAllChildListById(data).then((response) => {
        // this.projectList = this.handleTree(response.data.list, "proId");
        console.log(response,1122);
        console.log(response, 1122);
        this.projectList = response.data.list;
        this.loading = false;
      });
@@ -1156,9 +1182,9 @@
    /** 新增按钮操作 */
    handleAdd(row) {
      this.form.hisXmbm = '';
        this.form.hisXmmc = '';
        this.form.hisdj = '';
      this.form.hisXmbm = "";
      this.form.hisXmmc = "";
      this.form.hisdj = "";
      // this.reset();
      this.loading = true;
      this.proParent = false;
@@ -1227,8 +1253,8 @@
    // 打开input弹框
    getDetailed() {
      this.querycharge.xmmc = ''
      this.querycharge.pym = ''
      this.querycharge.xmmc = "";
      this.querycharge.pym = "";
      if (this.selectList) {
        if (this.selectList.proName === "主类目") {
          this.dialogTableVisible = false;
@@ -1622,8 +1648,8 @@
      const proId = row.proId || this.ids;
      this.proParent = false;
      getProject(proId).then((response) => {
        console.log(response,999);
        console.log(response, 999);
        this.form = response.data;
        if (this.form.proParentId === "0") {
          this.showPrise = true;
@@ -1906,6 +1932,21 @@
};
</script>
<style scoped>
.scrollable-container {
  width: 200px; /* 设置容器的宽度 */
  height: 629px; /* 设置容器的高度 */
  overflow: auto; /* 允许内容溢出时显示滚动条 */
  border: 1px solid #ccc; /* 可选:添加边框以更好地显示容器 */
  position: relative; /* 可选:使容器内的绝对定位元素能够正确显示 */
}
.content {
  width: 1000px; /* 设置内容的宽度,以触发水平滚动条 */
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
.el-table__header-wrapper .el-checkbox {
  display: none;
}
src/views/hosp/rules/index.vue
@@ -13,7 +13,22 @@
            style="margin-bottom: 20px"
          />
        </div>
        <el-scrollbar style="height: 629px; width: 100%">
        <div class="scrollable-container">
          <div class="content">
            <el-tree
              :data="deptOptions"
              :props="defaultProps"
              :expand-on-click-node="false"
              :filter-node-method="filterNode"
              ref="tree"
              node-key="id"
              :default-expanded-keys="treeId"
              highlight-current
              @node-click="handleNodeClick"
            />
          </div>
        </div>
        <!-- <el-scrollbar style="height: 629px; width: 100%">
          <div class="head-container">
            <el-tree
              :data="deptOptions"
@@ -27,7 +42,7 @@
              @node-click="handleNodeClick"
            />
          </div>
        </el-scrollbar>
        </el-scrollbar> -->
        <!-- <div class="head-tree">
          <el-tree
            ref="tree"
@@ -1282,6 +1297,21 @@
.pag1 {
  width: 30%;
}
.scrollable-container {
  width: 260px; /* 设置容器的宽度 */
  height: 629px; /* 设置容器的高度 */
  overflow: auto; /* 允许内容溢出时显示滚动条 */
  border: 1px solid #ccc; /* 可选:添加边框以更好地显示容器 */
  position: relative; /* 可选:使容器内的绝对定位元素能够正确显示 */
}
.content {
  width: 1000px; /* 设置内容的宽度,以触发水平滚动条 */
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
/* .guding {
  position: fixed;
  top: 20px;