Commit 798c0538 authored by chenshouchao's avatar chenshouchao

feat: 样式优化

parent 23993250
...@@ -39,6 +39,10 @@ ...@@ -39,6 +39,10 @@
color: rgba(30, 38, 51, 1); color: rgba(30, 38, 51, 1);
margin-left: 8px; margin-left: 8px;
font-weight: 550; font-weight: 550;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
} }
} }
.templateDesc { .templateDesc {
......
...@@ -40,7 +40,9 @@ const TemplateItem = (props: ITemplateItemPorps) => { ...@@ -40,7 +40,9 @@ const TemplateItem = (props: ITemplateItemPorps) => {
</div> </div>
<div className={style.templateTitleBox}> <div className={style.templateTitleBox}>
<img src={templateIcon} alt="" /> <img src={templateIcon} alt="" />
<div className={style.templateTitle}>{templateInfo.title}</div> <div className={style.templateTitle} title={templateInfo.title}>
{templateInfo.title}
</div>
</div> </div>
<div className={style.templateDesc}>{templateInfo.description}</div> <div className={style.templateDesc}>{templateInfo.description}</div>
{footer && footer()} {footer && footer()}
......
...@@ -61,7 +61,8 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -61,7 +61,8 @@ const WorkFlowEdit = observer((props: IProps) => {
const [saveFormDialog, setSaveFormDialog] = useState(false); // 保存弹窗显示与否控制 const [saveFormDialog, setSaveFormDialog] = useState(false); // 保存弹窗显示与否控制
const [title, setTitle] = useState(""); // 自定义模板名称 const [title, setTitle] = useState(""); // 自定义模板名称
const [version, setVersion] = useState("1.0.0"); // 自定义模板版本 const [version, setVersion] = useState("1.0.0"); // 自定义模板版本
const [oldversion, setOldersion] = useState(""); // 编辑是自定义模板的老版本 const [oldversion, setOldersion] = useState(""); // 编辑时自定义模板的老版本
const [selfAddingEewVersion, setSelfAddingEewVersion] = useState(""); // 编辑时自增新版本
const [description, setDescription] = useState(""); // 自定义模板描述 const [description, setDescription] = useState(""); // 自定义模板描述
const [creator, setCreator] = useState(""); // 自定义模板创建人 const [creator, setCreator] = useState(""); // 自定义模板创建人
const [operatingArea, setOperatingArea] = useState<"form" | "flow">("form"); // 当前操作区域 const [operatingArea, setOperatingArea] = useState<"form" | "flow">("form"); // 当前操作区域
...@@ -138,6 +139,7 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -138,6 +139,7 @@ const WorkFlowEdit = observer((props: IProps) => {
} }
} }
setVersion(arr.join(".")); setVersion(arr.join("."));
setSelfAddingEewVersion(arr.join("."));
setCreator(res.data.creator); setCreator(res.data.creator);
setDescription(res.data.description); setDescription(res.data.description);
} }
...@@ -215,6 +217,7 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -215,6 +217,7 @@ const WorkFlowEdit = observer((props: IProps) => {
if (!tasksIsCheck) { if (!tasksIsCheck) {
Message.error("工作流校验未通过,请检查!"); Message.error("工作流校验未通过,请检查!");
} else { } else {
setVersion(selfAddingEewVersion);
setSaveFormDialog(true); setSaveFormDialog(true);
} }
}; };
......
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