소스 검색

优化缺陷

qinzhipeng_v 5 년 전
부모
커밋
214547b5a2
3개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      src/router/index.js
  2. 4 1
      src/views/projectManage/bugList/file/createdBug.vue
  3. 1 1
      src/views/projectManage/version/list/index.vue

+ 1 - 0
src/router/index.js

@@ -378,6 +378,7 @@ export const constantRoutes = [{
   path: '/onlineProblem',
   path: '/onlineProblem',
   name: '线上问题',
   name: '线上问题',
   component: Layout,
   component: Layout,
+  hidden: true,
   redirect: '/onlineProblem/problemList',
   redirect: '/onlineProblem/problemList',
   meta: { title: '线上问题', icon: '线上问题' },
   meta: { title: '线上问题', icon: '线上问题' },
   children: [
   children: [

+ 4 - 1
src/views/projectManage/bugList/file/createdBug.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div class="Parent">
   <div class="Parent">
-    <el-dialog :visible.sync="modalShow" width="60%" top="8vh" :close-on-click-modal="false" @close="modalClose">
+    <el-dialog ref="modalShow" :visible.sync="modalShow" width="60%" top="8vh" :close-on-click-modal="false" @close="modalClose">
       <el-form ref="formInline" label-position="left" :model="formInline" :rules="rules" label-width="90px">
       <el-form ref="formInline" label-position="left" :model="formInline" :rules="rules" label-width="90px">
         <el-row style="margin: 0 4% 2% 4%;">
         <el-row style="margin: 0 4% 2% 4%;">
           <el-col :span="24">
           <el-col :span="24">
@@ -252,6 +252,9 @@ export default {
       if (e === 1) {
       if (e === 1) {
         this.titleName = '新建缺陷'
         this.titleName = '新建缺陷'
         if (ele !== undefined) {
         if (ele !== undefined) {
+          this.$nextTick(function() {
+            this.$refs.modalShow.resetFields()
+          })
           this.$set(this.formInline, 'taskId', ele.id)
           this.$set(this.formInline, 'taskId', ele.id)
           this.$set(this.formInline, 'cliType', [ele.bizId, ele.type, ele.clientType])
           this.$set(this.formInline, 'cliType', [ele.bizId, ele.type, ele.clientType])
         }
         }

+ 1 - 1
src/views/projectManage/version/list/index.vue

@@ -55,7 +55,7 @@
             <template v-slot="scope">
             <template v-slot="scope">
               <div>
               <div>
                 <el-tooltip class="item" effect="dark" placement="bottom" :content="scope.row.requirementName" :disabled="scope.row.requirementName.length < 6">
                 <el-tooltip class="item" effect="dark" placement="bottom" :content="scope.row.requirementName" :disabled="scope.row.requirementName.length < 6">
-                  <div style="cursor: pointer;" @click="getToRequirementDetails(scope.row.id)">
+                  <div style="cursor: pointer;" @click="getToRequirementDetails(scope.row.requirementId)">
                     {{ getRequirementName(scope.row.requirementName) }}
                     {{ getRequirementName(scope.row.requirementName) }}
                     <div v-if="scope.row.delay" class="div_requirement_name">{{ searchTitle.version +'版本已延期' }}</div>
                     <div v-if="scope.row.delay" class="div_requirement_name">{{ searchTitle.version +'版本已延期' }}</div>
                   </div>
                   </div>