This commit is contained in:
pengxiaolong
2025-07-09 13:27:43 +08:00
parent 51ce853bde
commit 8cabf98bd9
2 changed files with 34 additions and 20 deletions

View File

@@ -8,7 +8,7 @@
v-model="queryFormData.coinMin" v-model="queryFormData.coinMin"
placeholder="最小金币" placeholder="最小金币"
size="large" size="large"
style="width: 160px" style="width: 180px"
type="number" type="number"
/> />
@@ -16,7 +16,8 @@
v-model="queryFormData.coinMax" v-model="queryFormData.coinMax"
placeholder="最大金币" placeholder="最大金币"
size="large" size="large"
style="width: 160px; margin-left: 50px" style="width: 180px;"
class="right-input"
type="number" type="number"
/> />
@@ -24,7 +25,8 @@
v-model="queryFormData.levelMin" v-model="queryFormData.levelMin"
placeholder="最小等级" placeholder="最小等级"
size="large" size="large"
style="width: 160px; margin-left: 50px" style="width: 180px;"
class="right-input"
type="number" type="number"
/> />
@@ -32,47 +34,45 @@
v-model="queryFormData.levelMax" v-model="queryFormData.levelMax"
placeholder="最大等级" placeholder="最大等级"
size="large" size="large"
style="width: 160px; margin-left: 50px" style="width: 180px;"
class="right-input"
type="number" type="number"
/> />
<div style="width: 250px; margin-left: 50px; height: 50px; line-height: 50px"> <div class="right-input right-text" style="width: 250px; height: 50px; line-height: 50px">
当前网络{{ countryData }} 当前网络{{ countryData }}
</div> </div>
<div style="width: 160px; margin-left: 50px; height: 50px; line-height: 50px"> <div class="right-input right-text" style="width: 160px; height: 50px; line-height: 50px">
总数{{ getBrotherInfodata.total }} 总数{{ getBrotherInfodata.total }}
</div> </div>
<div style="width: 160px; margin-left: 50px; height: 50px; line-height: 50px"> <div class="right-input right-text" style="width: 160px;height: 50px; line-height: 50px">
有效数{{ getBrotherInfodata.valid }} 有效数{{ getBrotherInfodata.valid }}
</div> </div>
<el-button <el-button
class="serch-button" class="serch-button right-input"
style="margin-left: 50px"
type="primary" type="primary"
@click="Resetss" @click="Resetss"
>重置</el-button >重置</el-button
> >
<el-button <el-button
class="serch-button" class="serch-button right-input"
style="margin-left: 50px; width: 150px" style="width: 150px"
type="primary" type="primary"
@click="openTikTok" @click="openTikTok"
>打开 TikTok 登录</el-button >打开 TikTok 登录</el-button
> >
<el-button <el-button
v-show="queryFormData.isRunning" v-show="queryFormData.isRunning"
class="serch-button" class="serch-button right-input"
style="margin-left: 50px"
type="primary" type="primary"
@click="getBigBrother" @click="getBigBrother"
>开始</el-button >开始</el-button
> >
<el-button <el-button
v-show="!queryFormData.isRunning" v-show="!queryFormData.isRunning"
class="serch-button" class="serch-button right-input"
style="margin-left: 50px"
type="primary" type="primary"
@click="BigBrotherstop" @click="BigBrotherstop"
>结束</el-button >结束</el-button
@@ -101,13 +101,13 @@
v-model="searchForm.displayId" v-model="searchForm.displayId"
placeholder="大哥id" placeholder="大哥id"
size="large" size="large"
style="width: 160px; margin-left: 50px" style="width: 160px;"
class="right-input"
clearable clearable
/> />
<el-button <el-button
class="serch-button" class="serch-button right-input"
style="margin-left: 50px"
type="primary" type="primary"
@click="serch" @click="serch"
>查询</el-button >查询</el-button
@@ -307,7 +307,7 @@ import EChartsComponent from "@/components/EChartsComponent.vue";
import { ElMessage, ElMessageBox } from "element-plus"; import { ElMessage, ElMessageBox } from "element-plus";
import { color } from "echarts"; import { color } from "echarts";
import { getCountryName } from "@/utils/countryUtil"; import { getCountryName } from "@/utils/countryUtil";
import { ElLoading } from "element-plus";
//ip国家 //ip国家
let countryData = ref(""); let countryData = ref("");
//获取国家 //获取国家
@@ -373,12 +373,18 @@ function BigBrotherstop() {
}); });
} }
function getBigBrother() { function getBigBrother() {
const loading = ElLoading.service({
lock: true,
text: "正在启动...",
background: "rgba(0, 0, 0, 0.7)",
});
queryFormData.value.tenantId = userInfo.value.tenantId; queryFormData.value.tenantId = userInfo.value.tenantId;
queryFormData.value.region = countryData.value; queryFormData.value.region = countryData.value;
controlTask(JSON.stringify(queryFormData.value)).then((res) => { controlTask(JSON.stringify(queryFormData.value)).then((res) => {
queryFormData.value.isRunning = false; queryFormData.value.isRunning = false;
timerId.value = setInterval(() => { timerId.value = setInterval(() => {
getBrotherInfo().then((res) => { getBrotherInfo().then((res) => {
loading.close();
getBrotherInfodata.value = res; getBrotherInfodata.value = res;
}); });
}, 1000); }, 1000);
@@ -404,7 +410,7 @@ let labelList = ref([
{ paramCode: "userIdStr", paramCodeMeaning: "用户id" }, { paramCode: "userIdStr", paramCodeMeaning: "用户id" },
{ paramCode: "level", paramCodeMeaning: "等级" }, { paramCode: "level", paramCodeMeaning: "等级" },
{ paramCode: "hostcoins", paramCodeMeaning: "打赏的金币" }, { paramCode: "hostcoins", paramCodeMeaning: "打赏的金币" },
{ paramCode: "totalGiftCoins", paramCodeMeaning: "打赏金币总和" }, { paramCode: "totalGiftCoins", paramCodeMeaning: "最低打赏金币" },
{ paramCode: "hostDisplayId", paramCodeMeaning: "所在直播间主播id" }, { paramCode: "hostDisplayId", paramCodeMeaning: "所在直播间主播id" },
{ paramCode: "region", paramCodeMeaning: "地区" }, { paramCode: "region", paramCodeMeaning: "地区" },
{ paramCode: "followerCount", paramCodeMeaning: "粉丝数" }, { paramCode: "followerCount", paramCodeMeaning: "粉丝数" },
@@ -814,4 +820,11 @@ function openHTML(id) {
::v-deep(.el-pagination.is-background .el-pager li.is-active) { ::v-deep(.el-pagination.is-background .el-pager li.is-active) {
background-color: @bg-color; background-color: @bg-color;
} }
.right-input {
margin-left: 20px;
}
.right-text{
color: #666;
font-size: 16px;
}
</style> </style>

View File

@@ -121,6 +121,7 @@ import { setNumData, getNumData, getUser, setTkUser, getTkUser } from '@/utils/s
import { ElMessage, ElMessageBox } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus'
import { getCountryName } from '@/utils/countryUtil' import { getCountryName } from '@/utils/countryUtil'
import { tkaccountuseinfo } from '@/api/account' import { tkaccountuseinfo } from '@/api/account'
//导入python交互方法 //导入python交互方法
const { fetchDataConfig, fetchDataCount, loginBackStage, loginTikTok, backStageloginStatus, backStageloginStatusCopy } = usePythonBridge(); const { fetchDataConfig, fetchDataCount, loginBackStage, loginTikTok, backStageloginStatus, backStageloginStatusCopy } = usePythonBridge();