吉安感知网项目-前端
张含笑
2026-01-28 068a41b7ae921f74fde1dd4e0903f7fcfcfaa8e5
feat:弹框调整
3 files modified
25 ■■■■ changed files
applications/task-work-order/src/styles/common/cockpit.scss 2 ●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue 9 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue 14 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/styles/common/cockpit.scss
@@ -475,7 +475,7 @@
    .detail-container {
      display: flex;
      justify-content: space-between;
      height: 680px;
      max-height: 680px;
      .detail-left {
        margin-right: 20px;
applications/task-work-order/src/views/orderView/orderDataManage/dataObjection/FormDiaLog.vue
@@ -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 = {
@@ -482,7 +484,6 @@
.detail-container1 {
display: flex;
flex-direction: column;
height: 100% !important;
}
.upload-container {
    width: 100%;
applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue
@@ -183,21 +183,7 @@
const tableData = ref([]) // 附件表格数据
// 文件移除
const handleFileRemove = (file, fileList) => {
console.log('删除文件', fileList);
uploadedFiles.value = fileList
    // 从已上传文件列表中移除对应文件
    // if (file.response && file.response.attachId) {
    //     // uploadedFiles.value = uploadedFiles.value.filter(item => item.attachId !== file.response.attachId)
    //     // 找到 id=1 的对象的索引
    //     const index = uploadedFiles.value.findIndex(item => item.attachId !== file.response.attachId)
    //     // 如果找到了,移除该对象
    //     if (index !== -1) {
    //         uploadedFiles.value.splice(index, 1)
    //     }
    //     console.log('删除文件', uploadedFiles.value);
    // }
    // 清空响应数据
    if (responseData.value && responseData.value.attachId === file.response?.attachId) {
        responseData.value = null