Commit 37aa7570 authored by 涂伟's avatar 涂伟

fix:'流程中心代码优化'

parent 9b216d2f
Pipeline #70636 passed with stages
import React, { useState, useEffect } from 'react';
import { CreateFlow } from '@/services/workflow/workflow';
import { Form, Modal, Input, notification, Select, Radio } from 'antd';
import e from 'express';
const { Option } = Select;
const { TextArea } = Input;
const FlowModal = props => {
......@@ -450,7 +449,7 @@ const FlowModal = props => {
}
};
const prefix = value => {
let str = value.currentTarget.value;
let str = value;
if (typeof str !== 'string') {
throw new Error(
-1,
......@@ -468,6 +467,7 @@ const FlowModal = props => {
console.log(mkRslt(arrResult));
// form.setFieldsValue({ Code: mkRslt(arrResult) });
form.setFieldsValue({ Prefix: mkRslt(arrResult) });
setFlag(flag+1)
};
const checkCh = ch => {
......@@ -550,8 +550,8 @@ const FlowModal = props => {
>
<Input
placeholder="请输入流程名称"
onChange={value => {
prefix(value);
onChange={e => {
prefix(e.target.value);
}}
readOnly={modalType === 'edit'}
/>
......
......@@ -420,7 +420,7 @@ const RoalChoose = props => {
<div className={styles.selectedList}>
<div className={styles.header}>
<div className={styles.title}>已选列表</div>
<div className={styles.tagHead}>
{/* <div className={styles.tagHead}>
<div className={styles.tagContent}>
<div className={styles.tagRol} />
<div>角色</div>
......@@ -429,7 +429,7 @@ const RoalChoose = props => {
<div className={styles.tagOrg} />
<div>机构</div>
</div>
</div>
</div> */}
</div>
<div className={styles.selectBox}>
{[...selected].length > 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