瀏覽代碼

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

我还能继续跑 9 月之前
父節點
當前提交
79165dae17
共有 2 個文件被更改,包括 7 次插入5 次删除
  1. 0 3
      src/views/work/work/components/participantForm.vue
  2. 7 2
      src/views/work/work/index.vue

+ 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)
+  }
 }