reedliuqing_i 5 tahun lalu
induk
melakukan
17ffd62430

+ 5 - 4
src/layout/index.vue

@@ -1,9 +1,9 @@
 <template>
-  <div :class="classObj" class="app-wrapper">
+  <div :class="classObj" class="app-wrapper" @click="listenClick">
     <div v-if="device==='mobile'&&sidebar.opened" class="drawer-bg" @click="handleClickOutside" />
-    <sidebar class="sidebar-container" @click.native="listenClick()" />
+    <sidebar class="sidebar-container" />
     <div class="main-container">
-      <div :class="{'fixed-header':fixedHeader}" @click="listenClick()">
+      <div :class="{'fixed-header':fixedHeader}">
         <navbar />
       </div>
       <app-main />
@@ -43,7 +43,8 @@ export default {
     }
   },
   methods: {
-    listenClick() {
+    listenClick(event) {
+      console.log(event)
       this.$store.dispatch('app/addClickCount')
     },
     handleClickOutside() {

+ 10 - 18
src/views/projectManage/bugList/bugindex.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-container class="bgColor" @click.native="listenClick()">
+    <el-container class="bgColor">
       <el-header v-if="type === 'page'" style="height: auto; margin-top: 1%; padding: 0 1%;">
         <el-row class="headerBg">
           <el-col :span="24" class="Layout">
@@ -371,7 +371,7 @@
                   <br>
                   <span
                     class="bugNameSty"
-                    @click="click_bugName(scope.row.id)"
+                    @click.stop="click_bugName(scope.row.id)"
                   >{{ scope.row.bugName }}</span>
                 </template>
               </el-table-column>
@@ -414,8 +414,9 @@
       :with-header="false"
       size="50%"
       class="bug_manage_drawer"
+      @click.stop
     >
-      <div>
+      <div @click.stop>
         <bug-details
           :id="bugQuery.id+''"
           ref="bugDetails"
@@ -527,7 +528,11 @@ export default {
     }
   },
   created() {
-    this.getBugList()
+    if (this.type === 'page') {
+      this.getBugList()
+    } else {
+      this.getBugSelfList(2, 10)
+    }
     this.bugListSelect()
     this.$store.state.data.status = true
   },
@@ -535,17 +540,6 @@ export default {
     this.$store.state.data.status = false
   },
   methods: {
-    listenClick() {
-      this.isBugNameClick = false
-      setTimeout(() => {
-        if (this.isBugNameClick) {
-          this.drawerShow = true
-        } else {
-          this.drawerShow = false
-          this.$store.state.data.status = true
-        }
-      }, 500)
-    },
     getBugList() {
       this.indexPage = this.formInline
       this.indexPage.bizId = Number(localStorage.getItem('bizId'))
@@ -665,9 +659,7 @@ export default {
         JSON.stringify(this.tableData.filter(value => value.id === e)[0])
       )
       this.initCount++
-      setTimeout(() => {
-        this.isBugNameClick = true
-      }, 300)
+      this.drawerShow = true
     },
     createdDefect() {
       this.modalShow = true

+ 5 - 17
src/views/projectManage/taskList/taskViewDetails.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <div class="bgbugTa" style="background-color:#F2F3F6;display:flex;align-items: center;justify-content: center;">
-      <el-container @click.native="listenClick()">
+      <el-container>
         <div v-if="isHeadShow" style="width:98%;margin:1% auto 0 auto;height:53px;background:rgba(255,255,255,1);border-radius:7px;color:#F56C6C;font-size:16px;display: flex;align-items: center;">
           <i class="el-icon-warning-outline" style="margin-left: 20px;" />
           <span style="margin-left: 4px;">请将排期事件里的排期填写完整,否则无法判断任务健康状态,健康状态会显示未知。</span>
@@ -274,7 +274,7 @@
                 <el-table-column prop="bugName" label="缺陷标题" min-width="180" align="left" show-overflow-tooltip>
                   <template slot-scope="scope">
                     <span style=" color: #A7AEBC; font-size; 12px;">{{ 'BUG-' + scope.row.id }}</span><br>
-                    <span class="bugNameSty" @click="click_bugName(scope.row.id)">{{ scope.row.bugName }}</span>
+                    <span class="bugNameSty" @click.stop="click_bugName(scope.row.id)">{{ scope.row.bugName }}</span>
                   </template>
                 </el-table-column>
                 <el-table-column prop="bizName" label="业务线" align="center" />
@@ -532,8 +532,9 @@
       :with-header="false"
       size="50%"
       class="bug_manage_drawer"
+      @click.stop
     >
-      <div>
+      <div @click.stop>
         <bug-details :id="bugId + ''" ref="bugDetails" :init-count="initCount + ''" :type="'drawer'" @close="drawerShow = false" @delete="drawerShow = false;bug_list(codeCache)" @update="bug_list(codeCache)" />
       </div>
     </el-drawer>
@@ -705,23 +706,10 @@ export default {
     this.get_echarts()
   },
   methods: {
-    listenClick() {
-      this.isBugNameClick = false
-      setTimeout(() => {
-        if (this.isBugNameClick) {
-          this.drawerShow = true
-        } else {
-          this.drawerShow = false
-          // this.$store.state.data.status = true
-        }
-      }, 500)
-    },
     click_bugName(id) {
       this.bugId = id
       this.initCount++
-      setTimeout(() => {
-        this.isBugNameClick = true
-      }, 300)
+      this.drawerShow = true
     },
     test2(item, e) {
       // 获取团队人员信息

+ 1 - 3
src/views/workbench/person/index.vue

@@ -352,9 +352,6 @@ export default {
   created() {
     this.init()
   },
-  mounted() {
-    this.selectBugList(2)
-  },
   methods: {
     init() {
       this.showTeamAndMemberEnum()
@@ -363,6 +360,7 @@ export default {
         })
       this.queryWorkList()
     },
+    // type: 1 我提报的 2 待我处理
     selectBugList(type) {
       const pageSize = 10
       this.$refs.bugList.getBugSelfList(type, pageSize)