fix: cannot save data fields in lead page
(cherry picked from commit 970c215f40f3bbecc21253ca7e05a5ec68508fd0)
This commit is contained in:
parent
3a88910711
commit
742fd750cf
@ -66,6 +66,7 @@
|
||||
v-model:reload="reload"
|
||||
v-model:tabIndex="tabIndex"
|
||||
v-model="lead"
|
||||
@beforeSave="saveChanges"
|
||||
@afterSave="reloadAssignees"
|
||||
/>
|
||||
</template>
|
||||
@ -537,6 +538,12 @@ function openEmailBox() {
|
||||
nextTick(() => (activities.value.emailBox.show = true))
|
||||
}
|
||||
|
||||
function saveChanges(data) {
|
||||
document.save.submit(null, {
|
||||
onSuccess: () => reloadAssignees(data),
|
||||
})
|
||||
}
|
||||
|
||||
function reloadAssignees(data) {
|
||||
if (data?.hasOwnProperty('lead_owner')) {
|
||||
assignees.reload()
|
||||
|
||||
@ -95,6 +95,8 @@
|
||||
v-model:reload="reload"
|
||||
v-model:tabIndex="tabIndex"
|
||||
v-model="lead"
|
||||
@beforeSave="saveChanges"
|
||||
@afterSave="reloadAssignees"
|
||||
/>
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
@ -479,6 +481,12 @@ async function triggerStatusChange(value) {
|
||||
document.save.submit()
|
||||
}
|
||||
|
||||
function saveChanges(data) {
|
||||
document.save.submit(null, {
|
||||
onSuccess: () => reloadAssignees(data),
|
||||
})
|
||||
}
|
||||
|
||||
function reloadAssignees(data) {
|
||||
if (data?.hasOwnProperty('lead_owner')) {
|
||||
assignees.reload()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user