Commit bc29c610 authored by chenshouchao's avatar chenshouchao

fix: 解决一些小BUG

parent d12799f9
...@@ -36,7 +36,7 @@ const FileSelect = observer((props: FileSelectProps) => { ...@@ -36,7 +36,7 @@ const FileSelect = observer((props: FileSelectProps) => {
const fileToken = toJS(currentProjectStore.currentProjectInfo.filetoken); const fileToken = toJS(currentProjectStore.currentProjectInfo.filetoken);
const [path, setPath] = useState<String>("/"); const [path, setPath] = useState<String>("/");
const [selectFileName, setSelectFileName] = useState(""); const [selectFileName, setSelectFileName] = useState("");
const [selectItem, setSelectItem] = useState({}); const [selectItem, setSelectItem] = useState<any>({});
// 防止用户连续点击文件夹造成路径显示错误 // 防止用户连续点击文件夹造成路径显示错误
const [debounce, setDebounce] = useState(false); const [debounce, setDebounce] = useState(false);
// 文件夹、文件列表 // 文件夹、文件列表
...@@ -46,6 +46,7 @@ const FileSelect = observer((props: FileSelectProps) => { ...@@ -46,6 +46,7 @@ const FileSelect = observer((props: FileSelectProps) => {
const [keyWord, setKeyWord] = useState(""); const [keyWord, setKeyWord] = useState("");
const fileSelectOnConfirm = () => { const fileSelectOnConfirm = () => {
// if (selectItem.type)
console.log(path); console.log(path);
console.log(selectFileName); console.log(selectFileName);
console.log(selectItem); console.log(selectItem);
...@@ -404,7 +405,7 @@ const FileSelect = observer((props: FileSelectProps) => { ...@@ -404,7 +405,7 @@ const FileSelect = observer((props: FileSelectProps) => {
{showList.length === 0 && ( {showList.length === 0 && (
<div className={style.noDataBox}> <div className={style.noDataBox}>
<img className={style.noDataImg} src={noFile} alt="" /> <img className={style.noDataImg} src={noFile} alt="" />
<span className={style.noDataText}>未开启模板</span> <span className={style.noDataText}>无数据</span>
</div> </div>
)} )}
</div> </div>
......
...@@ -680,7 +680,7 @@ const ProjectData = observer(() => { ...@@ -680,7 +680,7 @@ const ProjectData = observer(() => {
{showList.length === 0 && ( {showList.length === 0 && (
<div className={style.noDataBox}> <div className={style.noDataBox}>
<img className={style.noDataImg} src={noFile} alt="" /> <img className={style.noDataImg} src={noFile} alt="" />
<span className={style.noDataText}>未开启模板</span> <span className={style.noDataText}>无数据</span>
</div> </div>
)} )}
</div> </div>
......
...@@ -419,8 +419,8 @@ const ProjectSubmitWork = observer(() => { ...@@ -419,8 +419,8 @@ const ProjectSubmitWork = observer(() => {
})} })}
</div> </div>
)} )}
{workFlowJobInfo?.outputs && {(!workFlowJobInfo?.outputs ||
Object.keys(workFlowJobInfo?.outputs).length === 0 && ( Object.keys(workFlowJobInfo?.outputs).length === 0) && (
<div className={styles.notResults}>暂无结果文件</div> <div className={styles.notResults}>暂无结果文件</div>
)} )}
<div className={styles.title}>任务信息</div> <div className={styles.title}>任务信息</div>
......
...@@ -88,11 +88,11 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -88,11 +88,11 @@ const WorkFlowEdit = observer((props: IProps) => {
let version = res.data.version; let version = res.data.version;
let arr = version.split("."); let arr = version.split(".");
if (arr.length === 3) { if (arr.length === 3) {
if (Number(arr[2]) < 100) { if (Number(arr[2]) < 99) {
arr[2] = String(Number(arr[2]) + 1); arr[2] = String(Number(arr[2]) + 1);
} else { } else {
arr[2] = "0"; arr[2] = "0";
if (Number(arr[1]) < 100) { if (Number(arr[1]) < 99) {
arr[1] = String(Number(arr[1]) + 1); arr[1] = String(Number(arr[1]) + 1);
} else { } else {
arr[1] = "0"; arr[1] = "0";
......
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