fix: 移除调试日志并优化表格样式
移除多个组件中的console.log调试语句 调整richedit页面表格列的布局和样式 更新表格展开图标的样式
This commit is contained in:
parent
9d07061ea6
commit
835365cf82
|
|
@ -95,13 +95,10 @@ function toggleRowSelection(row, isCheck) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearSort() {
|
function clearSort() {
|
||||||
console.log('🚀 ~ clearSort ~ clearSort:', clearSort);
|
|
||||||
tableRef.value.clearSort();
|
tableRef.value.clearSort();
|
||||||
}
|
}
|
||||||
|
|
||||||
function cellClassName({ row, column, rowIndex, columnIndex }) {
|
function cellClassName({ row, column, rowIndex, columnIndex }) {
|
||||||
console.log('🚀 ~ cellClassName ~ rowIndex:', rowIndex);
|
|
||||||
console.log('🚀 ~ cellClassName ~ row:', row.title);
|
|
||||||
if (row.isChild) {
|
if (row.isChild) {
|
||||||
return 'first-cell';
|
return 'first-cell';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -332,15 +332,19 @@
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column prop="title" label="标题" align="left" width="380">
|
<el-table-column prop="title" label="标题" align="left" width="380">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div style="display: flex; flex-direction: column; justify-content: flex-start; align-items: start; gap: 5px; padding: 10px 0">
|
<div style="margin-right: 15px" v-if="scope.row.clusterNews">{{ scope.row.clusterNews ? scope.row.clusterNews.length : 0 }}</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
style="display: flex; flex-direction: column; justify-content: flex-start; align-items: start; gap: 5px; padding: 10px 0; margin-top: 8px"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-if="scope.row.isChild && scope.row.clusterIndex == 0"
|
v-if="scope.row.isChild && scope.row.clusterIndex == 0"
|
||||||
style="font-size: 14px; font-weight: bold; margin-left: -20px; margin-bottom: 30px"
|
style="font-size: 14px; font-weight: bold; margin-left: -20px; margin-bottom: 30px"
|
||||||
>
|
>
|
||||||
聚类资讯({{ scope.row.childLength }}条)
|
聚类资讯({{ scope.row.childLength }}条)
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div style="display: inline-block">
|
||||||
<span style="color: red; font-weight: bold; margin-right: 3px; flex-wrap: nowrap" v-if="scope.row.exclusive == 1">[独家]</span>
|
<span style="color: red; font-weight: bold; margin-right: 3px; width: 60px" v-if="scope.row.exclusive == 1">[独家]</span>
|
||||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -779,7 +783,6 @@ async function getData() {
|
||||||
_sdate = daterange.value[0];
|
_sdate = daterange.value[0];
|
||||||
_edate = daterange.value[1];
|
_edate = daterange.value[1];
|
||||||
}
|
}
|
||||||
console.log('🚀 ~ getData ~ _edate:', _edate);
|
|
||||||
|
|
||||||
const industry = form.value.industry?.length > 0 ? encodeURIComponent(JSON.stringify(form.value.industry)) : '';
|
const industry = form.value.industry?.length > 0 ? encodeURIComponent(JSON.stringify(form.value.industry)) : '';
|
||||||
|
|
||||||
|
|
@ -917,7 +920,6 @@ function sortChange({ prop, order }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sortRules[prop] = order == 'ascending' ? '$asc' : order == 'descending' ? '$desc' : null;
|
sortRules[prop] = order == 'ascending' ? '$asc' : order == 'descending' ? '$desc' : null;
|
||||||
console.log('🚀 ~ sortChange ~ sortRules[prop]:', sortRules[prop]);
|
|
||||||
|
|
||||||
let sortVal = [];
|
let sortVal = [];
|
||||||
for (let key in sortRules) {
|
for (let key in sortRules) {
|
||||||
|
|
@ -932,7 +934,6 @@ function sortChange({ prop, order }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function copyUrl(res) {
|
async function copyUrl(res) {
|
||||||
console.log('🚀 ~ copyUrl ~ res:', res);
|
|
||||||
let clipboardBean = new clipboard('.copyBtn', {
|
let clipboardBean = new clipboard('.copyBtn', {
|
||||||
text: function (trigger) {
|
text: function (trigger) {
|
||||||
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
||||||
|
|
@ -955,7 +956,6 @@ async function copyUrl(res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleCommand(val) {
|
function handleCommand(val) {
|
||||||
console.log('🚀 ~ handleCommand ~ val:', val);
|
|
||||||
form.value.status = val;
|
form.value.status = val;
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
@ -999,13 +999,11 @@ function checkChange(val) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function currentChange(val) {
|
function currentChange(val) {
|
||||||
console.log('🚀 ~ currentChange ~ val:', val);
|
|
||||||
tableData.page = val;
|
tableData.page = val;
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sizeChange(val) {
|
function sizeChange(val) {
|
||||||
console.log('🚀 ~ sizeChange ~ val:', val);
|
|
||||||
tableData.size = val;
|
tableData.size = val;
|
||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
|
|
@ -1033,7 +1031,6 @@ async function getScoreDetail(id: any) {
|
||||||
if (!isAdmin.value) return;
|
if (!isAdmin.value) return;
|
||||||
curScore.value = id;
|
curScore.value = id;
|
||||||
const result = await getNewsScore({ id });
|
const result = await getNewsScore({ id });
|
||||||
console.log('🚀 ~ getScoreDetail ~ result:', result);
|
|
||||||
if (result.code == 200) {
|
if (result.code == 200) {
|
||||||
scoreDetail.value = result.data;
|
scoreDetail.value = result.data;
|
||||||
isScoreShow.value = true;
|
isScoreShow.value = true;
|
||||||
|
|
@ -1166,7 +1163,6 @@ const includeRuleIds = ref('');
|
||||||
const excludeRuleIds = ref('');
|
const excludeRuleIds = ref('');
|
||||||
|
|
||||||
function signalChange(event, type) {
|
function signalChange(event, type) {
|
||||||
console.log('🚀 ~ signalChange ~ event:', event);
|
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
// form.value.signalId1 = signalId1.value;
|
// form.value.signalId1 = signalId1.value;
|
||||||
includeRuleIds.value = event.join(',');
|
includeRuleIds.value = event.join(',');
|
||||||
|
|
@ -1379,4 +1375,20 @@ onMounted(async () => {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:deep(.el-table__expand-icon .el-icon-arrow-right:before) {
|
||||||
|
background: url('../../../../assets/images/文件夹未展开.png') no-repeat;
|
||||||
|
|
||||||
|
content: '';
|
||||||
|
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
width: 16px;
|
||||||
|
|
||||||
|
height: 16px;
|
||||||
|
|
||||||
|
font-size: 16px;
|
||||||
|
|
||||||
|
background-size: 16px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue