Commit 567a8d27 authored by 罗超's avatar 罗超

Merge branch 'router' of http://gitlab.oytour.com/viitto/pptist into router

parents 092b80ce e64a8477
......@@ -57,7 +57,11 @@
<div class="col text-dark" style="font-size: 16px">上传文件</div>
</div>
<div class="q-mt-lg">
<el-upload class="full-height full-width text-primary" drag action="" accept=".xls,.xlsx">
<el-upload class="full-height full-width text-primary" drag accept=".xls,.xlsx"
:action="getUploadActionUrl()"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
>
<IconUpload size="54" class=""></IconUpload>
<div class="el-upload__text">
<div style="font-size: 16px;" class="q-my-lg">成员名单仅支持 .xls .xlsx</div>
......@@ -82,6 +86,7 @@ import { dateFormat } from "@/utils/common"
import { ElMessage } from "element-plus"
import { storeToRefs } from "pinia"
import { ref, unref } from "vue"
import { domainManager } from '@/utils/domainManager'
const props = defineProps({
showType: {
......@@ -106,6 +111,21 @@ const { userInfo } = storeToRefs(useUser)
const closed = () => {
emit('close')
}
//导入文件地址
const getUploadActionUrl=()=>{
const url=domainManager().domainUrl.replace("common","file")+`?cmd=dmc_post_LocalFileUpload&Type=19&fileType=1&PPTEmployeeId=${userInfo.value.id}`
return url;
}
const handleAvatarSuccess=async (res:any)=>{
console.log("handleAvatarSuccess_res",res);
}
const beforeAvatarUpload=async (res:any)=>{
console.log("beforeAvatarUpload_res",res);
}
const copyInviteUrlHandler = async (e: MouseEvent) => {
e.stopPropagation()
if (copyLoading.value) return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment