|
|
@ -155,10 +155,7 @@ const dialogTitle = ref('') // 弹窗的标题 |
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 |
|
|
|
const formType = ref('') // 表单的类型:create - 新增;update - 修改 |
|
|
|
const formRef = ref() // 表单 Ref |
|
|
|
const change = (e) => { |
|
|
|
console.log(e); |
|
|
|
|
|
|
|
} |
|
|
|
const formStrategyCode = ref('') |
|
|
|
// form表单数据 |
|
|
|
const formData = ref({ |
|
|
@ -294,7 +291,6 @@ const submitForm = async () => { |
|
|
|
if (!formRef) return |
|
|
|
const valid = await formRef.value.validate() |
|
|
|
if (!valid) return |
|
|
|
console.log(formData.value); |
|
|
|
// 提交请求 |
|
|
|
formLoading.value = true |
|
|
|
try { |
|
|
@ -406,8 +402,6 @@ const inputNumberBlur=()=>{ |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
console.log(arr); |
|
|
|
|
|
|
|
const isEmpty = arr.some(cur => { |
|
|
|
return !cur |
|
|
|
}) |
|
|
|