fix(测试跟踪): 修复checkbox右边框显示的问题
This commit is contained in:
parent
a28ef40419
commit
646a6bc827
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@
|
||||||
:is-read-only="isReadOnly"
|
:is-read-only="isReadOnly"
|
||||||
@refreshTable="search"/>
|
@refreshTable="search"/>
|
||||||
|
|
||||||
<!-- </el-card>-->
|
<!-- </el-card>-->
|
||||||
<batch-edit ref="batchEdit" @batchEdit="batchEdit"
|
<batch-edit ref="batchEdit" @batchEdit="batchEdit"
|
||||||
:type-arr="typeArr" :value-arr="valueArr" :dialog-title="$t('test_track.case.batch_edit_case')"/>
|
:type-arr="typeArr" :value-arr="valueArr" :dialog-title="$t('test_track.case.batch_edit_case')"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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,
|
||||||
|
@ -318,7 +318,7 @@ export default {
|
||||||
StatusTableItem,
|
StatusTableItem,
|
||||||
PriorityTableItem, StatusEdit, ExecutorEdit, MsTipButton, MsTablePagination,
|
PriorityTableItem, StatusEdit, ExecutorEdit, MsTipButton, MsTablePagination,
|
||||||
MsTableHeader, NodeBreadcrumb, MsTableButton, ShowMoreBtn,
|
MsTableHeader, NodeBreadcrumb, MsTableButton, ShowMoreBtn,
|
||||||
BatchEdit, MsTag,MsTableHeaderSelectPopover
|
BatchEdit, MsTag, MsTableHeaderSelectPopover
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -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);
|
||||||
|
@ -553,13 +553,13 @@ export default {
|
||||||
callback: (action) => {
|
callback: (action) => {
|
||||||
if (action === 'confirm') {
|
if (action === 'confirm') {
|
||||||
if (this.selectRows.size > 0) {
|
if (this.selectRows.size > 0) {
|
||||||
if(this.condition.selectAll){
|
if (this.condition.selectAll) {
|
||||||
let param = buildBatchParam(this);
|
let param = buildBatchParam(this);
|
||||||
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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue