近7日数据改为updata

This commit is contained in:
2025-05-12 21:09:32 +08:00
parent 60f6fc4873
commit dcd677bbab
5 changed files with 38 additions and 17 deletions

View File

@@ -24,7 +24,9 @@
<el-table-column type="selection" width="35" />
<el-table-column fixed prop="hostId" label="主播id" width="160">
<template #default="scope">
<div class="hostIdText" @click="openHTML(scope.row.hostId)"> {{ scope.row.hostId }}</div>
<div class="hostIdText" :style="{ color: scope.row.useable == 'Y' ? 'green' : '#0f0092' }"
@click="openHTML(scope.row.hostId)"> {{
scope.row.hostId }}</div>
</template>
</el-table-column>
@@ -44,9 +46,13 @@
<el-popover v-if="!(label.paramCode == 'hostcoins' || label.paramCode == 'ysthostcoins')"
placement="bottom" :width="600" trigger="hover">
<div style="height: 300px;">
<!-- createDt往前推7天 -->
<!-- <component :is="EChartsComponent" v-if="isPopoverVisible[`${scope.row.hostId}-${label.paramCode}`]"
:title="label.paramCodeMeaning" :id="scope.row.hostId" :dataType="label.paramCode"
:time="scope.row.createDt.split('T')[0].replace(/-/g, '').substring(0, 8)"></component> -->
<component :is="EChartsComponent" v-if="isPopoverVisible[`${scope.row.hostId}-${label.paramCode}`]"
:title="label.paramCodeMeaning" :id="scope.row.hostId" :dataType="label.paramCode"
:time="scope.row.createDt.split('T')[0].replace(/-/g, '').substring(0, 8)"></component>
:time="scope.row.updateDt"></component>
</div>
<template #reference>
<span @mouseover="openPopover(scope.row.hostId, label.paramCode)"
@@ -58,9 +64,13 @@
<el-popover v-else placement="bottom" :width="500" trigger="hover">
<div style="height: 300px;">
<component :is="EChartsComponent" v-if="isPopoverVisible[`${scope.row.hostId}-${label.paramCode}`]"
<!-- <component :is="EChartsComponent" v-if="isPopoverVisible[`${scope.row.hostId}-${label.paramCode}`]"
:title="label.paramCodeMeaning" :id="scope.row.hostId" :dataType="label.paramCode"
:time="scope.row.createDt.split('T')[0].replace(/-/g, '').substring(0, 8)">
</component> -->
<component :is="EChartsComponent" v-if="isPopoverVisible[`${scope.row.hostId}-${label.paramCode}`]"
:title="label.paramCodeMeaning" :id="scope.row.hostId" :dataType="label.paramCode"
:time="scope.row.updateDt">
</component>
</div>
<template #reference>
@@ -75,7 +85,7 @@
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="120">
<el-table-column v-if="userInfo.userType == 4" fixed="right" label="操作" width="120">
<template #default="scope">
<el-popover placement="top-start" :width="200" trigger="hover" :content="scope.row.comment">
@@ -189,6 +199,7 @@ import { getUser, setSerch, getSerch } from '@/utils/storage'
import { ref, reactive, onMounted } from 'vue';
import EChartsComponent from '@/components/EChartsComponent.vue';
import { ElMessage, ElMessageBox } from 'element-plus'
import { color } from 'echarts';
const loading = ref(false)
//py方法
@@ -508,6 +519,17 @@ function closePopover(hostId, paramCode) {
function openHTML(id) {
givePyAnchorId(id)
upholdinfo({
"hostId": id,
"userId": userInfo.value.userId,
"tenantId": userInfo.value.tenantId,
// "comment": "我已经尽力维护,但是失败了",
"useable": "Y"
}).then(res => {
getlist();
})
}
</script>
@@ -531,7 +553,6 @@ function openHTML(id) {
.hostIdText {
text-decoration: underline;
cursor: pointer;
color: #0f0092;
}
}