setup版本代码优化
This commit is contained in:
@@ -217,8 +217,6 @@ import { formatBoolean, formatDate } from '@/utils/format'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const dialogFormVisible = ref(false)
|
||||
const type = ref('')
|
||||
const formData = ref({
|
||||
name: null,
|
||||
type: null,
|
||||
@@ -306,6 +304,8 @@ const toDetile = (row) => {
|
||||
})
|
||||
}
|
||||
|
||||
const dialogFormVisible = ref(false)
|
||||
const type = ref('')
|
||||
const updateSysDictionaryFunc = async(row) => {
|
||||
const res = await findSysDictionary({ ID: row.ID })
|
||||
type.value = 'update'
|
||||
|
||||
@@ -133,8 +133,6 @@ import { ElMessage } from 'element-plus'
|
||||
import { formatBoolean, formatDate } from '@/utils/format'
|
||||
const route = useRoute()
|
||||
|
||||
const dialogFormVisible = ref(false)
|
||||
const type = ref('')
|
||||
const formData = ref({
|
||||
label: null,
|
||||
value: null,
|
||||
@@ -212,6 +210,8 @@ const getTableData = async() => {
|
||||
|
||||
getTableData()
|
||||
|
||||
const type = ref('')
|
||||
const dialogFormVisible = ref(false)
|
||||
const updateSysDictionaryDetailFunc = async(row) => {
|
||||
const res = await findSysDictionaryDetail({ ID: row.ID })
|
||||
type.value = 'update'
|
||||
|
||||
Reference in New Issue
Block a user