|
|
@@ -229,7 +229,6 @@
|
|
|
import { ref, reactive, h } from 'vue'
|
|
|
import { useUserStore } from '@/store/modules/user'
|
|
|
import { accountList, deleteAccount, addAccount, changeAutoRun, singleRun } from '@/api/lepao'
|
|
|
-import { getCount } from '@/api/goods'
|
|
|
import { Modal, Notification, Message } from '@arco-design/web-vue'
|
|
|
import { IconSearch } from '@arco-design/web-vue/es/icon'
|
|
|
import userCard from './components/userCard.vue'
|
|
|
@@ -256,33 +255,12 @@ const data = ref([])
|
|
|
const loading = ref(false)
|
|
|
|
|
|
const email = ref('')
|
|
|
-const userCount = ref({})
|
|
|
const getuser = async () => {
|
|
|
const userStore = useUserStore()
|
|
|
let userInfo = await userStore.getInfo()
|
|
|
email.value = userInfo.email
|
|
|
}
|
|
|
|
|
|
-const GetCount = async () => {
|
|
|
- try {
|
|
|
- loading.value = true
|
|
|
- const res = await getCount()
|
|
|
- if (!res || res.code !== 0)
|
|
|
- return Notification.error({
|
|
|
- title: '获取用户数据失败!',
|
|
|
- content: res?.msg ?? '请稍后再试'
|
|
|
- })
|
|
|
- userCount.value = res.data
|
|
|
- } catch (error) {
|
|
|
- Notification.error({
|
|
|
- title: '获取用户数据失败!',
|
|
|
- content: error.message || '请稍后再试'
|
|
|
- })
|
|
|
- } finally {
|
|
|
- loading.value = false
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
const visible = ref(false)
|
|
|
const ok_loading = ref(false)
|
|
|
const form = reactive({
|
|
|
@@ -462,7 +440,6 @@ const stramptoTime = (time) => {
|
|
|
|
|
|
getAccounts()
|
|
|
getuser()
|
|
|
-GetCount()
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|