Commit ec884380 authored by chenshouchao's avatar chenshouchao

feat: 编辑自定义模板时多传一个creator

parent 586eca40
...@@ -60,6 +60,7 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -60,6 +60,7 @@ const WorkFlowEdit = observer((props: IProps) => {
const [version, setVersion] = useState("1.0.0"); // 自定义模板版本 const [version, setVersion] = useState("1.0.0"); // 自定义模板版本
const [oldversion, setOldersion] = useState(""); // 编辑是自定义模板的老版本 const [oldversion, setOldersion] = useState(""); // 编辑是自定义模板的老版本
const [description, setDescription] = useState(""); // 自定义模板描述 const [description, setDescription] = useState(""); // 自定义模板描述
const [creator, setCreator] = useState(""); // 自定义模板创建人
const [titleHelper, setTitleHelper] = useState({ const [titleHelper, setTitleHelper] = useState({
// 自定义模板名称错误提示 // 自定义模板名称错误提示
error: false, error: false,
...@@ -101,6 +102,7 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -101,6 +102,7 @@ const WorkFlowEdit = observer((props: IProps) => {
} }
} }
setVersion(arr.join(".")); setVersion(arr.join("."));
setCreator(res.data.creator);
setDescription(res.data.description); setDescription(res.data.description);
} }
}, },
...@@ -298,6 +300,7 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -298,6 +300,7 @@ const WorkFlowEdit = observer((props: IProps) => {
tasks: templateConfigInfo, tasks: templateConfigInfo,
productId, productId,
id, id,
creator,
}); });
} else { } else {
saveUserSpecRun({ saveUserSpecRun({
......
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