yyb
7 天以前 5e0d63ccef8c8fc5763cf663aee0c1778113a818
src/pages/inspectionUpload/index.vue
@@ -16,7 +16,7 @@
              <text class="task-location">{{ item.inspectionLocation }}</text>
            </view>
            <view class="task-actions">
              <u-button type="primary"
              <!-- <u-button type="primary"
                        size="small"
                        @click.stop="startScanForTask(item)"
                        :customStyle="{
@@ -26,6 +26,17 @@
                marginRight: '8px'
              }">
                扫码上传
              </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"
@@ -855,6 +866,12 @@
    }
  };
  // 图片上传(可选择图片上传或者是相机拍照)
  const startUploadForTask = async (task, type) => {
    // 直接打开上传弹窗
    openUploadDialog(task);
  };
  // 查看附件
  const viewAttachments = async task => {
    try {