|
|
@ -71,8 +71,6 @@ const message = useMessage() // 消息弹窗 |
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示 |
|
|
|
const formLoading = ref(false) // 表单的加载中 |
|
|
|
const uploadRef = ref() |
|
|
|
const importUrl = |
|
|
|
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/system/user/import' |
|
|
|
const uploadHeaders = ref() // 上传 Header 头 |
|
|
|
const fileList = ref([]) // 文件列表 |
|
|
|
const file = ref('') |
|
|
@ -120,6 +118,10 @@ const file = ref('') |
|
|
|
required: false, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
url:{ |
|
|
|
type: String, |
|
|
|
required: false, |
|
|
|
} |
|
|
|
}) |
|
|
|
const importTemplateData= ref(props.importTemplateData) |
|
|
|
const accept= ref(props.accept) |
|
|
@ -129,6 +131,8 @@ const appendIsDisable = ref(props.appendIsDisable)//追加是否禁用,默认值 |
|
|
|
const coverIsDisable = ref(props.coverIsDisable)//覆盖是否禁用,默认值不禁用 |
|
|
|
const updatePart = ref(props.updatePart)//是否部门保存 |
|
|
|
|
|
|
|
const importUrl = |
|
|
|
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url |
|
|
|
/** 打开弹窗 */ |
|
|
|
const open = () => { |
|
|
|
dialogVisible.value = true |
|
|
|