diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue
index f7fab91d8c..0bf1abea90 100644
--- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue
+++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue
@@ -10,6 +10,7 @@
@sort-change="sort"
@filter-change="filter"
@select-all="select" @select="select"
+ @header-dragend="headerDragend"
v-loading="loading">
@@ -40,7 +41,6 @@
sortable="custom"
:label="$t('api_test.automation.scenario_name')"
show-overflow-tooltip
-
min-width="120px"/>
column.realWidth){
- column.realWidth = column.minWidth;
- column.width = column.minWidth;
+ headerDragend(newWidth,oldWidth,column,event){
+ let finalWidth = newWidth;
+ if(column.minWidth>finalWidth){
+ finalWidth = column.minWidth;
}
- return column.label;
+ column.width = finalWidth;
+ column.realWidth = finalWidth;
},
openScenario(item) {
this.$emit('openScenario', item)
diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue
index 6f488a3d05..1ca0f76094 100644
--- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue
+++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue
@@ -15,6 +15,7 @@
@select-all="handleSelectAll"
@filter-change="filter"
@sort-change="sort"
+ @header-dragend="headerDragend"
@select="handleSelect" :height="screenHeight">
@@ -507,12 +508,13 @@ export default {
this.clickRow = row;
this.$refs.setEnvironment.open(row);
},
- labelHead(h,{column,index}){
- if(column.minWidth>column.realWidth){
- column.realWidth = column.minWidth;
- column.width = column.minWidth;
+ headerDragend(newWidth,oldWidth,column,event){
+ let finalWidth = newWidth;
+ if(column.minWidth>finalWidth){
+ finalWidth = column.minWidth;
}
- return column.label;
+ column.width = finalWidth;
+ column.realWidth = finalWidth;
},
createPerformance(row, environment) {
/**
diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue
index c1ce8c4882..7d81b03d4e 100644
--- a/frontend/src/business/components/api/definition/components/list/ApiList.vue
+++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue
@@ -17,6 +17,7 @@
@filter-change="filter"
:data="tableData" row-key="id" class="test-content adjust-table ms-select-all-fixed"
@select-all="handleSelectAll"
+ @header-dragend="headerDragend"
@select="handleSelect" :height="screenHeight">
@@ -693,12 +694,13 @@ export default {
_filter(filters, this.condition);
this.initTable();
},
- labelHead(h,{column,index}){
- if(column.minWidth>column.realWidth){
- column.realWidth = column.minWidth;
- column.width = column.minWidth;
+ headerDragend(newWidth,oldWidth,column,event){
+ let finalWidth = newWidth;
+ if(column.minWidth>finalWidth){
+ finalWidth = column.minWidth;
}
- return column.label;
+ column.width = finalWidth;
+ column.realWidth = finalWidth;
},
open() {
this.$refs.searchBar.open();
diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue
index e118e05dcf..d468eda3c0 100644
--- a/frontend/src/business/components/track/case/components/TestCaseList.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseList.vue
@@ -29,6 +29,7 @@
@filter-change="filter"
@select-all="handleSelectAll"
@select="handleSelect"
+ @header-dragend="headerDragend"
@cell-mouse-enter="showPopover"
row-key="id"
class="test-content adjust-table ms-select-all-fixed"
@@ -562,12 +563,13 @@ export default {
this.selectDataCounts = this.selectRows.size;
}
},
- labelHead(h,{column,index}){
- if(column.minWidth>column.realWidth){
- column.realWidth = column.minWidth;
- column.width = column.minWidth;
+ headerDragend(newWidth,oldWidth,column,event){
+ let finalWidth = newWidth;
+ if(column.minWidth>finalWidth){
+ finalWidth = column.minWidth;
}
- return column.label;
+ column.width = finalWidth;
+ column.realWidth = finalWidth;
},
moveSave(param) {
param.condition = this.condition;
diff --git a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue
index 297a1e611a..e499ab646e 100644
--- a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue
+++ b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue
@@ -35,6 +35,7 @@
@select="handleSelectionChange"
row-key="id"
@row-click="showDetail"
+ @header-dragend="headerDragend"
:data="tableData">
column.realWidth){
- column.realWidth = column.minWidth;
- column.width = column.minWidth;
+ headerDragend(newWidth,oldWidth,column,event){
+ let finalWidth = newWidth;
+ if(column.minWidth>finalWidth){
+ finalWidth = column.minWidth;
}
- return column.label;
+ column.width = finalWidth;
+ column.realWidth = finalWidth;
},
batchEdit(form) {
let param = {};