修改终端周期监测时间问题

This commit is contained in:
GGJ
2024-09-14 11:14:13 +08:00
parent 703a84a978
commit 5cf6144763
2 changed files with 6 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
:validate-on-rule-change="false"
:scroll-to-error="true"
ref="ruleFormRef"
:rules="rules"
label-width="auto"
class="form-two"
>
@@ -196,6 +197,9 @@ const props = defineProps({
type: String
}
})
const rules = {
goToNetReport: [{ required: true, message: '请上传报告', trigger: 'blur' }]
}
const emits = defineEmits(['onSubmit'])
const dictData = useDictData()
const dialogFormVisible = ref(false)
@@ -286,7 +290,6 @@ resetForm()
const detailLoading = ref(false) // 表单的加载中
const getInfo = async (row?: any) => {
detailLoading.value = true
try {
await getUserReportById(props.id).then(res => {

View File

@@ -104,13 +104,14 @@ const open = async (text: string, tempData?: any) => {
form.value.dept = tempData.dept
form.value.deviceName = tempData.deviceName
form.value.status = tempData.status
if (tempData.status == null) {
form.value.reportPath = []
form.value.description = ''
} else {
form.value.reportPath = [{ name: tempData.checkFilePath.split('/')[2] }]
form.value.description = tempData.description
form.value.nowCheckTime = tempData.nowCheckTime
form.value.nowCheckTime = tempData.thisTimeCheck
}
}