|
@@ -29,7 +29,10 @@
|
|
|
:is-grid-layout="isGridLayout" @action="handleAction" @copy="handleCopy"
|
|
:is-grid-layout="isGridLayout" @action="handleAction" @copy="handleCopy"
|
|
|
@change-password="handleChangePassword" />
|
|
@change-password="handleChangePassword" />
|
|
|
</view>
|
|
</view>
|
|
|
- <cwg-empty-state v-else />
|
|
|
|
|
|
|
+ <view class="table-loading-mask">
|
|
|
|
|
+ <uni-loading v-if="loading" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <cwg-empty-state v-if="!loading && accounts.length == 0" />
|
|
|
<DeleteAccountDialogs ref="deleteAccountDialogRef" v-model:visible="deleteAccountDialogVisible" />
|
|
<DeleteAccountDialogs ref="deleteAccountDialogRef" v-model:visible="deleteAccountDialogVisible" />
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -172,7 +175,7 @@ watch(cativeIndex, (newVal) => {
|
|
|
// search.value.platform = tabs.value[newVal].id
|
|
// search.value.platform = tabs.value[newVal].id
|
|
|
getAccountList()
|
|
getAccountList()
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
|
|
+const loading = ref(false)
|
|
|
// 获取客户登录信息
|
|
// 获取客户登录信息
|
|
|
async function getCustomLoginInfo() {
|
|
async function getCustomLoginInfo() {
|
|
|
try {
|
|
try {
|
|
@@ -195,7 +198,7 @@ async function getCustomLoginInfo() {
|
|
|
const AccountList = ref([])
|
|
const AccountList = ref([])
|
|
|
const getAccountList = async () => {
|
|
const getAccountList = async () => {
|
|
|
AccountList.value = []
|
|
AccountList.value = []
|
|
|
-
|
|
|
|
|
|
|
+ loading.value = true
|
|
|
const api = cativeIndex.value == 1 ? customApi.demoList : customApi.AccountAllList
|
|
const api = cativeIndex.value == 1 ? customApi.demoList : customApi.AccountAllList
|
|
|
const res = await api({
|
|
const res = await api({
|
|
|
page: {
|
|
page: {
|
|
@@ -206,6 +209,7 @@ const getAccountList = async () => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
AccountList.value = res.data
|
|
AccountList.value = res.data
|
|
|
}
|
|
}
|
|
|
|
|
+ loading.value = false
|
|
|
}
|
|
}
|
|
|
// 格式化数值函数
|
|
// 格式化数值函数
|
|
|
function formatMoney(value) {
|
|
function formatMoney(value) {
|