setup版本代码优化

This commit is contained in:
piexlmax
2021-12-31 03:04:38 +08:00
parent 7fd4b1d0f5
commit 236d3c7f33
11 changed files with 80 additions and 41 deletions
+2 -2
View File
@@ -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'