瀏覽代碼

缺陷fix bug

wangziqian 5 年之前
父節點
當前提交
d15e56608c
共有 2 個文件被更改,包括 17 次插入2 次删除
  1. 8 1
      src/views/projectManage/bugList/details/bugTableDialog.vue
  2. 9 1
      src/views/workbench/bugTableList.vue

+ 8 - 1
src/views/projectManage/bugList/details/bugTableDialog.vue

@@ -1,6 +1,13 @@
 <template>
   <div>
-    <el-table size="small" :data="tableData" class="bug_tableHeader" show-overflow-tooltip="true" :header-cell-style="{ color: '#4A4A4A', fontSize: '14px', fontWeight: '500' }">
+    <el-table
+      size="small"
+      :data="tableData"
+      class="bug_tableHeader"
+      show-overflow-tooltip="true"
+      :header-cell-style="{ color: '#4A4A4A', fontSize: '14px', fontWeight: '500' }"
+      row-key="id"
+    >
       <el-table-column label="优先级" prop="priorityCode" min-width="100" sortable align="center">
         <template slot-scope="scope" style="text-align: center;">
           <span class="div_priority" :class="[{'priority_color': scope.row.priorityLevel === 'High'},{'priority_color1': scope.row.priorityLevel === 'Medium'},{'priority_color3': scope.row.priorityLevel === 'Low'}]">

+ 9 - 1
src/views/workbench/bugTableList.vue

@@ -8,7 +8,15 @@
         <el-dropdown-item v-for="(item, index) in bugProcessStatusList" :key="index" @click.native="handleClick(item)">{{ item.name }}</el-dropdown-item>
       </el-dropdown-menu>
     </el-dropdown>
-    <el-table ref="bug_tableHeader" size="small" :data="tableData" class="bug_tableHeader" show-overflow-tooltip="true" :header-cell-style="{ color: '#4A4A4A', fontSize: '14px', fontWeight: '500' }">
+    <el-table
+      ref="bug_tableHeader"
+      size="small"
+      :data="tableData"
+      class="bug_tableHeader"
+      show-overflow-tooltip="true"
+      :header-cell-style="{ color: '#4A4A4A', fontSize: '14px', fontWeight: '500' }"
+      row-key="id"
+    >
       <el-table-column label="优先级" prop="priorityCode" min-width="100" sortable align="center">
         <template slot-scope="scope" style="text-align: center;">
           <span class="div_priority" :class="[{'priority_color': scope.row.priorityLevel === 'High'},{'priority_color1': scope.row.priorityLevel === 'Medium'},{'priority_color3': scope.row.priorityLevel === 'Low'}]">