reedliuqing_i há 5 anos atrás
pai
commit
8f5d6c5e4d

+ 2 - 4
src/views/projectManage/requirement/details/index.vue

@@ -181,10 +181,10 @@
       <div style="margin:0 2%;padding: 2% 0;border-bottom: 1px solid #D8D8D8;font-size: 14px;color: #333333">排期汇总:{{ getScheduleCollect() }}</div>
       <el-row style="margin: 2%;font-size: 14px;color: #333333">
         <el-col :span="8">
-          <div v-for="(item,index) in task.preOnlineVersion" :key="index" style="margin-bottom:10px"> <span :style="{visibility: index===0?'visible ':'hidden'}">预期上线版本:</span>{{ item }}</div>
+          <div v-for="(item,index) in task.preOnlineVersion" :key="index" style="margin-bottom:10px"> <span :style="{visibility: index===0?'visible ':'hidden'}">预期上线版本</span>{{ item }}</div>
         </el-col>
         <el-col :span="16">
-          <div v-for="(item,index) in task.preOnlineVersion" :key="index" style="margin-bottom:10px"> <span :style="{visibility: index===0?'visible ':'hidden'}">实际上线版本:</span>{{ item }}</div>
+          <div v-for="(item,index) in task.preOnlineVersion" :key="index" style="margin-bottom:10px"> <span :style="{visibility: index===0?'visible ':'hidden'}">实际上线版本</span>{{ item }}</div>
         </el-col>
       </el-row>
     </el-main>
@@ -522,8 +522,6 @@ export default {
         id: this.id
       }).then(res => {
         this.task = res.data
-        this.task.preOnlineVersion = ['123', '123', '456']
-        console.log(this.task)
         this.tableData = res.data.taskDetails
         this.loading.table = false
       })

+ 1 - 1
src/views/projectManage/requirement/list/create.vue

@@ -82,7 +82,7 @@
             <el-input v-model="form.mrdUrl" placeholder="请粘贴PRD链接" />
           </el-form-item>
           <el-form-item v-show="form.dependOnRelease" label="涉及的客户端" prop="referredClientType">
-            <el-select v-model="form.referredClientType" multiple placeholder="请选择">
+            <el-select v-model="form.referredClientType" multiple placeholder="请选择,多选">
               <el-option
                 v-for="item in info.appClient"
                 :key="item.code"

+ 19 - 30
src/views/projectManage/requirement/list/index.vue

@@ -135,30 +135,35 @@
             <div class="div_priority" :style="{background: priorityColors[scope.row.priority % priorityColors.length]}">{{ 'P'+scope.row.priority }}</div>
           </template>
         </el-table-column>
-        <el-table-column prop="name" label="需求名称" min-width="15%">
+        <el-table-column prop="name" label="需求名称" min-width="18%">
           <template v-slot="scope">
             <div style="cursor: pointer;" @click="getToRequirementDetails(scope.row.id)">{{ scope.row.name }}</div>
           </template>
         </el-table-column>
-        <el-table-column prop="belongingProjectName" label="归属的项目" min-width="10%">
+        <el-table-column prop="bizId" label="业务线" min-width="10%">
           <template v-slot="scope">
-            {{ getProjectName(scope.row.belongingProject) }}
+            {{ getBizName(scope.row.bizId) }}
           </template>
         </el-table-column>
-        <el-table-column prop="bizId" label="业务线" min-width="10%">
+        <el-table-column prop="sourceType" label="需求来源" min-width="10%">
           <template v-slot="scope">
-            {{ getBizName(scope.row.bizId) }}
+            {{ sourceTypeOb[scope.row.sourceType] }}
           </template>
         </el-table-column>
-        <el-table-column prop="pm" label="产品" min-width="10%">
+        <el-table-column prop="belongingProjectName" label="归属的项目" min-width="10%">
+          <template v-slot="scope">
+            {{ getProjectName(scope.row.belongingProject) }}
+          </template>
+        </el-table-column>
+        <el-table-column prop="pm" label="PM" min-width="10%">
           <template v-slot="scope">
             {{ scope.row.pm[0]?scope.row.pm[0].name:'无' }}
           </template>
         </el-table-column>
         <el-table-column prop="taskCount" label="任务总数" min-width="8%" />
         <el-table-column prop="bugCount" label="bug总数" min-width="8%" />
-        <el-table-column prop="creator" label="创建人" min-width="10%" />
-        <el-table-column prop="createTime" label="创建时间" min-width="10%">
+        <el-table-column prop="creator" label="创建人" min-width="8%" />
+        <el-table-column prop="createTime" label="创建时间" min-width="8%">
           <template v-slot="scope">{{ getcreateTime(scope.row.createTime) }}</template>
         </el-table-column>
       </el-table>
@@ -207,6 +212,7 @@ export default {
       },
       projectOb: {},
       bizTypeOb: {},
+      sourceTypeOb: {},
       searchForm: {
         name: null,
         belongingProject: null,
@@ -269,6 +275,9 @@ export default {
         for (const i in this.searchInfo.bizType) {
           this.bizTypeOb[this.searchInfo.bizType[i].code] = this.searchInfo.bizType[i].msg
         }
+        for (const i in this.searchInfo.sourceType) {
+          this.sourceTypeOb[this.searchInfo.sourceType[i].code] = this.searchInfo.sourceType[i].msg
+        }
       })
     },
     handleCommand(command) {
@@ -294,26 +303,6 @@ export default {
     getcreateTime(time) {
       return time.substring(2, 10).replace(/-/g, '/')
     },
-    getType(priority) {
-      let type
-      switch (priority) {
-        case 0:
-          type = 'danger'
-          break
-        case 1:
-          type = 'warning'
-          break
-        case 2:
-          type = ''
-          break
-        case 3:
-          type = 'success'
-          break
-        default:
-          type = 'info'
-      }
-      return type
-    },
     // 分页pageSize选择
     handleSizeChange: function(pageSize) {
       this.searchForm.pageSize = pageSize
@@ -340,7 +329,7 @@ export default {
         priority: null,
         pm: null,
         creator: null,
-        pageSize: 10,
+        pageSize: 15,
         curIndex: 1
       }
       this.searchTitle = {
@@ -349,7 +338,7 @@ export default {
         source: '需求来源',
         priority: '优先级'
       }
-      this.getTableData()
+      // this.getTableData()
     },
     getProjectName(id) {
       const ret = this.projectOb[id]