This commit is contained in:
parent
011c65dcf8
commit
dd09a8cb23
8 changed files with 51 additions and 39 deletions
|
|
@ -220,7 +220,6 @@ withDefaults(
|
|||
hide-action
|
||||
:ocr="
|
||||
async (group, file) => {
|
||||
console.log(group);
|
||||
if (group !== 'attachment') {
|
||||
const res = await ocrStore.sendOcr({
|
||||
file: file,
|
||||
|
|
@ -245,12 +244,20 @@ withDefaults(
|
|||
:auto-save="item.id !== ''"
|
||||
:download="
|
||||
(obj) => {
|
||||
customerStore.getFile({
|
||||
parentId: item.id || '',
|
||||
group: obj.group,
|
||||
fileId: obj._meta.id,
|
||||
download: true,
|
||||
});
|
||||
if (obj.group === 'citizen') {
|
||||
customerStore.getFile({
|
||||
parentId: item.id || '',
|
||||
group: obj.group,
|
||||
fileId: obj._meta.id,
|
||||
download: true,
|
||||
});
|
||||
} else {
|
||||
customerStore.getAttachment({
|
||||
parentId: item.id || '',
|
||||
name: obj._meta.id,
|
||||
download: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
"
|
||||
:delete-item="
|
||||
|
|
@ -279,7 +286,7 @@ withDefaults(
|
|||
_meta: any,
|
||||
file: File | undefined,
|
||||
) => {
|
||||
if (group !== 'attachment') {
|
||||
if (group === 'citizen') {
|
||||
if (file !== undefined && item.id) {
|
||||
const res = await customerStore.postMeta({
|
||||
parentId: item.id || '',
|
||||
|
|
@ -347,7 +354,6 @@ withDefaults(
|
|||
});
|
||||
|
||||
const tempValue = resMeta.map(async (v: any) => {
|
||||
console.log(v.expireDate);
|
||||
return {
|
||||
_meta: { ...v },
|
||||
name: `${group}-${dateFormat(v.expireDate)}`,
|
||||
|
|
@ -368,7 +374,6 @@ withDefaults(
|
|||
});
|
||||
|
||||
const tempValue = (res as string[]).map(async (i: any) => {
|
||||
console.log(i);
|
||||
return {
|
||||
_meta: { id: i, name: i },
|
||||
name: i || '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue