Răsfoiți Sursa

资料查询页面上报调接口更改

duy 2 ani în urmă
părinte
comite
70db7b8124
1 a modificat fișierele cu 9 adăugiri și 0 ștergeri
  1. 9 0
      src/views/data-fill/query.vue

+ 9 - 0
src/views/data-fill/query.vue

@@ -188,6 +188,8 @@
                        :projectId="projectId"
                        :show="showReportModal"
                        :taskName="reportTaskName"
+                       :typeData="reportTypeData"
+                       type="wbs"
                        isDatas
                        title="批量上报审批"
                        url="informationWriteQuery/batchTask"
@@ -535,6 +537,7 @@ const tableRowName = (row) => {
 const reportIds = ref('')
 const reportTaskName = ref('')
 const reportDatas = ref([])
+const reportTypeData = ref([])
 const showReportModal = ref(false)
 const reportLoading = ref(false)
 const reportModalClick = async () => {
@@ -543,6 +546,12 @@ const reportModalClick = async () => {
     const result = rows.every(({status}) => {
         return status === 0 || status === 3
     })
+     //处理数据
+     let newArr = [];
+        for (let i = 0; i < rows.length; i++) {
+            newArr.push(rows[i]['wbsId'])
+        }
+    reportTypeData.value = newArr
     //判断状态
     if (result) {
         reportLoading.value = true