初始化列表
This commit is contained in:
@@ -14,7 +14,7 @@ let baseURL = ''
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// 生产环境
|
||||
baseURL = "http://120.26.251.180:8085/"
|
||||
// baseURL = "http://192.168.0.115:8085/"
|
||||
// baseURL = "http://192.168.0.116:8085/"
|
||||
} else {
|
||||
// 开发环境
|
||||
baseURL = "http://120.26.251.180:8085/"
|
||||
|
||||
@@ -247,6 +247,9 @@ onMounted(() => {
|
||||
getStaff();
|
||||
//获取国家
|
||||
getCountry();
|
||||
|
||||
|
||||
getlist();//获取主播列表
|
||||
})
|
||||
|
||||
function serch() {
|
||||
@@ -259,8 +262,8 @@ function exportList() {
|
||||
searchForm.value.dataEnd = searchForm.value.dataStart
|
||||
}
|
||||
exportToExcel({
|
||||
searchTime: searchForm.value.time,
|
||||
region: searchForm.value.country,
|
||||
searchTime: searchForm.value.time == '' ? null : searchForm.value.time,
|
||||
region: searchForm.value.country == '' ? null : searchForm.value.country,
|
||||
dataType: searchForm.value.dataType == '' ? null : searchForm.value.dataType,
|
||||
dataStart: searchForm.value.dataStart == '' ? null : searchForm.value.dataStart,
|
||||
dataEnd: searchForm.value.dataEnd == '' ? null : searchForm.value.dataEnd,
|
||||
@@ -317,8 +320,8 @@ const getlist = () => {
|
||||
loading.value = true
|
||||
console.log(searchForm.value)
|
||||
tkhostdata({
|
||||
searchTime: searchForm.value.time,
|
||||
region: searchForm.value.country,
|
||||
searchTime: searchForm.value.time == '' ? null : searchForm.value.time,
|
||||
region: searchForm.value.country == '' ? null : searchForm.value.country,
|
||||
dataType: searchForm.value.dataType == '' ? null : searchForm.value.dataType,
|
||||
dataStart: searchForm.value.dataStart == '' ? null : searchForm.value.dataStart,
|
||||
dataEnd: searchForm.value.dataEnd == '' ? null : searchForm.value.dataEnd,
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<div>可邀请: <span>{{ hostData.canInvitationCount }}</span></div>
|
||||
|
||||
</div>
|
||||
<!-- <div class="center-line" style="padding-top: 15vh;">
|
||||
<div class="center-line" style="padding-top: 15vh;">
|
||||
<el-button class="open-login" type="primary" @click="openTK">开启tk</el-button>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<el-button class="open-login" style="margin-left: 60px;"
|
||||
:disabled="!(tkData[index].code == 0 && !isLogin[index])" type="primary"
|
||||
@click="loginTK(index)">登录tk</el-button>
|
||||
@click="loginTK(index)">登录后台</el-button>
|
||||
<div v-if="tkData[index].code == 0" class="loginState"></div>
|
||||
<div v-if="tkData[index].code == 1" class="loginState" style="background-color: green;"></div>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<!-- <el-button class="reset-button" @click="reset">重置数据</el-button> -->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>n
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="8">
|
||||
<div class="input-group">
|
||||
@@ -177,7 +177,7 @@ let pyData = ref({
|
||||
});
|
||||
|
||||
//按钮提交状态
|
||||
let submitting = ref(false);
|
||||
let submitting = ref(true);
|
||||
|
||||
onMounted(() => {
|
||||
//从缓存获取数据
|
||||
@@ -341,12 +341,12 @@ const loginTK = (index) => {
|
||||
|
||||
}
|
||||
|
||||
// const openTK = () => {
|
||||
// isTk.value = true;
|
||||
// console.log(isTk.value)
|
||||
// loginTikTok();
|
||||
const openTK = () => {
|
||||
// isTk.value = true;
|
||||
// console.log(isTk.value)
|
||||
loginTikTok();
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
function getloginStatus() {
|
||||
backStageloginStatus().then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user