应急管理厅专家管理系统
zhouwx
2 days ago b6740c65ba8485fc281f0cf38028497b92fbdc94
src/views/safetyReview/projectManage/components/chooseExpert.vue
@@ -9,7 +9,7 @@
            placeholder="请输入专家总人数"
            style="width: 150px;"
            @input="queryParams.num = queryParams.num.replace(/[^0-9]/g,'')"
            :disabled="!state.isAble || state.newProgress >=3 "
            :disabled="!state.isAble || state.newProgress >=3 || !state.isAbleNum"
        >
        </el-input>
@@ -35,7 +35,7 @@
        <el-table-column label="身份证号" prop="idCard" align="center" />
        <el-table-column label="等级" prop="ratingLevel" align="center" >
          <template #default="scope">
            <span>{{scope.row.ratingLevel == 1 ?'一级':scope.row.ratingLevel == 1?'二级':'三级'}}</span>
            <span>{{scope.row.ratingLevel == 1 ?'一级':scope.row.ratingLevel == 1?'二级':scope.row.ratingLevel == 3?'三级':scope.row.ratingLevel == 10?'库外':''}}</span>
          </template>
        </el-table-column>
        <el-table-column label="专业领域" prop="domain" align="center" />
@@ -116,7 +116,7 @@
        <el-table-column label="身份证号" prop="idCard" align="center" />
        <el-table-column label="等级" prop="ratingLevel" align="center" >
          <template #default="scope">
           <span>{{scope.row.ratingLevel == 1 ?'一级':scope.row.ratingLevel == 2?'二级': scope.row.ratingLevel == 3?'三级' :'' }}</span>
           <span>{{scope.row.ratingLevel == 1 ?'一级':scope.row.ratingLevel == 1?'二级':scope.row.ratingLevel == 3?'三级':scope.row.ratingLevel == 10?'库外':''}}</span>
          </template>
        </el-table-column>
        <el-table-column label="专业领域" prop="domain" align="center" />
@@ -188,7 +188,8 @@
  projectId: null,
  newProgress: null,
  randomNum:0,
  isAble: true
  isAble: true,
  isAbleNum: true
})
const choosedRandomList = ref([])
const userInfo = ref()
@@ -252,6 +253,9 @@
        state.randomNum = Number(item.randomNum)
      }
    })
  }
  if(state.randomNum > 0){
    state.isAbleNum = false
  }
  if(state.randomNum == 3){
      state.isAble = false
@@ -647,6 +651,7 @@
  }
}
const random = async () => {
  console.log('first',firstRandomList.value)
    firstRandomList.value.forEach(item => {
@@ -694,6 +699,9 @@
      randomNum: state.randomNum
    }
    saveObjectToLocalStorage('randomNum',obj)
    if(state.randomNum > 0){
      state.isAbleNum = false
    }
    if(state.randomNum == 3){
      state.isAble = false
    }