Merge pull request #157 from dderbentsov/UC-41

Фикс скроллбара клиентов
This commit is contained in:
frontgavrilin
2022-11-25 17:23:37 +03:00
committed by GitHub
4 changed files with 4 additions and 13 deletions

View File

@@ -160,7 +160,6 @@ export default {
createAddress: Function,
createDocument: Function,
addressId: String,
attachmentId: String,
docId: String,
currentYear: Number,
},

View File

@@ -26,7 +26,6 @@
:save-new-doc="saveNewDoc",
:delete-doc="deleteDoc"
:lack-attachments="lackAttachments"
:attachment-id="attachmentId"
)
</template>
@@ -51,7 +50,6 @@ export default {
createAddress: Function,
createDocument: Function,
addressId: String,
attachmentId: String,
docId: String,
currentYear: Number,
},

View File

@@ -142,10 +142,12 @@ export default {
<style lang="sass" scoped>
.wrapper-table
background-color: var(--default-white)
height: calc(100vh - 64px)
.table-container
overflow: auto
&::-webkit-scrollbar
height: 4px
height: 4px
width: 4px
&::-webkit-scrollbar-track
background-color: rgba(211, 212, 220, 0.5)
border-radius: 8px

View File

@@ -82,7 +82,6 @@
:create-address="postCreateAddress"
:create-document="postCreateIdentityDocument"
:address-id="addressId"
:attachment-id="attachmentId"
:doc-id="docId"
:current-year="currentYear"
)
@@ -134,7 +133,6 @@ export default {
dataClient: {},
docId: "",
addressId: "",
attachmentId: "",
lackData: true,
lackAddress: true,
lackAttachments: true,
@@ -293,12 +291,7 @@ export default {
},
saveAttachment(data) {
this.dataAttachments = data.filter((e) => e.person_id.id === this.id);
if (this.dataAttachments[0]?.id) {
this.lackAttachments = true;
this.attachmentId = this.dataAttachments.id;
} else {
this.lackAttachments = false;
}
this.lackAttachments = this.dataAttachments[0]?.id ? true : false;
},
saveIdentityDocument(data) {
if (data?.id) {
@@ -403,7 +396,6 @@ export default {
.post("general/attachment/create/", formData, "formData")
.then(() => this.fetchClientDetail(this.id));
});
this.dataAttachments = [];
},
deleteDoc(attachmentId) {
fetchWrapper