| | |
| | | } |
| | | |
| | | const handleRemove = async (file, uploadFiles,type) => { |
| | | if(file && file.status == 'success'){ |
| | | |
| | | |
| | | let path = ''; |
| | | if(type === '上报表'){ |
| | | path = state.registerForm.agency.reportPath; |
| | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | function handleRegister() { |
| | | proxy.$refs.registerRef.validate(valid => { |
| | |
| | | } |
| | | |
| | | const handleRemove = (file, uploadFiles,type) => { |
| | | if(file && file.status == 'success') { |
| | | ElMessageBox.confirm( |
| | | '该操作将永久删除此文件内容,是否继续?', |
| | | '提示', |
| | |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | const onSubmit = async (formEl)=> { |
| | | if (!formEl) return |
| | |
| | | } |
| | | |
| | | const handleRemove = (file, uploadFiles,type) => { |
| | | if(file && file.status == 'success') { |
| | | ElMessageBox.confirm( |
| | | '该操作将永久删除此文件内容,是否继续?', |
| | | '提示', |
| | |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | const onSubmit = async (formEl)=> { |
| | | if (!formEl) return |
| | |
| | | } |
| | | } |
| | | const handleRemove = async (file, uploadFiles) => { |
| | | if(file && file.status == 'success') { |
| | | |
| | | |
| | | console.log("file",file) |
| | | let accessoryFileId = ""; |
| | | if(file.id){ |
| | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | const handleClose = () => { |
| | | state.form = { |
| | |
| | | } |
| | | |
| | | const handleRemove = async (file, uploadFile) => { |
| | | if(file && file.status == 'success') { |
| | | ElMessageBox.confirm( |
| | | '确定删除该附件?', |
| | | '提示', |
| | |
| | | getProcessFiles() |
| | | }) |
| | | } |
| | | } |
| | | |
| | | defineExpose({ |
| | | riskOpen |
| | |
| | | } |
| | | |
| | | const handleRemove = async (file, uploadFiles) => { |
| | | if (file && file.status == 'success') { |
| | | console.log("file",file) |
| | | let accessoryFileId = ""; |
| | | if(file.id){ |
| | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | defineExpose({ |
| | | riskOpen |
| | |
| | | } |
| | | |
| | | const handleRemove = async (file, uploadFiles,type) => { |
| | | |
| | | if(file && file.status == 'success') { |
| | | ElMessageBox.confirm( |
| | | '确定删除该附件?', |
| | | '提示', |
| | |
| | | // getSafetyFiles() |
| | | // } |
| | | }) |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | <el-upload :disabled="projectType === 'view' || isEnd" accept="image/*,.pdf,.doc,.docx" :action="state.uploadUrl" :data="{moduleType: 6,projectId: props.projectId}" :headers="state.header" method="post" :on-success="handleAvatarSuccess" :on-exceed="showTip" v-model:file-list="state.fileList" :before-upload="picSize" :on-remove="handleRemove"> |
| | | <el-button type="primary">上传评审记录</el-button> |
| | | <template #tip> |
| | | <div class="el-upload__tip">上传文件尺寸尺寸小于2M</div> |
| | | <div class="el-upload__tip">上传文件尺寸尺寸小于5M</div> |
| | | </template> |
| | | </el-upload> |
| | | </el-form-item> |
| | |
| | | } |
| | | |
| | | const handleRemove = async (file, uploadFiles) => { |
| | | if(file && file.status == 'success'){ |
| | | ElMessageBox.confirm( |
| | | '确定删除该附件?', |
| | | '提示', |
| | |
| | | }) |
| | | } |
| | | |
| | | } |
| | | |
| | | const checkFile = async (file)=>{ |
| | | axios.get(import.meta.env.VITE_APP_BASE_API +'/' + file.path,{headers:{'Content-Type': 'application/json','Authorization': `${getToken()}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{ |
| | | if (res) { |
| | |
| | | } |
| | | |
| | | const handlePhotoRemove = async (file) => { |
| | | if (file && file.status == 'success') { |
| | | // state.form.idPhoto = '' |
| | | |
| | | let path = "" |
| | |
| | | }).catch(() => { |
| | | state.form.idPhoto = '' |
| | | }); |
| | | } |
| | | |
| | | |
| | | // const res = await delPic({path: path}) |
| | |
| | | |
| | | |
| | | const handleRemove = async (file, uploadFiles,type) => { |
| | | if(file && file.status == 'success') { |
| | | |
| | | let path = "" |
| | | if(state.title === '编辑') { |
| | | const base = import.meta.env.VITE_APP_BASE_API |
| | |
| | | state.form.salaryAttach = state.form.salaryAttach.filter(item => item.path !== path) |
| | | } |
| | | } |
| | | } |
| | | const finshed = ref(false) |
| | | const getAgency = async (type) => { |
| | | if (type === 'open' && state.pageNum !== 1) { |