zs преди 7 месеца
родител
ревизия
e48d476b08
променени са 5 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 1 1
      src/views/center/achievement.vue
  2. 1 1
      src/views/center/basic.vue
  3. 1 1
      src/views/center/demand.vue
  4. 1 1
      src/views/center/project.vue
  5. 1 1
      src/views/center/supply.vue

+ 1 - 1
src/views/center/achievement.vue

@@ -494,7 +494,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'achievement', config: checkedExport.value, user: user.value.id }
     const reqData = { table: 'achievement', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
       window.open(res.data)
     }
     }

+ 1 - 1
src/views/center/basic.vue

@@ -203,7 +203,7 @@ const toSave = () => {
         status: '0'
         status: '0'
       }
       }
       const res = await cirelationStore.create(data)
       const res = await cirelationStore.create(data)
-      if ($checkRes(res, true)) ElMessage({ message: `申请进入孵化器成功等待审核`, type: 'success' })
+      if (res.errcode == '0') ElMessage({ message: `申请进入孵化器成功等待审核`, type: 'success' })
       incubator_id.value = ''
       incubator_id.value = ''
     })
     })
     .catch(() => {})
     .catch(() => {})

+ 1 - 1
src/views/center/demand.vue

@@ -472,7 +472,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'demand', config: checkedExport.value, user: user.value.id }
     const reqData = { table: 'demand', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
       window.open(res.data)
     }
     }

+ 1 - 1
src/views/center/project.vue

@@ -481,7 +481,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'project', config: checkedExport.value, user: user.value.id }
     const reqData = { table: 'project', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
       window.open(res.data)
     }
     }

+ 1 - 1
src/views/center/supply.vue

@@ -469,7 +469,7 @@ const toFile = async () => {
   if (checkedExport.value.length > 0) {
   if (checkedExport.value.length > 0) {
     const reqData = { table: 'supply', config: checkedExport.value, user: user.value.id }
     const reqData = { table: 'supply', config: checkedExport.value, user: user.value.id }
     const res = await utilStore.toExport(reqData)
     const res = await utilStore.toExport(reqData)
-    if ($checkRes(res, true)) {
+    if (res.errcode == '0') {
       ElMessage({ type: `success`, message: `导出成功` })
       ElMessage({ type: `success`, message: `导出成功` })
       window.open(res.data)
       window.open(res.data)
     }
     }