fix(测试跟踪): 修复checkbox右边框显示的问题

This commit is contained in:
Captain.B 2021-04-27 17:09:42 +08:00 committed by 刘瑞斌
parent a28ef40419
commit 646a6bc827
3 changed files with 224 additions and 224 deletions

View File

@ -19,7 +19,7 @@
@filter-change="filter" @filter-change="filter"
@sort-change="sort" @sort-change="sort"
@select="handleSelect" :height="screenHeight"> @select="handleSelect" :height="screenHeight">
<el-table-column type="selection"/> <el-table-column width="50" type="selection"/>
<ms-table-header-select-popover v-show="total>0" <ms-table-header-select-popover v-show="total>0"
:page-size="pageSize > total ? total : pageSize" :page-size="pageSize > total ? total : pageSize"
:total="total" :total="total"

View File

@ -38,8 +38,7 @@
@header-dragend="headerDragend" @header-dragend="headerDragend"
:data="tableData"> :data="tableData">
<el-table-column <el-table-column width="50" type="selection"/>
type="selection"/>
<ms-table-header-select-popover v-show="total>0" <ms-table-header-select-popover v-show="total>0"
:page-size="pageSize > total ? total : pageSize" :page-size="pageSize > total ? total : pageSize"
:total="total" :total="total"
@ -99,7 +98,8 @@
:key="index" :key="index"
> >
<template v-slot:default="scope"> <template v-slot:default="scope">
<ms-tag v-for="(tag, index) in scope.row.showTags" :key="tag + '_' + index" type="success" effect="plain" :content="tag" style="margin-left: 0px; margin-right: 2px"/> <ms-tag v-for="(tag, index) in scope.row.showTags" :key="tag + '_' + index" type="success" effect="plain"
:content="tag" style="margin-left: 0px; margin-right: 2px"/>
</template> </template>
</el-table-column> </el-table-column>
@ -270,12 +270,11 @@ import NodeBreadcrumb from '../../../../common/NodeBreadcrumb';
import { import {
ROLE_TEST_MANAGER, ROLE_TEST_MANAGER,
ROLE_TEST_USER, ROLE_TEST_USER,
TEST_CASE_LIST,
TEST_PLAN_FUNCTION_TEST_CASE, TEST_PLAN_FUNCTION_TEST_CASE,
TokenKey, TokenKey,
WORKSPACE_ID WORKSPACE_ID
} from "@/common/js/constants"; } from "@/common/js/constants";
import {checkoutTestManagerOrTestUser, getCurrentUser, hasRoles} from "@/common/js/utils"; import {checkoutTestManagerOrTestUser, hasRoles} from "@/common/js/utils";
import PriorityTableItem from "../../../../common/tableItems/planview/PriorityTableItem"; import PriorityTableItem from "../../../../common/tableItems/planview/PriorityTableItem";
import StatusTableItem from "../../../../common/tableItems/planview/StatusTableItem"; import StatusTableItem from "../../../../common/tableItems/planview/StatusTableItem";
import TypeTableItem from "../../../../common/tableItems/planview/TypeTableItem"; import TypeTableItem from "../../../../common/tableItems/planview/TypeTableItem";
@ -293,7 +292,8 @@ import {
_handleSelect, _handleSelect,
_handleSelectAll, _handleSelectAll,
_sort, _sort,
buildBatchParam, deepClone, buildBatchParam,
deepClone,
getLabel, getLabel,
getSelectDataCounts, getSelectDataCounts,
initCondition, initCondition,
@ -395,7 +395,7 @@ export default {
}, },
selectDataCounts: 0, selectDataCounts: 0,
selectDataRange: "all" selectDataRange: "all"
} };
}, },
props: { props: {
planId: { planId: {
@ -473,7 +473,7 @@ export default {
description: '获取缺陷失败', description: '获取缺陷失败',
platform: '获取缺陷失败' platform: '获取缺陷失败'
}]); }]);
}) });
} }
} }
this.selectRows.clear(); this.selectRows.clear();
@ -483,7 +483,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.checkTableRowIsSelect(); this.checkTableRowIsSelect();
}) });
}); });
} }
getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE); getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE);
@ -558,7 +558,7 @@ export default {
this.$post('/test/plan/case/idList/all', param, res => { this.$post('/test/plan/case/idList/all', param, res => {
let ids = res.data; let ids = res.data;
this._handleBatchDelete(ids); this._handleBatchDelete(ids);
}) });
} else { } else {
let ids = Array.from(this.selectRows).map(row => row.id); let ids = Array.from(this.selectRows).map(row => row.id);
this._handleBatchDelete(ids); this._handleBatchDelete(ids);
@ -575,7 +575,7 @@ export default {
let data = res.data; let data = res.data;
let ids = data.map(d => d.id); let ids = data.map(d => d.id);
this._handleBatchDelete(ids); this._handleBatchDelete(ids);
}) });
} }
} }
} }
@ -688,7 +688,7 @@ export default {
this.$post('/user/ws/member/tester/list', {workspaceId: workspaceId}, response => { this.$post('/user/ws/member/tester/list', {workspaceId: workspaceId}, response => {
this.valueArr.executor = response.data; this.valueArr.executor = response.data;
this.executorFilters = response.data.map(u => { this.executorFilters = response.data.map(u => {
return {text: u.name, value: u.id} return {text: u.name, value: u.id};
}); });
this.maintainerFilters = response.data.map(u => { this.maintainerFilters = response.data.map(u => {
return {text: u.id + '(' + u.name + ')', value: u.id}; return {text: u.id + '(' + u.name + ')', value: u.id};
@ -715,7 +715,7 @@ export default {
this.selectRows.delete(row); this.selectRows.delete(row);
} }
} }
}) });
} }
}, },
isSelectDataAll(data) { isSelectDataAll(data) {
@ -730,7 +730,7 @@ export default {
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows); this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
}, },
} }
} };
</script> </script>
<style scoped> <style scoped>

View File

@ -17,7 +17,7 @@
@filter-change="filter" @filter-change="filter"
@sort-change="sort" @sort-change="sort"
@select="handleSelectionChange" :height="screenHeight"> @select="handleSelectionChange" :height="screenHeight">
<el-table-column type="selection"/> <el-table-column width="50" type="selection"/>
<ms-table-header-select-popover v-show="total>0" <ms-table-header-select-popover v-show="total>0"
:page-size="pageSize > total ? total : pageSize" :page-size="pageSize > total ? total : pageSize"
:total="total" :total="total"