fix:修改代金卷时间选择器
Build and Deploy Vue3 / build (push) Successful in 5m46s
Build and Deploy Vue3 / deploy (push) Failing after 1m41s

This commit is contained in:
2026-01-08 18:40:32 +08:00
parent d3479fb0bb
commit cae89dd5ad
2 changed files with 45 additions and 7 deletions
+9 -3
View File
@@ -392,7 +392,7 @@
</template>
<script setup>
import { ref, reactive, onMounted } from 'vue'
import { ref, reactive, onMounted, nextTick } from 'vue'
import { getFileDetail } from '@/api/admin/file'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus, Delete, Search, Refresh } from '@element-plus/icons-vue'
@@ -821,7 +821,9 @@ const handleAddParameter = () => {
arg_min: 0,
arg_max: 100
})
paramFormRef.value?.resetFields()
nextTick(() => {
paramFormRef.value?.resetFields()
})
}
// 编辑参数
@@ -921,6 +923,7 @@ const fetchParamValuesList = async () => {
const handleAddParamValue = () => {
paramValueFormType.value = 'add'
paramValueFormDialogVisible.value = true
// 先重置表单数据
Object.assign(paramValueForm, {
attr_id: undefined,
attr_name: '',
@@ -930,7 +933,10 @@ const handleAddParamValue = () => {
attr_range: 0,
range_type: 'equal'
})
paramValueFormRef.value?.resetFields()
// 等待 DOM 更新后再重置表单验证状态
nextTick(() => {
paramValueFormRef.value?.resetFields()
})
}
// 编辑参数值