Commit 4de21424 authored by 皮倩雯's avatar 皮倩雯

fix: '修改事件描述,流程中心编辑流程禁止流程名称和编码前缀'

parent c2a47831
Pipeline #82011 passed with stages
......@@ -93,11 +93,11 @@ const incident = () => {
const columns = [
{
title: '事件类型',
title: '事件名称',
dataIndex: 'name',
key: 'name',
width: 150,
render: (text,record) => (
render: (text, record) => (
<Tooltip placement="topLeft" title={text}>
{searchStyle(text)}
</Tooltip>
......@@ -143,7 +143,7 @@ const incident = () => {
width: 80,
render: record => (
<Tooltip placement="topLeft" title={record}>
<span style={{color:record == '(无)'?'grey':'black'}}>{record}</span>
<span style={{ color: record == '(无)' ? 'grey' : 'black' }}>{record}</span>
</Tooltip>
),
},
......@@ -232,14 +232,24 @@ const incident = () => {
width: 80,
render: item => {
if (item === '均可') {
return <span><Tag color="processing">前端</Tag><Tag color="processing">手持</Tag></span>;
} if (item === ''||item==='否') {
return (
<span>
<Tag color="processing">前端</Tag>
<Tag color="processing">手持</Tag>
</span>
);
}
if (item === '' || item === '否') {
return <Tag color="warning">内置</Tag>;
}if (item==='是') {
return <span style={{color: 'grey'}}>(无)</span>;
}
return <span><Tag color="processing">{item}</Tag></span>;
}
if (item === '是') {
return <span style={{ color: 'grey' }}>(无)</span>;
}
return (
<span>
<Tag color="processing">{item}</Tag>
</span>
);
},
},
{
......@@ -281,7 +291,7 @@ const incident = () => {
width: 150,
render: record => (
<Space size="middle">
<Tooltip title="编辑事件类型">
<Tooltip title="编辑事件">
<EditTwoTone onClick={() => editEventType(record)} style={{ fontSize: '16px' }} />
</Tooltip>
<Tooltip title="受理流程">
......@@ -302,7 +312,7 @@ const incident = () => {
style={{ fontSize: '16px', color: '#1890FF' }}
/>
</Tooltip>
<Tooltip title="删除事件类型">
<Tooltip title="删除事件">
<Popconfirm
placement="bottomRight"
title={<p>即将删除事件类型表,是否确认删除?</p>}
......@@ -321,7 +331,7 @@ const incident = () => {
useEffect(() => {
setTreeLoading(true);
GetCM_Event_LoadEventTable({
filter: searchValue
filter: searchValue,
}).then(res => {
setTreeLoading(false);
if (res.code === 0) {
......@@ -381,10 +391,10 @@ const incident = () => {
console.log(rember);
console.log(newArr[rember]);
console.log(newArr, 'newArr');
if(!newArr[rember]){
setRember(0)
if (!newArr[rember]) {
setRember(0);
setPickItem(newArr[0]);
setRember1(newArr[0])
setRember1(newArr[0]);
}
setTreeData(newArr);
} else {
......@@ -637,7 +647,7 @@ const incident = () => {
>
事件列表
</span>
<Tooltip title="添加事件类型">
<Tooltip title="添加事件">
<PlusSquareFilled
onClick={() => addIncident()}
style={{
......@@ -714,22 +724,26 @@ const incident = () => {
})}
>
<div style={{ height: '50px', lineHeight: '50px' }}>
{pickItem?<span><span className={styles.titleName}>{pickItem}</span>
{pickItem ? (
<span>
<Tooltip title="编辑业务类型名称">
<FormOutlined className={styles.iconSize} onClick={editBusiness} />
</Tooltip>
</span></span>:null}
<span className={styles.titleName}>{pickItem}</span>
<span>
<Tooltip title="编辑业务类型名称">
<FormOutlined className={styles.iconSize} onClick={editBusiness} />
</Tooltip>
</span>
</span>
) : null}
<span>
<span style={{ marginLeft: '20px', marginRight: '5px' }}>快速检索</span>
<span style={{ marginLeft: '20px', marginRight: '5px' }}>快速检索</span>
<Search
allowClear
placeholder='请输入事件类型或事件主表'
placeholder="请输入事件类型或事件主表"
onSearch={handleSearch}
onChange={handleChange}
value={searchValue}
enterButton
style={{ width: '300px',marginTop: '10px' }}
style={{ width: '300px', marginTop: '10px' }}
/>
</span>
<span className={styles.buttonList}>
......
......@@ -564,6 +564,7 @@ const FlowModal = props => {
onChange={e => {
prefix(e.target.value);
}}
disabled={modalType === 'edit'}
/>
</Form.Item>
<Form.Item
......@@ -612,7 +613,7 @@ const FlowModal = props => {
},
]}
>
<Input placeholder="请输入编码前缀" maxLength={6} />
<Input placeholder="请输入编码前缀" maxLength={6} disabled={modalType === 'edit'} />
</Form.Item>
<Form.Item label="流程描述" name="Text">
<Input placeholder="请输入流程描述" />
......
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