duy 2 年之前
父节点
当前提交
8104b1ec8d
共有 1 个文件被更改,包括 27 次插入0 次删除
  1. 27 0
      src/api/modules/system/parameter.js

+ 27 - 0
src/api/modules/system/parameter.js

@@ -0,0 +1,27 @@
+import {httpApi} from "../../request/httpApi";
+import website from "~src/config/index";
+
+//新增或修改参数
+export const submitDictionary = (form, msg = true) => httpApi({
+    url: '/api/blade-control/dictinfo/submit',
+    method: 'post',
+    data: form
+}, msg);
+//删除
+export const removeDictionary = (form, msg = true) => httpApi({
+    url: '/api/blade-control/dictinfo/remove',
+    method: 'post',
+    params: form
+}, msg);
+//顶级列表
+export const getParentList = (form, msg = true) => httpApi({
+    url: '/api/blade-control/dictinfo/parent-list',
+    method: 'get',
+    params: form
+}, msg);
+//子列表
+export const getChildList = (form, msg = true) => httpApi({
+    url: '/api/blade-control/dictinfo/child-list',
+    method: 'get',
+    params: form
+}, msg);