diff --git a/src/factory/components/Resource2/index.jsx b/src/factory/components/Resource2/index.jsx
index f046111ac..dabc535bf 100644
--- a/src/factory/components/Resource2/index.jsx
+++ b/src/factory/components/Resource2/index.jsx
@@ -10,7 +10,7 @@ import '../../common.scss'
import { getSourceList, httpUrl } from '../../api';
import { factoryZoneId, docId, standardId, lessonId, manualId } from '../../../constants/factory'
import { downloadFunc } from '../../../forge/Utils/utils'
-import { Carousel } from 'antd';
+import { Carousel, message } from 'antd';
const iconList = [lessonsStandard1, lessonsStandard2, lessonsStandard3]
@@ -163,7 +163,16 @@ const Resource2 = forwardRef(({ zoneId }, ref) => {
{docList.map((item, index) => (
- - { downloadFunc(`${httpUrl}/file/open/download/${item.fileIds}`) }}>
+
- {
+ if (item.fileIds) {
+ downloadFunc(`${httpUrl}/file/open/download/${item.fileIds}`)
+ } else {
+ message.error('该文档稍后提供下载')
+ }
+ }}>
{item.name}
))}
diff --git a/src/factory/lessons/detail/index.jsx b/src/factory/lessons/detail/index.jsx
index 479e00e2d..b958b641f 100644
--- a/src/factory/lessons/detail/index.jsx
+++ b/src/factory/lessons/detail/index.jsx
@@ -8,7 +8,7 @@ import RenderHtml from '../../../components/render-html';
import { Breadcrumb } from 'antd';
import { getSourceDetail, httpUrl, getSourceList } from '../../api';
import { downloadFunc } from '../../../forge/Utils/utils'
-import { factoryZoneId, } from '../../../constants/factory'
+import { docId, } from '../../../constants/factory'
import '../../common.scss'
import { Base64 } from 'js-base64';
@@ -61,7 +61,12 @@ function Index(props) {
{detail.name}
{detail.summary}
{
- detail.fileIds &&
+ detail.keywords === docId &&
+
}
{
detail.url &&
@@ -91,7 +96,7 @@ function Index(props) {
}
{
detail.url &&
-
+
}
diff --git a/src/factory/resource/index.jsx b/src/factory/resource/index.jsx
index 3b4e3f91e..8ca3a81ce 100644
--- a/src/factory/resource/index.jsx
+++ b/src/factory/resource/index.jsx
@@ -95,7 +95,7 @@ function Index(props) {
getProjectsLists(factoryZoneId, { isHomepage: 0, pageSize: 6, pageNum: 1 }).then(res => {
const rows = res.data.rows
if (rows) {
- setProjectList(rows.map(e => { return e.projectProperties.fullName.split('/')[1]}))
+ setProjectList(rows.map(e => { return e.projectProperties.name.split('/')[1]}))
}
});
};