"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[49082],{49082:function(e,t,i){i.r(t),i.d(t,{default:function(){return f}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"photo-img"},[e.fileList.length?t("van-uploader",{staticClass:"preview-btn",attrs:{multiple:""},model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}}):e._e(),t("van-uploader",{staticClass:"camera-btn",attrs:{multiple:"","after-read":e.beforeRead,capture:"camera"},model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}},[t("van-button",{attrs:{round:"",type:"info"}},[e._v("相机")])],1),t("van-uploader",{staticClass:"local-btn",attrs:{"after-read":e.beforeRead,multiple:""},model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}},[t("van-button",{attrs:{round:"",type:"info"}},[e._v("本地相册")])],1)],1)},l=[],s={data(){return{fileList:[]}},methods:{beforeRead(e){console.log(e,e.file,"file");const t=new FormData;t.append("file",e.file),this.$store.dispatch({type:"ship/inspectionFileInfo",payload:{file:t,token:this.$route.query.id}}).then((e=>{}))}}},n=s,o=i(81656),r=(0,o.A)(n,a,l,!1,null,"5561190f",null),f=r.exports}}]);