Commit a110200a authored by 皮倩雯's avatar 皮倩雯

fix: '维保模板增加配置'

parent 1b61b19b
Pipeline #75218 passed with stages
...@@ -10,7 +10,16 @@ const fnList = [ ...@@ -10,7 +10,16 @@ const fnList = [
{ label: '上报人工单统计', value: '$fn.caseNum()' }, { label: '上报人工单统计', value: '$fn.caseNum()' },
]; ];
const RuleConfig = props => { const RuleConfig = props => {
const { visible, handleCancel, fieldList, onSubumit, RuleContent, flag, flowID } = props; const {
visible,
handleCancel,
fieldList,
onSubumit,
RuleContent,
flag,
flowID,
showInsertFn,
} = props;
const [rule, setRule] = useState([]); const [rule, setRule] = useState([]);
const [expandedKey, setExpandedKey] = useState(''); // 默认展开项 const [expandedKey, setExpandedKey] = useState(''); // 默认展开项
const [currentSelectId, setCurrentSelectId] = useState(''); // 选中得节点 const [currentSelectId, setCurrentSelectId] = useState(''); // 选中得节点
...@@ -109,9 +118,11 @@ const RuleConfig = props => { ...@@ -109,9 +118,11 @@ const RuleConfig = props => {
<div className={styles.rightContent}> <div className={styles.rightContent}>
{flag == 1 && <div className={styles.title}>符合以下条件时工单扭转到对应的节点</div>} {flag == 1 && <div className={styles.title}>符合以下条件时工单扭转到对应的节点</div>}
<div className={styles.textAreaBox}> <div className={styles.textAreaBox}>
<Dropdown overlay={fnListRender} placement="bottom" arrow> {flag == 1 && (
<div className={styles.insertFn}>插入函数</div> <Dropdown overlay={fnListRender} placement="bottom" arrow>
</Dropdown> <div className={styles.insertFn}>插入函数</div>
</Dropdown>
)}
<TextArea <TextArea
id="ruleText" id="ruleText"
......
...@@ -47,3 +47,9 @@ export const CM_XWBPlan_ChangeOrder = planIds => ...@@ -47,3 +47,9 @@ export const CM_XWBPlan_ChangeOrder = planIds =>
// 获取父级维保模板 // 获取父级维保模板
export const GetParentDeviceTemplate = query => export const GetParentDeviceTemplate = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetParentDeviceTemplate`, query); get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetParentDeviceTemplate`, query);
export const GetFeedbackTableFields = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetFeedbackTableFields`, query);
export const GetAccountConfigInfo = query =>
get(`/PandaWorkFlow/WorkFlow/AccountManage/GetAccountConfigInfo`, query);
\ No newline at end of file
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