Commit 3dc3762f authored by Maofei94's avatar Maofei94

perf: 支持图片上传

parent f0974e0c
Pipeline #22886 skipped with stages
...@@ -269,7 +269,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -269,7 +269,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
<CheckCircleFilled /> <CheckCircleFilled />
</span> </span>
</div> </div>
<span>{fileName}</span> <span title={fileName}>{fileName}</span>
</div> </div>
); );
} }
...@@ -393,9 +393,9 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -393,9 +393,9 @@ class PicturesWall extends React.Component<PicturesWallType> {
> >
<Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520 }}> <Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520 }}>
{imgBed.map((item, i) => { {imgBed.map((item, i) => {
if(item.moduleName!==picType){ if(item.moduleName==picType || item.moduleName=='CityTemp'){
return
}
const child = [...item.child] || []; const child = [...item.child] || [];
console.log(picType) console.log(picType)
if(item.fileUrls.length > 0){ if(item.fileUrls.length > 0){
...@@ -424,6 +424,7 @@ class PicturesWall extends React.Component<PicturesWallType> { ...@@ -424,6 +424,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
</div> </div>
</TabPane> </TabPane>
); );
}
})} })}
{/* <TabPane tab="更多" key="more"> {/* <TabPane tab="更多" key="more">
<Result status="500" title="温馨提示" subTitle="更多素材, 正在筹备中..." /> <Result status="500" title="温馨提示" subTitle="更多素材, 正在筹备中..." />
......
...@@ -82,12 +82,9 @@ const AddModal = props => { ...@@ -82,12 +82,9 @@ const AddModal = props => {
}; };
const onFinish = value => {}; const onFinish = value => {};
const handleSelect = e => { const handleSelect = e => {
console.log(e);
e === '复制集' ? setShowReplicaSet(true) : setShowReplicaSet(false); e === '复制集' ? setShowReplicaSet(true) : setShowReplicaSet(false);
console.log(form.getFieldsValue());
}; };
useEffect(() => { useEffect(() => {
console.log(type);
switch (type) { switch (type) {
case 'add': case 'add':
form.resetFields(); form.resetFields();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment