zhouwx
4 天以前 592c1750b148874737cdfba4b22b6229f9805fe6
src/views/build/conpanyFunctionConsult/orgStructure/dutyDistributeChart/index.vue
@@ -116,7 +116,6 @@
    data.queryParams.companyId = userStore.companyId
    data.form.companyId = userStore.companyId
  }
  await getDeptList()
  await getList()
})
@@ -148,6 +147,11 @@
}
const confirmEdit = async ()=>{
  if(data.form.list.length == 0){
    data.isEdit = !data.isEdit
    await getList()
    return
  }
  loading.value = true
  const res = await saveDistribution(data.form)
  if(res.code == 200){
@@ -156,6 +160,7 @@
    ElMessage.warning(res.message)
  }
  loading.value = false
  await getList()
  data.isEdit = !data.isEdit
}
@@ -169,13 +174,14 @@
    if (columnIndex === 0) {
      return [1, 1]
    } else if(columnIndex === 1){
      return [1,8]
      return [1,900]
    }
  }
}
const getList = async () => {
  loading.value = true
  await getDeptList()
  const res = await getDistribution(data.queryParams)
  if(res.code == 200){
    data.dataList = res.data
@@ -248,13 +254,14 @@
}
/** 重置新增的表单以及其他数据  */
function reset() {
const reset= async()=> {
  data.queryParams = {
    pageNum: 1,
    pageSize: 10,
    companyId: null
  }
  getList()
  await getCompanyList()
  await getList()
}
const handleDelete = (val) => {
  ElMessageBox.confirm(