|
@@ -16,7 +16,7 @@ import {
|
|
getDataListService, getDataListServiceRules,
|
|
getDataListService, getDataListServiceRules,
|
|
getDetailByIdService, getDetailByIdServiceRules,
|
|
getDetailByIdService, getDetailByIdServiceRules,
|
|
insertService, insertServiceRules,
|
|
insertService, insertServiceRules,
|
|
- RuleModel, RulesModel, updateService, updateServiceRules
|
|
|
|
|
|
+ RuleModel, RulesModel, testServiceRules, updateService, updateServiceRules
|
|
} from "@/services/internalEvaluation/configuration/Rule";
|
|
} from "@/services/internalEvaluation/configuration/Rule";
|
|
import {ProColumns} from "@ant-design/pro-table";
|
|
import {ProColumns} from "@ant-design/pro-table";
|
|
import {WomanOutlined} from "@ant-design/icons";
|
|
import {WomanOutlined} from "@ant-design/icons";
|
|
@@ -219,11 +219,29 @@ const RulePage: FC = () => {
|
|
>
|
|
>
|
|
删除
|
|
删除
|
|
</SDOperate>,
|
|
</SDOperate>,
|
|
- </Popconfirm>
|
|
|
|
|
|
+ </Popconfirm>,
|
|
|
|
+ <SDOperate
|
|
|
|
+ key="rules-edit"
|
|
|
|
+ icon={<WomanOutlined/>}
|
|
|
|
+ successMessage=""
|
|
|
|
+ onClick={
|
|
|
|
+ () => {
|
|
|
|
+ console.log("规则集测试:", record);
|
|
|
|
+ testRuleCalc(record);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ >
|
|
|
|
+ 测试
|
|
|
|
+ </SDOperate>,
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
|
|
|
|
+
|
|
|
|
+ const testRuleCalc = async (record: RulesModel)=>{
|
|
|
|
+ console.log(await testServiceRules(record).then(res=>{console.log(res)}))
|
|
|
|
+ }
|
|
|
|
+
|
|
const openRuleModelForm = ()=>{
|
|
const openRuleModelForm = ()=>{
|
|
setRuleDetailVisible(true)
|
|
setRuleDetailVisible(true)
|
|
setRuleIndexList([]);
|
|
setRuleIndexList([]);
|