ZN
10 天以前 02e0adf4b1038a1a3a1dad83bc8270cbad4e0b7b
src/pages/inspectionUpload/index.vue
@@ -27,6 +27,17 @@
              }">
                扫码上传
              </u-button>
              <u-button type="primary"
                        size="small"
                        @click.stop="startUploadForTask(item)"
                        :customStyle="{
                borderRadius: '15px',
                height: '30px',
                fontSize: '12px',
                marginRight: '8px'
              }">
                图片上传
              </u-button>
              <u-button type="success"
                        size="small"
                        @click.stop="viewAttachments(item)"
@@ -855,6 +866,12 @@
    }
  };
  // 图片上传(可选择图片上传或者是相机拍照)
  const startUploadForTask = async (task, type) => {
    // 直接打开上传弹窗
    openUploadDialog(task);
  };
  // 查看附件
  const viewAttachments = async task => {
    try {