|
|
@ -99,7 +99,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<template #default="scope"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-text |
|
|
|
<el-text |
|
|
|
@click.stop @dblclick.stop="Copytxt(scope.row[column.prop])" |
|
|
|
@click.stop |
|
|
|
|
|
|
|
@dblclick.stop="Copytxt(scope.row[column.prop])" |
|
|
|
class="mx-2 tabculconte" |
|
|
|
class="mx-2 tabculconte" |
|
|
|
:class=" |
|
|
|
:class=" |
|
|
|
scope.row[column.prop] == props.searchInput && scope.row[column.prop] |
|
|
|
scope.row[column.prop] == props.searchInput && scope.row[column.prop] |
|
|
@ -393,7 +394,9 @@ const isHaveSelection = ref(false); |
|
|
|
let selectarr = ref([]); |
|
|
|
let selectarr = ref([]); |
|
|
|
/** 设置每行颜色 */ |
|
|
|
/** 设置每行颜色 */ |
|
|
|
const tableRowClassName = ({ row, rowIndex }: { row: TableDataType; rowIndex: number }) => { |
|
|
|
const tableRowClassName = ({ row, rowIndex }: { row: TableDataType; rowIndex: number }) => { |
|
|
|
|
|
|
|
// console.log('selectarr.value :>> ', selectarr.value); |
|
|
|
for (let i = 0; i < selectarr.value.length; i++) { |
|
|
|
for (let i = 0; i < selectarr.value.length; i++) { |
|
|
|
|
|
|
|
// console.log('row :>> ', row); |
|
|
|
if (selectarr.value[i] === row) return 'table-SelectedRow-bgcolor'; |
|
|
|
if (selectarr.value[i] === row) return 'table-SelectedRow-bgcolor'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -471,8 +474,8 @@ function godowns(url) { |
|
|
|
let shownm = ref(false); |
|
|
|
let shownm = ref(false); |
|
|
|
|
|
|
|
|
|
|
|
function copyalls(column: TableColumnType) { |
|
|
|
function copyalls(column: TableColumnType) { |
|
|
|
console.log(column,'column'); |
|
|
|
console.log(column, 'column'); |
|
|
|
|
|
|
|
|
|
|
|
const _isReturn = column.type == 1 || column.type == 2 || column.type == 3; |
|
|
|
const _isReturn = column.type == 1 || column.type == 2 || column.type == 3; |
|
|
|
if (!_isReturn) return; |
|
|
|
if (!_isReturn) return; |
|
|
|
let text = ''; |
|
|
|
let text = ''; |
|
|
@ -722,8 +725,8 @@ function copyContent(content: string) { |
|
|
|
return copyResult; |
|
|
|
return copyResult; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
function Copytxt(Value){ |
|
|
|
function Copytxt(Value) { |
|
|
|
copyContent(Value) |
|
|
|
copyContent(Value); |
|
|
|
} |
|
|
|
} |
|
|
|
const handleRefresh = () => { |
|
|
|
const handleRefresh = () => { |
|
|
|
for (let i = 0; i < newcolumnList.value.length; i++) { |
|
|
|
for (let i = 0; i < newcolumnList.value.length; i++) { |
|
|
@ -927,7 +930,7 @@ defineExpose({ handleCheckSelect, handleClearSelect }); |
|
|
|
background-color: #ff0000; |
|
|
|
background-color: #ff0000; |
|
|
|
color: #fff !important; |
|
|
|
color: #fff !important; |
|
|
|
} |
|
|
|
} |
|
|
|
.el_placeholder{ |
|
|
|
.el_placeholder { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
margin-top: -12% !important; |
|
|
|
margin-top: -12% !important; |
|
|
|