wenbobowen преди 4 години
родител
ревизия
6d646f0602
променени са 2 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 5 0
      src/views/projectManage/bugList/details/bugTableDialog.vue
  2. 1 1
      src/views/projectManage/requirement/requirementDetail.vue

+ 5 - 0
src/views/projectManage/bugList/details/bugTableDialog.vue

@@ -166,6 +166,10 @@ export default {
     }
     }
   },
   },
   props: {
   props: {
+    searchBiz: {
+      type: Boolean,
+      default: true
+    },
     noShow: {
     noShow: {
       type: String,
       type: String,
       default: '',
       default: '',
@@ -329,6 +333,7 @@ export default {
       this.data.pageSize = this.pageSize
       this.data.pageSize = this.pageSize
       this.data.curIndex = this.curIndex
       this.data.curIndex = this.curIndex
       const query = Object.assign(this.data, this.eleId)
       const query = Object.assign(this.data, this.eleId)
+      if (!this.searchBiz) delete query.bizId
       bugList(query).then(res => {
       bugList(query).then(res => {
         if (res.code === 200) {
         if (res.code === 200) {
           this.tableData = res.data.map(item => { return { ...item, isSelected: false } })
           this.tableData = res.data.map(item => { return { ...item, isSelected: false } })

+ 1 - 1
src/views/projectManage/requirement/requirementDetail.vue

@@ -248,7 +248,7 @@
       <!-- 缺陷 -->
       <!-- 缺陷 -->
       <el-container v-if="activeName === '3'" class="is-vertical">
       <el-container v-if="activeName === '3'" class="is-vertical">
         <section class="main-section contain">
         <section class="main-section contain">
-          <bug-table-dialog ref="bugTableDialog" :show-hide="true" no-show="requoirementName" :obj-id="bugListQuery" />
+          <bug-table-dialog ref="bugTableDialog" :search-biz="false" :show-hide="true" no-show="requoirementName" :obj-id="bugListQuery" />
         </section>
         </section>
       </el-container>
       </el-container>
       <!-- 缺陷 -->
       <!-- 缺陷 -->