|
@@ -109,7 +109,7 @@
|
|
<hc-title>
|
|
<hc-title>
|
|
<span>范例模板</span>
|
|
<span>范例模板</span>
|
|
<template #extra>
|
|
<template #extra>
|
|
- 切换范例模板:
|
|
|
|
|
|
+ <span style="color: red;">*</span> 切换范例模板:
|
|
<el-select
|
|
<el-select
|
|
v-model="typevalue"
|
|
v-model="typevalue"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@@ -545,6 +545,13 @@ const handleFileDUcess = (res)=>{
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+const beforeUpload = ()=>{
|
|
|
|
+ if (!typevalue.value) {
|
|
|
|
+ window.$message.warning('请先选择模板')
|
|
|
|
+ return
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+}
|
|
const handFileError = (err)=>{
|
|
const handFileError = (err)=>{
|
|
const msg = JSON.parse(err.message).msg
|
|
const msg = JSON.parse(err.message).msg
|
|
window.$message.warning(msg)
|
|
window.$message.warning(msg)
|
|
@@ -587,7 +594,7 @@ const typeoptions = ref([
|
|
label: '模板2',
|
|
label: '模板2',
|
|
},
|
|
},
|
|
])
|
|
])
|
|
-const typevalue = ref('1')
|
|
|
|
|
|
+const typevalue = ref('')
|
|
//关联资料
|
|
//关联资料
|
|
const linkLoading = ref(false)
|
|
const linkLoading = ref(false)
|
|
const linkModal = ref(false)
|
|
const linkModal = ref(false)
|