[WIP] Добавил возможность сохранения аватара клиента
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<template lang="pug">
|
||||
.section-wrapper.flex.flex-col.h-fit.cursor-pointer(
|
||||
@click="changeOpenCard",
|
||||
v-click-outside="clickOutside"
|
||||
:style="{flexDirection:settings[section].rowFlex && 'row', width: settings[section].width + 'px', height: settings[section].height + 'px', background: changeBackground}"
|
||||
)
|
||||
.section-header.flex.items-center.justify-between.pl-4.pr-3(:class="{small:settings[section].rowFlex}")
|
||||
@@ -17,12 +15,12 @@
|
||||
)
|
||||
.icon-ok.text-xsm(class="pt-[3px]")
|
||||
.edit.icon-edit.cursor-pointer.text-sm(
|
||||
v-if="openCard && !isChange",
|
||||
v-if="!isChange",
|
||||
@click="changeClientData"
|
||||
)
|
||||
.flex.relative
|
||||
base-button(
|
||||
v-if="settings[section].addFile && openCard",
|
||||
v-if="settings[section].addFile",
|
||||
@click="openAddingWrap",
|
||||
:rounded="true",
|
||||
:outlined="true",
|
||||
@@ -193,12 +191,11 @@ export default {
|
||||
isOpenPackage: false,
|
||||
isOpenAddDoc: false,
|
||||
showModal: false,
|
||||
openCard: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
changeBackground() {
|
||||
return this.openCard || this.isChange
|
||||
return this.isChange
|
||||
? "var(--light-grey-bg-color)"
|
||||
: "var(--default-white)";
|
||||
},
|
||||
@@ -234,15 +231,8 @@ export default {
|
||||
this.showModal = false;
|
||||
this.saveDocs();
|
||||
},
|
||||
changeOpenCard() {
|
||||
this.openCard = true;
|
||||
},
|
||||
clickOutside() {
|
||||
this.openCard = false;
|
||||
},
|
||||
changeDoc() {
|
||||
this.isChange = false;
|
||||
this.openCard = false;
|
||||
if (this.section === "pass") {
|
||||
this.docId ? this.updateDocument() : this.createDocument();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user