fix(测试跟踪): 阻止功能用例排序拖拽默认及冒泡事件
--bug=1033936 --user=宋昌昌 【功能用例】firefox浏览器,用例列表拖拽排序,浏览器会自动打开一个tab页 https://www.tapd.cn/55049933/s/1447901
This commit is contained in:
parent
961aea187e
commit
e7e6431cb4
|
@ -116,15 +116,15 @@ import {
|
||||||
_handleSelect,
|
_handleSelect,
|
||||||
_handleSelectAll,
|
_handleSelectAll,
|
||||||
_sort,
|
_sort,
|
||||||
getSelectDataCounts,
|
|
||||||
setUnSelectIds,
|
|
||||||
toggleAllSelection,
|
|
||||||
checkTableRowIsSelect,
|
checkTableRowIsSelect,
|
||||||
|
clearShareDragParam,
|
||||||
getCustomTableHeader,
|
getCustomTableHeader,
|
||||||
|
getSelectDataCounts,
|
||||||
|
handleRowDrop,
|
||||||
saveCustomTableWidth,
|
saveCustomTableWidth,
|
||||||
saveLastTableSortField,
|
saveLastTableSortField,
|
||||||
handleRowDrop,
|
setUnSelectIds,
|
||||||
clearShareDragParam,
|
toggleAllSelection,
|
||||||
} from "../../utils/tableUtils";
|
} from "../../utils/tableUtils";
|
||||||
import MsTableHeaderSelectPopover from "./MsTableHeaderSelectPopover";
|
import MsTableHeaderSelectPopover from "./MsTableHeaderSelectPopover";
|
||||||
import MsTablePagination from "../pagination/TablePagination";
|
import MsTablePagination from "../pagination/TablePagination";
|
||||||
|
@ -134,8 +134,7 @@ import MsTableOperators from "../MsTableOperators";
|
||||||
import HeaderLabelOperate from "../head/HeaderLabelOperate";
|
import HeaderLabelOperate from "../head/HeaderLabelOperate";
|
||||||
import HeaderCustom from "../head/HeaderCustom";
|
import HeaderCustom from "../head/HeaderCustom";
|
||||||
import MsCustomTableHeader from "../table/MsCustomTableHeader";
|
import MsCustomTableHeader from "../table/MsCustomTableHeader";
|
||||||
import {lineToHump} from "../../utils";
|
import {getUUID, lineToHump} from "../../utils";
|
||||||
import {getUUID} from "../../utils";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参考 ApiList
|
* 参考 ApiList
|
||||||
|
@ -299,6 +298,7 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.setDefaultOrders();
|
this.setDefaultOrders();
|
||||||
|
this.preventSortableEventPropagation();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
selectNodeIds() {
|
selectNodeIds() {
|
||||||
|
@ -327,6 +327,12 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
preventSortableEventPropagation() {
|
||||||
|
document.body.ondrop = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
},
|
||||||
// 批量操作提示, 第一次勾选提示, 之后不提示
|
// 批量操作提示, 第一次勾选提示, 之后不提示
|
||||||
// 先添加 batch-popper 样式, 全选后再移除样式, 只保留可见框内第一条数据的提示
|
// 先添加 batch-popper 样式, 全选后再移除样式, 只保留可见框内第一条数据的提示
|
||||||
removeBatchPopper() {
|
removeBatchPopper() {
|
||||||
|
|
Loading…
Reference in New Issue