|
|
@@ -112,6 +112,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
openPopup() {
|
|
|
+ this.$util.hitVoice()
|
|
|
this.currentSelectedId = this.value; // Reset to current value when opening
|
|
|
this.$refs.popup.open();
|
|
|
},
|
|
|
@@ -119,17 +120,19 @@ export default {
|
|
|
this.$refs.popup.close();
|
|
|
},
|
|
|
selectHb(item) {
|
|
|
+ this.$util.hitVoice()
|
|
|
this.currentSelectedId = item ? item.id : null;
|
|
|
},
|
|
|
- confirmSelection() {
|
|
|
- this.$emit('input', this.currentSelectedId); // Update v-model
|
|
|
- const selectedItem = this.hbData.find(item => item.id == this.currentSelectedId);
|
|
|
- this.$emit('change', selectedItem || null);
|
|
|
- this.closePopup();
|
|
|
- },
|
|
|
- cancelSelection() {
|
|
|
- this.closePopup();
|
|
|
- },
|
|
|
+ confirmSelection() {
|
|
|
+ this.$util.hitVoice()
|
|
|
+ this.$emit('input', this.currentSelectedId)
|
|
|
+ const selectedItem = this.hbData.find(item => item.id == this.currentSelectedId)
|
|
|
+ this.$emit('change', selectedItem || null)
|
|
|
+ this.closePopup()
|
|
|
+ },
|
|
|
+ cancelSelection() {
|
|
|
+ this.closePopup();
|
|
|
+ },
|
|
|
formatTime(timestamp) {
|
|
|
if (!timestamp) return '';
|
|
|
let date;
|