From ae6d20ec4a30b7e796feb05958bcfc80e55f247b Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 20 七月 2023 15:21:45 +0800
Subject: [PATCH] 整合代码部署

---
 Source/UBCS-WEB/dist/src/mock/param.js |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/dist/src/mock/param.js b/Source/UBCS-WEB/dist/src/mock/param.js
new file mode 100644
index 0000000..ae07c6e
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/mock/param.js
@@ -0,0 +1,59 @@
+import Mock from 'mockjs'
+
+function getFakeList() {
+  const json = {code: 200, success: true, msg: '鎿嶄綔鎴愬姛'};
+  const list = [];
+  list.push(
+    {
+      id: '1',
+      paramName: '鏄惁寮�鍚敞鍐屽姛鑳�--mock娴嬭瘯',
+      paramKey: 'account.registerUser',
+      paramValue: 'true',
+      remark: '鎻忚堪',
+    },
+    {
+      id: '2',
+      paramName: '璐﹀彿鍒濆瀵嗙爜--mock娴嬭瘯',
+      paramKey: 'account.initPassword',
+      paramValue: '123456',
+      remark: '鎻忚堪',
+    }
+  );
+  json.data = {
+    total: 10,
+    size: 10,
+    current: 1,
+    searchCount: true,
+    pages: 1,
+    records: list,
+  };
+  return json;
+}
+
+function getFakeDetail() {
+  const json = {code: 200, success: true, msg: '鎿嶄綔鎴愬姛'};
+  json.data = {
+    id: '1',
+    paramName: '鏄惁寮�鍚敞鍐屽姛鑳�',
+    paramKey: 'account.registerUser',
+    paramValue: 'true',
+    remark: '鎻忚堪',
+  };
+  return json;
+}
+
+function fakeSuccess() {
+  return {code: 200, success: true, msg: '鎿嶄綔鎴愬姛'};
+}
+
+export default ({mock}) => {
+  if (!mock) return;
+  Mock.mock(/\/api\/ubcs-system\/param\/list/, 'get', getFakeList);
+
+  Mock.mock(/\/api\/ubcs-system\/param\/detail/, 'get', getFakeDetail);
+
+  Mock.mock(/\/api\/ubcs-system\/param\/submit/, 'post', fakeSuccess);
+
+  Mock.mock(/\/api\/ubcs-system\/param\/remove/, 'post', fakeSuccess);
+
+}

--
Gitblit v1.9.3