近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

@@ -17,9 +17,11 @@ let baseURL = ''
if (process.env.NODE_ENV === 'development') {
// 生产环境
// baseURL = "http://api.tkpage.vvtiktok.cn"
baseURL = "http://120.26.251.180:8085/"
// baseURL = "http://192.168.0.113:8085/"
// baseURL = "http://120.26.251.180:8085/"
baseURL = "http://192.168.0.111:8085/"
} else {
// 测试环境
// baseURL = "http://120.26.251.180:8085/"
// 开发环境
baseURL = "http://api.tkpage.vvtiktok.cn"
}
@@ -94,15 +96,13 @@ export function postAxios({ url, data }) {
reject('网络连接错误')
} else {
if (err.response.data.message) {
ElMessage.error(err.response.data.message);
}
console.log(err)
ElMessage.error('报错啦');
reject(err)
reject(err.message)
}
// console.log(err)
// reject(err)
})
})
}

View File

@@ -111,17 +111,17 @@ const onSubmit = () => {
}).then((res) => {
loading.close();
console.log(res)
if (res) {
if (res.activeYn == 'Y') {
setToken(res.currcode);
setUser(res);
if (res.code == 200) {
if (res.data.activeYn == 'Y') {
setToken(res.data.currcode);
setUser(res.data);
router.push('/nav');
} else {
alert('账号未启用');
}
} else {
// alert('账号或密码错误');
alert(res.mes);
}
}).catch((err) => {

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;
}
}

BIN
工具箱测试环境.rar Normal file

Binary file not shown.

BIN
工具箱生产环境.zip Normal file

Binary file not shown.