|
|
@@ -270,6 +270,7 @@
|
|
|
<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="UpdateSelfAccount(record)"><icon-refresh /> 更新账号信息</a-doption>
|
|
|
<a-doption @click="DeleteAccount(record)"><icon-minus-circle /> 解绑账号</a-doption>
|
|
|
</template>
|
|
|
</a-dropdown>
|
|
|
@@ -290,7 +291,7 @@
|
|
|
<a-form-item field="notice_type" label="通知方式">
|
|
|
<a-radio-group v-model="form.notice_type">
|
|
|
<a-radio value="email"><icon-email /> 邮件</a-radio>
|
|
|
- <a-radio value="bot"><icon-robot /> 智能机器人</a-radio>
|
|
|
+ <!-- <a-radio value="bot"><icon-robot /> 智能机器人</a-radio> -->
|
|
|
<a-radio value="none"><icon-notification-close /> 无通知</a-radio>
|
|
|
</a-radio-group>
|
|
|
</a-form-item>
|
|
|
@@ -337,7 +338,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, reactive, onUnmounted, onMounted, h } from 'vue'
|
|
|
-import { accountList, deleteAccount, addAccount, changeAutoRun, singleRun } 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'
|
|
|
@@ -711,6 +712,27 @@ const ChangeAutoRun = async (record) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const UpdateSelfAccount = async (record) => {
|
|
|
+ try {
|
|
|
+ const res = await updateSelfAccount({
|
|
|
+ student_num: record.student_num
|
|
|
+ })
|
|
|
+ if (!res || res.code !== 0) {
|
|
|
+ return Notification.error({
|
|
|
+ title: '更新账号信息失败!',
|
|
|
+ content: res?.msg ?? '请稍后再试'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ Message.success('更新账号信息成功!')
|
|
|
+ getAccounts()
|
|
|
+ } catch (error) {
|
|
|
+ Notification.error({
|
|
|
+ title: '更新账号信息失败!',
|
|
|
+ content: error.message || '请稍后再试'
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const stramptoTime = (time) => {
|
|
|
return new Date(time).toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' })
|
|
|
}
|