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"
@sort-change="sort"
@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"
:page-size="pageSize > total ? total : pageSize"
:total="total"

View File

@ -38,8 +38,7 @@
@header-dragend="headerDragend"
:data="tableData">
<el-table-column
type="selection"/>
<el-table-column width="50" type="selection"/>
<ms-table-header-select-popover v-show="total>0"
:page-size="pageSize > total ? total : pageSize"
:total="total"
@ -99,7 +98,8 @@
:key="index"
>
<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>
</el-table-column>
@ -251,7 +251,7 @@
:is-read-only="isReadOnly"
@refreshTable="search"/>
<!-- </el-card>-->
<!-- </el-card>-->
<batch-edit ref="batchEdit" @batchEdit="batchEdit"
:type-arr="typeArr" :value-arr="valueArr" :dialog-title="$t('test_track.case.batch_edit_case')"/>
</div>
@ -270,12 +270,11 @@ import NodeBreadcrumb from '../../../../common/NodeBreadcrumb';
import {
ROLE_TEST_MANAGER,
ROLE_TEST_USER,
TEST_CASE_LIST,
TEST_PLAN_FUNCTION_TEST_CASE,
TokenKey,
WORKSPACE_ID
} 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 StatusTableItem from "../../../../common/tableItems/planview/StatusTableItem";
import TypeTableItem from "../../../../common/tableItems/planview/TypeTableItem";
@ -293,7 +292,8 @@ import {
_handleSelect,
_handleSelectAll,
_sort,
buildBatchParam, deepClone,
buildBatchParam,
deepClone,
getLabel,
getSelectDataCounts,
initCondition,
@ -318,7 +318,7 @@ export default {
StatusTableItem,
PriorityTableItem, StatusEdit, ExecutorEdit, MsTipButton, MsTablePagination,
MsTableHeader, NodeBreadcrumb, MsTableButton, ShowMoreBtn,
BatchEdit, MsTag,MsTableHeaderSelectPopover
BatchEdit, MsTag, MsTableHeaderSelectPopover
},
data() {
return {
@ -395,7 +395,7 @@ export default {
},
selectDataCounts: 0,
selectDataRange: "all"
}
};
},
props: {
planId: {
@ -473,7 +473,7 @@ export default {
description: '获取缺陷失败',
platform: '获取缺陷失败'
}]);
})
});
}
}
this.selectRows.clear();
@ -483,7 +483,7 @@ export default {
this.$nextTick(() => {
this.checkTableRowIsSelect();
})
});
});
}
getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE);
@ -553,13 +553,13 @@ export default {
callback: (action) => {
if (action === 'confirm') {
if (this.selectRows.size > 0) {
if(this.condition.selectAll){
if (this.condition.selectAll) {
let param = buildBatchParam(this);
this.$post('/test/plan/case/idList/all', param, res => {
let ids = res.data;
this._handleBatchDelete(ids);
})
}else {
});
} else {
let ids = Array.from(this.selectRows).map(row => row.id);
this._handleBatchDelete(ids);
}
@ -575,7 +575,7 @@ export default {
let data = res.data;
let ids = data.map(d => d.id);
this._handleBatchDelete(ids);
})
});
}
}
}
@ -688,7 +688,7 @@ export default {
this.$post('/user/ws/member/tester/list', {workspaceId: workspaceId}, response => {
this.valueArr.executor = response.data;
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 => {
return {text: u.id + '(' + u.name + ')', value: u.id};
@ -715,7 +715,7 @@ export default {
this.selectRows.delete(row);
}
}
})
});
}
},
isSelectDataAll(data) {
@ -730,7 +730,7 @@ export default {
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
},
}
}
};
</script>
<style scoped>

View File

@ -17,7 +17,7 @@
@filter-change="filter"
@sort-change="sort"
@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"
:page-size="pageSize > total ? total : pageSize"
:total="total"