Commit bc29c610 authored by chenshouchao's avatar chenshouchao

fix: 解决一些小BUG

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