2020-01-30 01:20:56 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import { Component } from 'vue-property-decorator'
|
|
|
|
|
|
|
|
|
|
import { GlobalStore } from '@store'
|
|
|
|
|
import { tools } from '../../../store/Modules/tools'
|
|
|
|
|
import { UserStore } from '../../../store/Modules'
|
|
|
|
|
import { CTitleBanner } from '../../../components/CTitleBanner'
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
components: { CTitleBanner }
|
|
|
|
|
})
|
|
|
|
|
export default class Dbop extends Vue {
|
2020-02-19 16:10:05 +01:00
|
|
|
public $t
|
|
|
|
|
public ris: any
|
|
|
|
|
public riga: number = 0
|
|
|
|
|
public col: number = 0
|
|
|
|
|
public placca: string = ''
|
2020-01-30 01:20:56 +01:00
|
|
|
|
2020-02-19 16:10:05 +01:00
|
|
|
public async EseguiFunz(miafunz) {
|
|
|
|
|
this.$q.dialog({
|
|
|
|
|
message: 'Continuare ' + miafunz + ' ?',
|
|
|
|
|
cancel: {
|
|
|
|
|
label: this.$t('dialog.cancel')
|
|
|
|
|
},
|
|
|
|
|
ok: {
|
|
|
|
|
label: this.$t('dialog.yes'),
|
|
|
|
|
push: true
|
|
|
|
|
},
|
|
|
|
|
title: 'Funzione:'
|
|
|
|
|
}).onOk(async () => {
|
|
|
|
|
const mydata = {
|
|
|
|
|
dbop: miafunz,
|
|
|
|
|
riga: this.riga,
|
|
|
|
|
col: this.col
|
|
|
|
|
}
|
|
|
|
|
this.ris = await UserStore.actions.execDbOp({ mydata })
|
2020-01-30 01:20:56 +01:00
|
|
|
|
2020-02-19 16:10:05 +01:00
|
|
|
if (miafunz === 'visuPlacca') {
|
|
|
|
|
this.placca = this.ris.placca
|
|
|
|
|
}
|
2020-01-30 01:20:56 +01:00
|
|
|
|
2020-02-19 16:10:05 +01:00
|
|
|
})
|
2020-01-30 01:20:56 +01:00
|
|
|
}
|
|
|
|
|
}
|