7c168bb4deb77ff22f178e1b8091446fde674e29..6140eb0f56b7adae1d4e41dbd4a1ac582dd17d9b
2025-03-12 spring
Merge branch 'dev' of http://114.132.189.42:9002/r/center-lims-before-ruoyi...
6140eb 对比 | 目录
2025-03-12 spring
人员修改
0f139a 对比 | 目录
已修改3个文件
47 ■■■■ 文件已修改
src/api/cnas/personnel/personnelInfo.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/CNAS/personnel/personnelInfo/Department/components/PersonnelInformation/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/CNAS/personnel/personnelInfo/Department/components/PersonnelList/index.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/cnas/personnel/personnelInfo.js
@@ -57,7 +57,7 @@
// 修改人员明细所在组织架构
export function upUserDepardLimsId(data) {
  return request({
    url: "/user/upUserDepardLimsId",
    url: "/system/newUser/upUserDepardLimsId",
    method: "post",
    data: data,
  });
src/views/CNAS/personnel/personnelInfo/Department/components/PersonnelInformation/index.vue
@@ -787,17 +787,15 @@
      })
    },
    beforeAvatarUpload(file) {
      const isJPGorPNG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif';
      const isLt2MB = file.size / 1024 / 1024 < 2;
      if (!isJPGorPNG) {
        this.$message.error('上传图片只能是 JPG/PNG 格式!');
        return false;
      let flag = true
      if (file.size > 1024 * 1024 * 10) {
        this.$message.error('上传文件不超过10M');
        this.$refs.upload.clearFiles()
        flag = false
      }
      // if (!isLt2MB) {
      //   this.$message.error('上传图片大小不能超过 2MB!');
      // }
      // 校验通过才返回 true,允许文件上传
      return isJPGorPNG && isLt2MB;
      if (!flag) {
        return Promise.reject(flag); //正确的终止
      }
    },
    downloadFile(fileName) {
      this.$download.saveAs(fileName, fileName)
@@ -849,8 +847,11 @@
    },
    // 取人员分类的字典
    getComparisonList() {
      tthis.personnelClassification = this.dict.type.personnl_type;
      this.checkList = this.form.personnelClassification.split(',')
      // 文件状态
      this.getDicts("personnl_type").then((response) => {
        this.personnelClassification = this.dictToValue(response.data);
        this.checkList = this.form.personnelClassification ? this.form.personnelClassification.split(',') : []
      });
    },
    clickPersonnelClassificationSure() {
      this.dialogVisible = false
src/views/CNAS/personnel/personnelInfo/Department/components/PersonnelList/index.vue
@@ -58,17 +58,17 @@
    </div>
    <el-dialog :visible.sync="selectUserDia" title="选择用户" width="70%">
      <div class="search" style="margin-bottom: 9px;">
        <div class="search_thing">
        <div class="search_thing" style="display: flex;">
          <div class="search_label">用户名:</div>
          <div class="search_input">
            <el-input v-model="queryParams.name" clearable placeholder="请输入" size="small"
              @keyup.enter.native="getList()" style="width: 200px;"></el-input>
              @keyup.enter.native="getList()" style="width: 150px;"></el-input>
          </div>
        </div>
      </div>
      <div v-if="selectUserDia" class="body" style="height: 60vh;">
        <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" :height="'calc(100vh - 290px)'"
          :page="personPage" @pagination="pagination" :isSelection="true"
        <lims-table :tableData="personTableData" :column="column" :tableLoading="tableLoading"
          :height="'calc(100vh - 290px)'" :page="personPage" :isSelection="true"
          :handleSelectionChange="handleSelectionChange"></lims-table>
      </div>
      <span slot="footer" class="dialog-footer">
@@ -139,7 +139,7 @@
      queryParams: {
        name: ''
      },
      tableData: [],
      personTableData: [],
      column: [
        { label: "姓名", prop: "name" },
        { label: "账号", prop: "account" },
@@ -210,8 +210,10 @@
    refreshTable(entity, type) {
      try {
        this.tableLoading = true;
        this.entity.departLimsId = this.departId;
        basicInformationOfPersonnelSelectPage({ ...this.page, ...this.entit }).then(res => {
        this.entity.departmentId = this.departId;
        let params = { ...this.page, ...this.entity }
        delete params.total
        basicInformationOfPersonnelSelectPage(params).then(res => {
          this.tableLoading = false;
          if (res.code === 201) {
            return;
@@ -297,8 +299,7 @@
        .then((res) => {
          this.tableLoading = false;
          if (res.code === 200) {
            this.tableData = res.data.records;
            this.personPage.total = res.data.total;
            this.personTableData = res.data;
          }
        })
        .catch((err) => {
@@ -313,7 +314,6 @@
    handleDown() {
      this.outLoading = true;
      let entity = this.HaveJson(this.entity)
      delete entity.orderBy;
      exportPersonBasicInfo(entity).then(res => {
        this.outLoading = false;
        if (res.code === 201) {