Commit 94f06ddb authored by 田翔's avatar 田翔

公式接口传参

parent 2cbc5f62
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "2.0.4", "version": "2.0.5",
"description": "2.0.4: 细节优化", "description": "2.0.5: 公式接口传参",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -54,10 +54,11 @@ export function getStationListByUserID(id, isAll) { ...@@ -54,10 +54,11 @@ export function getStationListByUserID(id, isAll) {
} }
//自动计算字符串转化 //自动计算字符串转化
export function getFormFieldAnalysisDtos(formula) { export function getFormFieldAnalysisDtos(data) {
return request({ return request({
url: `/PandaWorkFlow/WorkFlow/BPM/CaseManage/GetFormFieldAnalysisDtos?formula=${formula}`, url: `/PandaWorkFlow/WorkFlow/BPM/CaseManage/GetFormFieldAnalysisDtos`,
method: 'get', method: 'post',
data
}) })
} }
......
...@@ -72,7 +72,7 @@ const CalculateRule = (props) => { ...@@ -72,7 +72,7 @@ const CalculateRule = (props) => {
const onOk = async () => { const onOk = async () => {
if (rule) { if (rule) {
const { code, data, msg } = await getFormFieldAnalysisDtos(rule) const { code, data, msg } = await getFormFieldAnalysisDtos({ formula: rule })
if (code === 0) { if (code === 0) {
addons.setValue('rules', data) addons.setValue('rules', data)
setVisible(false) setVisible(false)
...@@ -81,8 +81,6 @@ const CalculateRule = (props) => { ...@@ -81,8 +81,6 @@ const CalculateRule = (props) => {
message.error(msg) message.error(msg)
} }
} }
onChange(rule)
setVisible(false)
} }
const onCancel = () => { const onCancel = () => {
......
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