fix:修改代金卷时间选择器
This commit is contained in:
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
// 编辑参数值
|
||||
|
||||
Reference in New Issue
Block a user