zhouwx
2025-06-24 df37a11663cd8c546fca1f471ecccb2258c707a0
src/views/build/conpanyFunctionConsult/qualityObjectives/reportsituation/index.vue
@@ -231,7 +231,11 @@
  const userInfo = JSON.parse(Cookies.get('userInfo'))
  console.log("userInfo",userInfo)
  data.isAdmin = userInfo.userType === 0;
  data.queryParams.companyId = userInfo.companyId
  if(data.isAdmin){
    data.queryParams.companyId = null
  }else {
    data.queryParams.companyId = userInfo.companyId
  }
  getList();
});
const getList = async () => {
@@ -406,7 +410,7 @@
  if (!/^\d+$/.test(value)) { // 验证是否为数字
    ElMessage.warning('只能输入数字')
    data.queryParams.year = '' // 重置选择,避免非法值被添加到options中
  } else if (!data.yearList.some(option => option.value === value)) { // 确保不是已存在的选项
  } else if (!data.yearList.some(option => option.label === value)) { // 确保不是已存在的选项
    data.yearList.push({ value, label: value }); // 添加新选项(这里简单地将值和标签设为相同)
  }
}