setup版本代码优化
This commit is contained in:
@@ -81,8 +81,6 @@ import { ref } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { formatDate } from '@/utils/format'
|
||||
|
||||
const dialogFormVisible = ref(false)
|
||||
const type = ref('')
|
||||
const form = ref({
|
||||
customerName: '',
|
||||
customerPhoneData: ''
|
||||
@@ -117,6 +115,8 @@ const getTableData = async() => {
|
||||
|
||||
getTableData()
|
||||
|
||||
const dialogFormVisible = ref(false)
|
||||
const type = ref('')
|
||||
const updateCustomer = async(row) => {
|
||||
const res = await getExaCustomer({ ID: row.ID })
|
||||
type.value = 'update'
|
||||
|
||||
@@ -82,7 +82,6 @@ const store = useStore()
|
||||
const path = ref(import.meta.env.VITE_BASE_API)
|
||||
const token = computed(() => store.getters['user/token'])
|
||||
|
||||
const fullscreenLoading = ref(false)
|
||||
const imageUrl = ref('')
|
||||
|
||||
const page = ref(1)
|
||||
@@ -139,6 +138,8 @@ const deleteFileFunc = async(row) => {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
const fullscreenLoading = ref(false)
|
||||
const checkFile = (file) => {
|
||||
fullscreenLoading.value = true
|
||||
const isJPG = file.type === 'image/jpeg'
|
||||
|
||||
Reference in New Issue
Block a user