提交 865d02ed 作者: 翁进城

Merge branch 'develop' of http://git.mmcuav.cn/root/sharefly-admin-uav into develop

#请求接口地址 #请求接口地址
#VITE_REQUEST_BASE_URL='https://www.iuav.shop' #VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn'
#VITE_REQUEST_BASE_URL='https://test.iuav.shop' VITE_REQUEST_BASE_URL='https://test.iuav.shop'
VITE_REQUEST_BASE_URL='/api' #VITE_REQUEST_BASE_URL='/api'
#旧版接口地址 #旧版接口地址
#VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn' #VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn'
#VITE_REQUEST_BASE_URL='https://test.iuav.mmcuav.cn' #VITE_REQUEST_BASE_URL='https://test.iuav.mmcuav.cn'
......
#请求接口地址 #请求接口地址
#VITE_REQUEST_BASE_URL='https://www.iuav.shop' VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn'
VITE_REQUEST_BASE_URL='https://test.iuav.shop' #VITE_REQUEST_BASE_URL='https://test.iuav.shop'
#VITE_REQUEST_BASE_URL='/api' #VITE_REQUEST_BASE_URL='/api'
#旧版接口地址 #旧版接口地址
#VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn' #VITE_REQUEST_BASE_URL='https://iuav.mmcuav.cn'
......
...@@ -14,4 +14,4 @@ patches: ...@@ -14,4 +14,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag: 465e507b3079097b231424c6de372ba1ba672b14 newTag: 4eea4419752ffd6b50165774c140a413e69f726d
...@@ -14,4 +14,4 @@ patches: ...@@ -14,4 +14,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/admin newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/admin
newTag: 7075ed8a992197acf49f443b0694ae9b9bd8ad5b newTag: 2ff6198c465d9b427c0a9b9bf38a06823810daff
...@@ -244,6 +244,7 @@ const BaseInfo: React.FC<selfProps> = forwardRef( ...@@ -244,6 +244,7 @@ const BaseInfo: React.FC<selfProps> = forwardRef(
fileUpload fileUpload
onChange={videoUploadSuccess} onChange={videoUploadSuccess}
defaultFileList={videoList} defaultFileList={videoList}
fileSize={50}
> >
{isDetail ? ( {isDetail ? (
videoList.length ? ( videoList.length ? (
......
...@@ -79,13 +79,14 @@ const AddEditModal: React.FC<propType> = (props) => { ...@@ -79,13 +79,14 @@ const AddEditModal: React.FC<propType> = (props) => {
type: 3, type: 3,
}); });
if (res && res.code === '200') { if (res && res.code === '200') {
const arr = res.result const arr =
?.filter((i) => i.categoriesInfoListDTO) res.result
.map((i) => ({ ?.filter((i) => i.categoriesInfoListDTO)
label: i.name, .map((i) => ({
value: i.directoryId, label: i.name,
children: i.categoriesInfoListDTO?.map((j) => ({ label: j.name, value: j.id })), value: i.directoryId,
})); children: i.categoriesInfoListDTO?.map((j) => ({ label: j.name, value: j.id })),
})) || [];
setCurriculumSkillList(arr); setCurriculumSkillList(arr);
// 回显数据 // 回显数据
// 回显数据 // 回显数据
......
...@@ -102,7 +102,7 @@ const CourseManageView = () => { ...@@ -102,7 +102,7 @@ const CourseManageView = () => {
label: i.name, label: i.name,
value: i.directoryId, value: i.directoryId,
children: i.categoriesInfoListDTO?.map((j) => ({ label: j.name, value: j.id })), children: i.categoriesInfoListDTO?.map((j) => ({ label: j.name, value: j.id })),
})), })) || [],
); );
} }
}; };
...@@ -121,7 +121,7 @@ const CourseManageView = () => { ...@@ -121,7 +121,7 @@ const CourseManageView = () => {
width: '150px', width: '150px',
render: (text) => { render: (text) => {
// 反向找数据回显 // 反向找数据回显
const item = curriculumSkillList.find((i) => i.children?.find((j) => j.value === text)); const item = curriculumSkillList?.find((i) => i.children?.find((j) => j.value === text));
const childrenItem = item?.children?.find((i) => i.value === text); const childrenItem = item?.children?.find((i) => i.value === text);
return `${item?.label}/${childrenItem?.label}`; return `${item?.label}/${childrenItem?.label}`;
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论