42 lines
925 B
TypeScript
42 lines
925 B
TypeScript
|
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) {
|
||
|
// console.log("🚀 ~ change_base64_1 ~ data:", data)
|
||
|
this.base64_1 = data
|
||
|
},
|
||
|
change_base64_2(data) {
|
||
|
this.base64_2 = data
|
||
|
},
|
||
|
cleardailtcolour() {
|
||
|
this.userdailyinspection = {
|
||
|
...this.userdailyinspection,
|
||
|
markColor: this.userdailyinspection.markColor,
|
||
|
markColor1: this.userdailyinspection.markColor,
|
||
|
comment: ''
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
getters: {
|
||
|
getdailyinspection(state) {
|
||
|
return state.userdailyinspection
|
||
|
},
|
||
|
get_base64_1(state) {
|
||
|
return state.base64_1
|
||
|
},
|
||
|
get_base64_2(state) {
|
||
|
return state.base64_2
|
||
|
}
|
||
|
}
|
||
|
})
|