Update edit-archive.vue
This commit is contained in:
parent
f7a0e9454c
commit
266db3cfa4
@ -190,6 +190,7 @@ async function init() {
|
|||||||
await getCustomer();
|
await getCustomer();
|
||||||
} else {
|
} else {
|
||||||
const res = await getArchives();
|
const res = await getArchives();
|
||||||
|
console.log('res:', res)
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
@ -204,13 +205,9 @@ async function init() {
|
|||||||
|
|
||||||
async function getArchives() {
|
async function getArchives() {
|
||||||
const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: account.value?.mobile || '' });
|
const res = await api('getUnbindMiniAppCustomers', { corpId: corpId.value, mobile: account.value?.mobile || '' });
|
||||||
if (res && res.success) {
|
customers.value = res && Array.isArray(res.data) ? res.data : [];
|
||||||
corpName.value = res.corpName;
|
corpName.value = res && res.corpName ? res.corpName : '';
|
||||||
customers.value = Array.isArray(res.data) ? res.data : [];
|
return customers.value
|
||||||
} else {
|
|
||||||
// toast(res?.message || '查询档案信息失败');
|
|
||||||
}
|
|
||||||
return []
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getBaseForm() {
|
async function getBaseForm() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user