|
|
@@ -270,7 +270,6 @@
|
|
|
<a-doption @click="SingleRun(record)"><icon-play-circle /> 开始单次乐跑</a-doption>
|
|
|
<a-doption @click="ChangeAutoRun(record)"><icon-translate /> {{ record.auto_run ? '关闭' :
|
|
|
'开启' }}自动乐跑</a-doption>
|
|
|
- <a-doption @click="openBindAudit()"><icon-history /> 绑定解绑记录</a-doption>
|
|
|
<a-doption @click="UpdateSelfAccount(record)"><icon-refresh /> 更新账号信息</a-doption>
|
|
|
<a-doption @click="DeleteAccount(record)"><icon-minus-circle /> 解绑账号</a-doption>
|
|
|
</template>
|
|
|
@@ -349,39 +348,11 @@
|
|
|
|
|
|
<faceModal :faceInfo="faceInfo" ref="faceRecoRef" />
|
|
|
<bindBot ref="bindBotRef" />
|
|
|
-
|
|
|
- <a-modal v-model:visible="bindAuditVisible" title="我的绑定解绑记录" :footer="false" width="900px" draggable>
|
|
|
- <a-table :data="bindAuditData" :loading="bindAuditLoading" :pagination="false" :scroll="{ y: 420 }">
|
|
|
- <a-table-column title="学号" data-index="student_num" :width="150" />
|
|
|
- <a-table-column title="乐跑账号" :width="180">
|
|
|
- <template #cell="{ record }">
|
|
|
- <a-space>
|
|
|
- <a-avatar :size="26">
|
|
|
- <img :src="record.lepao_avatar || 'https://lepao-cloud.xxoo365.top/view.php/25aa126dc406974ff3579a99a2c6501a.png'" />
|
|
|
- </a-avatar>
|
|
|
- {{ record.lepao_name || '-' }}
|
|
|
- </a-space>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="类型" :width="130">
|
|
|
- <template #cell="{ record }">
|
|
|
- <a-tag :color="record.action === 'system_unbind' ? 'orangered' : 'arcoblue'">
|
|
|
- {{ record.action_label || '-' }}
|
|
|
- </a-tag>
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column title="时间" :width="200">
|
|
|
- <template #cell="{ record }">
|
|
|
- {{ stramptoTime(record.created_at) }}
|
|
|
- </template>
|
|
|
- </a-table-column>
|
|
|
- </a-table>
|
|
|
- </a-modal>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, reactive, onUnmounted, onMounted, h } from 'vue'
|
|
|
-import { accountList, deleteAccount, addAccount, changeAutoRun, singleRun, updateSelfAccount, getBindAuditList } from '@/api/lepao'
|
|
|
+import { accountList, deleteAccount, addAccount, changeAutoRun, singleRun, updateSelfAccount } from '@/api/lepao'
|
|
|
import { Modal, Notification, Message } from '@arco-design/web-vue'
|
|
|
import { IconSearch } from '@arco-design/web-vue/es/icon'
|
|
|
import userCard from '@/components/userCard/userCard.vue'
|
|
|
@@ -395,11 +366,7 @@ const notice = ref('')
|
|
|
|
|
|
const email = ref([])
|
|
|
const faceInfo = ref({})
|
|
|
-const faceRecoRef = ref(null)
|
|
|
const bindBotRef = ref(null)
|
|
|
-const bindAuditVisible = ref(false)
|
|
|
-const bindAuditLoading = ref(false)
|
|
|
-const bindAuditData = ref([])
|
|
|
|
|
|
const queryDataForm = reactive({
|
|
|
area: '',
|
|
|
@@ -753,30 +720,6 @@ const GetNotice = async () => {
|
|
|
notice.value = res
|
|
|
}
|
|
|
|
|
|
-const openBindAudit = async () => {
|
|
|
- bindAuditVisible.value = true
|
|
|
- bindAuditLoading.value = true
|
|
|
- try {
|
|
|
- const res = await getBindAuditList({
|
|
|
- pagesize: 100,
|
|
|
- current: 1
|
|
|
- })
|
|
|
- if (!res || res.code !== 0)
|
|
|
- return Notification.error({
|
|
|
- title: '获取绑定解绑记录失败',
|
|
|
- content: res?.msg ?? '请稍后再试'
|
|
|
- })
|
|
|
- bindAuditData.value = res.data || []
|
|
|
- } catch (error) {
|
|
|
- Notification.error({
|
|
|
- title: '获取绑定解绑记录失败',
|
|
|
- content: error.message || '请稍后再试'
|
|
|
- })
|
|
|
- } finally {
|
|
|
- bindAuditLoading.value = false
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
const SingleRun = async (item) => {
|
|
|
if (item.state !== 1)
|
|
|
return Notification.warning({
|