2024-11-08 16:18:15 +08:00
|
|
|
import { defineStore } from 'pinia'
|
|
|
|
|
|
|
|
export const useDailyStore = defineStore('daily', {
|
|
|
|
state: () => ({
|
|
|
|
userdailyinspection: [],
|
|
|
|
base64_1: '',
|
|
|
|
base64_2: '',
|
|
|
|
|
|
|
|
}),
|
|
|
|
actions: {
|
|
|
|
dailyinspectionList(data) {
|
|
|
|
this.userdailyinspection = [...data]
|
|
|
|
},
|
|
|
|
change_base64_1(data) {
|
|
|
|
this.base64_1 = data
|
|
|
|
},
|
|
|
|
change_base64_2(data) {
|
|
|
|
this.base64_2 = data
|
|
|
|
},
|
2024-11-12 09:47:29 +08:00
|
|
|
clearSignData() {
|
|
|
|
this.base64_1 = ''
|
|
|
|
this.base64_2 = ''
|
2024-11-08 16:18:15 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
getters: {
|
|
|
|
getdailyinspection(state) {
|
|
|
|
return state.userdailyinspection
|
|
|
|
},
|
|
|
|
get_base64_1(state) {
|
|
|
|
return state.base64_1
|
|
|
|
},
|
|
|
|
get_base64_2(state) {
|
|
|
|
return state.base64_2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|