|  | @@ -2,11 +2,7 @@
 | 
	
		
			
				|  |  |    <scroll-view scroll-y>
 | 
	
		
			
				|  |  |      <el-upload
 | 
	
		
			
				|  |  |        v-model:file-list="siteList.recordPictureList"
 | 
	
		
			
				|  |  | -      :class="
 | 
	
		
			
				|  |  | -        settingsStore.inspectionStatus == 2
 | 
	
		
			
				|  |  | -          ? 'avatar-uploader uploadDisabled'
 | 
	
		
			
				|  |  | -          : 'avatar-uploader'
 | 
	
		
			
				|  |  | -      "
 | 
	
		
			
				|  |  | +      :class="settingsStore.inspectionStatus == 2 ? 'avatar-uploader uploadDisabled' : 'avatar-uploader'"
 | 
	
		
			
				|  |  |        :headers="{ Authorization: Authorization }"
 | 
	
		
			
				|  |  |        :action="uploadUrl"
 | 
	
		
			
				|  |  |        :on-success="uploadSuccess"
 | 
	
	
		
			
				|  | @@ -17,11 +13,7 @@
 | 
	
		
			
				|  |  |          <div :id="file.url">
 | 
	
		
			
				|  |  |            <img class="el-upload-list__item-thumbnail" :src="file.url" alt="" />
 | 
	
		
			
				|  |  |            <span class="el-upload-list__item-actions">
 | 
	
		
			
				|  |  | -            <span
 | 
	
		
			
				|  |  | -              v-if="!disabled"
 | 
	
		
			
				|  |  | -              class="el-upload-list__item-delete"
 | 
	
		
			
				|  |  | -              @click="handleRemove(file)"
 | 
	
		
			
				|  |  | -            >
 | 
	
		
			
				|  |  | +            <span v-if="!disabled" class="el-upload-list__item-delete" @click="handleRemove(file)">
 | 
	
		
			
				|  |  |                <el-icon><Delete /></el-icon>
 | 
	
		
			
				|  |  |              </span>
 | 
	
		
			
				|  |  |            </span>
 | 
	
	
		
			
				|  | @@ -46,10 +38,7 @@ const Authorization = uni.getStorageSync("Authorization");
 | 
	
		
			
				|  |  |  const disabled = ref(false);
 | 
	
		
			
				|  |  |  function handleRemove(file) {
 | 
	
		
			
				|  |  |    document.getElementById(file.url).parentNode.remove();
 | 
	
		
			
				|  |  | -  siteList.value.recordPictureList.splice(
 | 
	
		
			
				|  |  | -    siteList.value.recordPictureList.indexOf(file),
 | 
	
		
			
				|  |  | -    1
 | 
	
		
			
				|  |  | -  );
 | 
	
		
			
				|  |  | +  siteList.value.recordPictureList.splice(siteList.value.recordPictureList.indexOf(file), 1);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * @upload图片上传
 | 
	
	
		
			
				|  | @@ -65,9 +54,8 @@ onLoad((options) => {});
 | 
	
		
			
				|  |  |  onMounted(() => {});
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  <style scoped>
 | 
	
		
			
				|  |  | -::v-deep .uploadDisabled .el-upload--picture-card {
 | 
	
		
			
				|  |  | +:deep(.uploadDisabled .el-upload--picture-card) {
 | 
	
		
			
				|  |  |    display: none;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </style>
 |