Эх сурвалжийг харах

任务详情页,bug区域,快速筛选,除了全部选择后会变蓝色,其他选项选中后均没有变蓝色

PrinceLee 5 жил өмнө
parent
commit
3418c33cec

+ 5 - 3
src/views/projectManage/taskList/taskViewDetails.vue

@@ -165,7 +165,7 @@
               <div style="padding: 1.5% 0;font-family: MicrosoftYaHei;color: rgba(51,51,51,1);font-size: 14px;align-items: center;display: flex; justify-content: space-start; align-items: center;border-top: 1px solid #E9E9E9;">
                 <span>快速筛选:</span>
                 <span v-for="(item, code) of bugStatus" :key="code" class="status" @click="bug_list(item.code)">
-                  <span :style="{color: item.msg === '全部'? colorSty :''}">{{ item.msg }}</span>
+                  <span :class="[item.code === codeCache ? 'selected' :'']">{{ item.msg }}</span>
                 </span>
               </div>
               <el-table size="mini" :data="bugBaseInfoDOList" min-height="200" style="width: 100%; font-size: 14px; color:rgba(102,102,102,1);" show-overflow-tooltip="true" :default-sort="{prop: 'priorityCode'}" :header-cell-style="{ background: '#E9E9E9', color: '#333B4A', fontSize: '14px', fontWeight: '500',borderTop: '0.5px solid #EEF0F5'}">
@@ -356,8 +356,7 @@
         top="35vh"
       >
         <div align="center">
-          确定要删除
-          <span style="color:red;">{{ task_form.name }}</span> 的任务吗?
+          确定要删除<span style="color:red;">{{ task_form.name }}</span> 的任务吗?
         </div>
         <span slot="footer" class="dialog-footer">
           <el-button @click="centerDialogVisible_task = false">关 闭</el-button>
@@ -1098,6 +1097,9 @@ export default {
 }
 </style>
 <style lang="stylus" scoped>
+.selected {
+  color: rgb(106, 180, 255)
+}
 .bgborderButton .el-button--info.is-plain:hover {
   background: #3f9eff !important;
   border-color: #3f9eff !important;