From cb0791d5df11b51b6d15c3daab30e99e0e317afc Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期一, 20 一月 2025 14:59:30 +0800
Subject: [PATCH] 指标管理数据集和计划数据➡计划数据集增加查询语句敏感词校验与限制表单提交

---
 src/api/model/mpk/mpk.ts |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/api/model/mpk/mpk.ts b/src/api/model/mpk/mpk.ts
index 44800d0..dc2782f 100644
--- a/src/api/model/mpk/mpk.ts
+++ b/src/api/model/mpk/mpk.ts
@@ -10,7 +10,8 @@
   pyModule: string
   remark?: string
   modelMethods: object
-  filePath: string
+  filePath: string,
+  menuAndGroup: any
 }
 
 export const getPage = async (params: PageParam) => {
@@ -38,9 +39,13 @@
 }
 
 export const modelRun = (params) => {
-  return request.post({ url: '/model/mpk/api/run', data: params })
+  return request.post({ url: '/model/mpk/api/test', data: params })
 }
 
-export const list = () => {
-  return request.get({ url: '/model/mpk/file/list'})
+export const list = (params) => {
+  return request.get({ url: '/model/mpk/file/list',  params})
+}
+
+export const publish = (params) => {
+  return request.post({ url: '/model/mpk/file/publish', data: params})
 }

--
Gitblit v1.9.3