Browse Source

不在作品上传时间段时,无法上传修改作品

我还能继续跑 9 tháng trước cách đây
mục cha
commit
79165dae17

+ 0 - 3
src/views/work/work/components/participantForm.vue

@@ -163,10 +163,7 @@ const readFile = (file) => {
 
 const handleUpload = async (file) => {
   const data = await getXlsxData(file)
-  console.log(data)
   formData.value = translateField(data)
-  console.log("-----------------")
-  console.log(formData.value)
 }
 
 //读取表格数据

+ 7 - 2
src/views/work/work/index.vue

@@ -400,8 +400,13 @@ const resetQuery = () => {
 
 /** 添加/修改操作 */
 const formRef = ref()
-const openForm = (type: string, id?: number) => {
-  formRef.value.open(type, id)
+const openForm = async (type: string, id?: number) => {
+  const datas =await TypeApi.getTypeTreeList({status: true})
+  if (datas.length===0){
+    alert("暂无上报计划,请联系管理员")
+  }else {
+    formRef.value.open(type, id)
+  }
 }