qinzhipeng_v@didiglobal.com 4 år sedan
förälder
incheckning
14f46bedaa

+ 1 - 1
src/views/quality/components/drawerAll.vue

@@ -22,7 +22,7 @@
       <div v-if="Statistics.title === `${Statistics.qz_holiday}的修复时长区间数据`" class="qz-drawer-H" style="margin: 20px 30px 10px;">
         {{ Statistics.qz_holiday }}修复时间区间为<span class="fontSize">{{ type }}</span>的<span class="fontSize">{{ typeTow }}</span>级缺陷
       </div>
-      <qzTable :data="tableData" :title="Statistics.title" :type="Statistics.toType" />
+      <qzTable :data="tableData" :title="Statistics.title" :type="Statistics.title === '需求分布图数据' || Statistics.title === '任务分布图数据' ? status : Statistics.toType" :oftype="type" />
     </div>
     <el-pagination
       style="text-align: right; margin-right: 30px;"

+ 36 - 10
src/views/quality/components/tables/index.vue

@@ -6,21 +6,46 @@
           <span class="div_priority" :style="{background: priorityColors[scope.row.priority % priorityColors.length]}">{{ 'P'+scope.row.priority }}</span>
         </template>
       </el-table-column>
-      <el-table-column :label="`${type}名称`" min-width="360" align="left" show-overflow-tooltip>
+      <el-table-column v-if="type === '需求' || type === '需求状态' || type === '需求等级' || type === '需求类型' || title === '需求分布图数据' && type === '跟版客户端' || type === 'pm'" label="需求名称" min-width="360" align="left" show-overflow-tooltip>
         <template slot-scope="scope">
-          <div v-if="type === '需求'" class="drawer-id">{{ scope.row.requirementDisplayId }}</div>
-          <div v-if="type === '任务'" class="drawer-id">{{ scope.row.taskIdSting }}</div>
-          <div class="drawer-name" @click="jumper(scope.row, type)">{{ scope.row.name }}</div>
+          <div class="drawer-id">{{ scope.row.requirementDisplayId }}</div>
+          <div class="drawer-name" @click="jumper(scope.row, '需求')">{{ scope.row.name }}</div>
         </template>
       </el-table-column>
-      <!-- <el-table-column v-if="type === '需求'" prop="typeName" label="需求类型" min-width="110" align="center" />
-      <el-table-column v-if="type === '需求'" label="PM" min-width="100" show-overflow-tooltip align="center">
+      <el-table-column v-if="type === '任务' || type === '任务状态' || type === '任务等级' || type === '开发负责人' || type === '测试负责人' || title === '任务分布图数据' && type === '跟版客户端' || type === '直接归属'" label="任务名称" min-width="360" align="left" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <div class="drawer-id">{{ scope.row.taskIdSting }}</div>
+          <div class="drawer-name" @click="jumper(scope.row, '任务')">{{ scope.row.name }}</div>
+        </template>
+      </el-table-column>
+      <el-table-column v-if="type === '开发负责人'" label="开发负责人" min-width="100" align="center">
+        <template slot-scope="scope">{{ scope.row.rdObject !== null? scope.row.rdObject.name: '' }}</template>
+      </el-table-column>
+      <el-table-column v-if="type === '测试负责人'" label="测试负责人" min-width="100" align="center">
+        <template slot-scope="scope">{{ scope.row.qaObject !== null?scope.row.qaObject.name: '' }}</template>
+      </el-table-column>
+      <el-table-column v-if="title === '需求分布图数据' && type === '跟版客户端'" label="跟版客户端" min-width="100" align="center">
+        {{ oftype }}
+      </el-table-column>
+      <el-table-column v-if="title === '任务分布图数据' && type === '跟版客户端'" label="跟版客户端" min-width="100" align="center">
+        {{ oftype }}
+      </el-table-column>
+      <el-table-column v-if="type === '直接归属'" label="直接归属" min-width="110" align="center" show-overflow-tooltip>
+        {{ oftype }}
+      </el-table-column>
+      <!-- <el-table-column v-if="type === '需求'" prop="typeName" label="需求类型" min-width="110" align="center" /> -->
+      <el-table-column v-if="type === 'pm'" label="PM" min-width="100" show-overflow-tooltip align="center">
         <template v-if="scope.row.pmMemberInfoResponse" slot-scope="scope">
           <span>{{ scope.row.pmMemberInfoResponse.name }}</span>
         </template>
-      </el-table-column> -->
-      <el-table-column v-if="type === '需求'" label="状态" prop="statusName" min-width="100" align="center" />
-      <el-table-column v-if="type === '任务'" label="状态" prop="statusString" min-width="100" align="center" />
+      </el-table-column>
+      <el-table-column v-if="type === '需求类型'" label="需求类型" min-width="100" show-overflow-tooltip align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.typeName }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column v-if="type === '需求' || type === '需求状态' || type === '需求等级'" label="状态" prop="statusName" min-width="100" align="center" />
+      <el-table-column v-if="type === '任务' || type === '任务状态' || type === '任务等级'" label="状态" prop="statusString" min-width="100" align="center" />
     </el-table>
 
     <el-table v-if="title === '去除节假日的修复时长区间数据' || title === '不去除节假日的修复时长区间数据'" :data="data" style="width: auto;" height="calc(100vh - 355px)" :header-cell-style="{ 'color':'rgba(74,74,74,1)','font-size':'14px','font-weight':'500' }">
@@ -120,7 +145,8 @@ export default {
   props: {
     data: { type: Array, default: null },
     title: { type: String, required: true },
-    type: { type: String, default: null }
+    type: { type: String, default: null },
+    oftype: { type: String, default: null }
   },
   data() {
     return {