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

公式接口传参

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