粉丝更新

This commit is contained in:
2025-07-08 21:23:12 +08:00
parent e415d50c7c
commit 65e24c51d9
16 changed files with 1707 additions and 48 deletions

View File

@@ -104,7 +104,7 @@
<!-- 列表区域 -->
<ContentWrap>
<!-- PC 端使用 table -->
<el-table v-if="!isMobile" v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true"
<el-table v-if="!isMobile" v-loading="loading" :data="list" :stripe="true"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
@@ -133,7 +133,7 @@
<el-table-column :label="$t('employee.remark')" align="center" prop="remake" />
<el-table-column :label="$t('employee.operationStatus')" align="center" prop="operationStatus">
<template #default="scope">
<dict-tag :type="DICT_TYPE.OPERATION_STATE" :value="scope.row.operationStatus" />
<dict-tag :type="DICT_TYPE.x" :value="scope.row.operationStatus" />
</template>
</el-table-column>
<el-table-column :label="$t('employee.createTime')" align="center" prop="createTime" :formatter="dateFormatter"
@@ -169,7 +169,7 @@
<div class="card-row"><b>{{ $t('employee.updateTime') }}</b>{{ formatTimestamp(item.updateTime) }}</div>
<div class="card-row action-row">
<el-button link type="primary" @click="openForm('update', item.id, index)">{{ $t('employee.edit')
}}</el-button>
}}</el-button>
</div>
</div>
</div>
@@ -361,7 +361,7 @@ const getAllocationList = async () => {
function openHtml(item, id) {
let data = item
data.operationStatus = 1
EmployeeHostsApi.updateEmployeeHosts(data).then(res => {
EmployeeHostsApi.updateEmployeeHosts({ id: data.id, operationStatus: 1 }).then(res => {
getList()
})
window.open(`https://www.tiktok.com/@${id}`)
@@ -422,6 +422,8 @@ function AllocationFun() {
EmployeeHostsApi.updateBatchEmployeeHosts(data).then(res => {
console.log(res)
handleQuery()
message.success('分配成功')
})
dialogAllocation.value = false