Эх сурвалжийг харах

数据大盘:半浮层改造(1.0)

洪海涛 4 жил өмнө
parent
commit
acd7799e94

+ 10 - 0
src/views/dataBigManage/components/drawerModal/index.vue

@@ -48,6 +48,7 @@
       :column="column"
       :table-height="tableHeight"
       @click.stop
+      :key="tableKey"
       @change="dmTableChange"
     >
       <template #bugStatusNameSlot="{scope}">
@@ -173,6 +174,7 @@ export default {
       drawerBox: '',
       subTitle: '',
       sourceData: null,
+      tableKey: '123456',
       /* S 新增缺陷*/
       priorityList: [],
       /* E 新增缺陷*/
@@ -313,6 +315,7 @@ export default {
         if (this.headerTitle === '质量') {
           if (this.title.search(/新增缺陷|reopen/) > -1) {
             first = [...timelineList.newDefect]
+            firstActive = 0
           }
           if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
             first = [...timelineList.lineRate]
@@ -484,6 +487,7 @@ export default {
       this.ids = []
       if (index === 1) {
         if (this.headerTitle === '质量') {
+          this.timelineData.firstActive = value || 0
           if (this.title.search(/新增缺陷|reopen/) > -1) {
             this.ids = this.drawerData.IdList.map(e => e)
             this.priorityList = value ? [value - 1] : []
@@ -894,6 +898,12 @@ export default {
         pageTotal: 0,
         pageSize: Number.parseInt(pageSize)
       }
+      this.priorityList = []
+      this.timelineData = {
+        ...this.timelineData,
+        firstActive: 0,
+        secondActive: 0
+      }
     },
     // 设置表格高度
     setTitleHeight() {