chenrui  1 жил өмнө
parent
commit
e6371903a0

+ 7 - 1
src/views/statisticsCharts/components/tableformbrs.vue

@@ -1380,12 +1380,17 @@ export default {
             serviceId: Number(this.dataId),
             dataContent: this.dataContent,
           })
+          if (code == 0) {
+            this.tableData = returnData
+            this.tableCols = returnData.columnSet
+            this.serviceId = returnData.submitID
+            this.loading = false
+          }
         } else {
           const { code, returnData } = await TempQuery({
             id: Number(this.dataId),
             dataContent: this.dataContent,
         })
-        }
         if (code == 0) {
           if (returnData.listValues.length === 0) {
             this.page--
@@ -1534,6 +1539,7 @@ export default {
           this.loading = false
           this.$message.error('获取表格数据失败')
         }
+        }
       } catch (error) {
         this.page--
         this.loading = false

+ 10 - 11
src/views/statisticsCharts/views/report/workloadTable.vue

@@ -67,20 +67,19 @@ export default {
     Tableformbrs,
   },
   mounted() {
-    this.dataContent = [
-      '',
-      Format('yyyy-MM-dd', new Date()),
-      Format('yyyy-MM-dd', new Date()),
-    ]
+    this.dataContent = {
+      agentNumber:'',
+      fd1:Format('yyyy-MM-dd', new Date()),
+      fd2:Format('yyyy-MM-dd', new Date()),
+    }
   },
   methods: {
     getFormData(data) {
-      this.dataContent = []
-      this.dataContent.push(
-        data.agentNumber,
-        data.dateTime[0] ? data.dateTime[0] : '',
-        data.dateTime[1] ? data.dateTime[1] : ''
-      )
+      this.dataContent = {
+        agentNumber:data.agentNumber,
+        fd1: data.dateTime[0] ? data.dateTime[0] : '',
+        fd2: data.dateTime[1] ? data.dateTime[1] : ''
+      }
     },
     exportup() {
       this.isloadings = this.isloadings += 1