Ver código fonte

准出报告 主页和任务下报告添加通过、不通过,字段

qinzhipeng_v@didiglobal.com 4 anos atrás
pai
commit
d8e2403ce4

+ 7 - 0
src/views/projectManage/taskList/components/reportList.vue

@@ -157,6 +157,7 @@
           <el-table-column label="标题名称" min-width="120">
             <template slot-scope="scope">
               <a href="javascript:void(0)" style="color:#20a0ff" @click="releaseDataStatus ? OldDaily(scope.row ,'准出报告') : toReportView(scope.row, 1)">{{ scope.row.reportName }}</a>
+              <div :class="scope.row.passStatus === 0 ? 'passStatus' : 'passStatus1'">{{ scope.row.passStatus === 0 ? '通过' : '不通过' }}</div>
             </template>
           </el-table-column>
           <el-table-column label="状态" min-width="100" align="center">
@@ -604,4 +605,10 @@ export default {
 .task-report-btn {
   margin-right: 30px;
 }
+.passStatus {
+  color:rgba(126,211,33,1);
+}
+.passStatus1 {
+  color:red;
+}
 </style>

+ 7 - 0
src/views/reportManagement/testPresentation.vue

@@ -26,6 +26,7 @@
           <el-table-column label="报告名称" min-width="280" show-overflow-tooltip>
             <template slot-scope="scope">
               <a v-if="title === '测试日报' || title === '准出报告'" href="javascript:void(0)" style="color:#20a0ff" @click="history ? toReportView(scope.row) : OldDaily(scope.row)">{{ scope.row.reportName }}</a>
+              <div v-if="title === '准出报告'" :class="scope.row.passStatus === 0 ? 'passStatus' : 'passStatus1'">{{ scope.row.passStatus === 0 ? '通过' : '不通过' }}</div>
               <a v-if="title === '提测报告'" href="javascript:void(0)" style="color:#20a0ff" @click="history ? toReportView(scope.row) : OldDaily(scope.row)">{{ history ? scope.row.reportName : scope.row.name }}</a>
               <div v-if="title === '提测报告' && scope.row.returnReason" style="color: red;">打回报告:{{ scope.row.returnReason }}</div>
             </template>
@@ -646,6 +647,12 @@ export default {
     margin-right: 20px;
   }
 }
+.passStatus {
+  color:rgba(126,211,33,1);
+}
+.passStatus1 {
+  color:red;
+}
 </style>
 <style lang="stylus">
 .el-tabs__nav-wrap::after {