|
|
|
@ -42,6 +42,7 @@
|
|
|
|
|
:is-form="isForm" |
|
|
|
|
:column="column" |
|
|
|
|
:is-locked="isLocked" |
|
|
|
|
v-on="parentListeners" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<boolean-cell |
|
|
|
@ -74,6 +75,7 @@
|
|
|
|
|
v-else-if="isTime" |
|
|
|
|
v-model="localState" |
|
|
|
|
v-on="parentListeners" |
|
|
|
|
@save="$emit('save')" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<date-time-picker-cell |
|
|
|
@ -95,7 +97,6 @@
|
|
|
|
|
:is-form="isForm" |
|
|
|
|
:column="column" |
|
|
|
|
v-on="parentListeners" |
|
|
|
|
@input="$emit('save')" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<json-editable-cell |
|
|
|
@ -111,7 +112,6 @@
|
|
|
|
|
v-model="localState" |
|
|
|
|
:column="column" |
|
|
|
|
v-on="parentListeners" |
|
|
|
|
@input="$emit('save')" |
|
|
|
|
/> |
|
|
|
|
<set-list-cell |
|
|
|
|
v-else-if="isSet" |
|
|
|
@ -210,10 +210,10 @@ export default {
|
|
|
|
|
if (val !== this.value) { |
|
|
|
|
this.changed = true |
|
|
|
|
this.$emit('input', val) |
|
|
|
|
if (this.isAttachment || this.isBoolean || this.isRating || this.isTime || this.isDateTime || this.isDate || this.isDuration) { |
|
|
|
|
this.syncData() |
|
|
|
|
} else if (!this.isCurrency && !this.isEnum && !this.isSet) { |
|
|
|
|
if (this.isAutoSaved) { |
|
|
|
|
this.syncDataDebounce(this) |
|
|
|
|
} else if (!this.isManualSaved) { |
|
|
|
|
this.saveData() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -241,7 +241,7 @@ export default {
|
|
|
|
|
// this.$refs.input.focus(); |
|
|
|
|
}, |
|
|
|
|
beforeDestroy() { |
|
|
|
|
if (this.changed && !(this.isAttachment || this.isBoolean || this.isRating || this.isTime || this.isDateTime || this.isDuration)) { |
|
|
|
|
if (this.changed && this.isAutoSaved) { |
|
|
|
|
this.changed = false |
|
|
|
|
this.$emit('change') |
|
|
|
|
} |
|
|
|
@ -253,6 +253,12 @@ export default {
|
|
|
|
|
this.changed = false |
|
|
|
|
this.$emit('update') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
saveData() { |
|
|
|
|
if (this.changed && !this.destroyed) { |
|
|
|
|
this.changed = false |
|
|
|
|
this.$emit('save') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|