吉安感知网项目-前端
chenyao
2026-01-28 bcb34e720eb55bc1f9d03d4b4bca557a4b93d4e5
applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue
@@ -7,7 +7,7 @@
      destroy-on-close
      :close-on-click-modal="false"
   >
      <div class="detail-container" v-if="dialogReadonly">
      <div class="detail-container  detail-container1" v-if="dialogReadonly">
         <el-row class="detail-row-view">
            <el-col :span="12">
               <div class="label">标题</div>
@@ -315,9 +315,7 @@
// 文件移除
const handleFileRemove = (file, fileListVal) => {
   if (file.response && file.response.attachId) {
      uploadedFiles.value = uploadedFiles.value.filter(item => item.attachId !== file.response.attachId)
   }
uploadedFiles.value = fileListVal
}
// 上传前验证
@@ -359,7 +357,11 @@
async function submitForm(objectionStatus) {
   const isValid = await formRef.value?.validate().catch(() => false)
   if (!isValid) return
   if (uploadedFiles.value.length === 0) {
      return ElMessage.warning('请上传附件')
   }
   submitting.value = true
   try {
      // 构建符合接口要求的提交数据
      const submitData = {
@@ -479,6 +481,10 @@
</script>
<style scoped lang="scss">
.detail-container1 {
display: flex;
flex-direction: column;
}
.upload-container {
   width: 100%;
}