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