duy пре 1 година
родитељ
комит
2a9dd61bfd
1 измењених фајлова са 9 додато и 2 уклоњено
  1. 9 2
      src/views/project/debit/contract/unit.vue

+ 9 - 2
src/views/project/debit/contract/unit.vue

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