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

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

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