From 88b7b3d4d26027ce345775db4ee0fdc40c3be677 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?=
<188633308@qq.com>
Date: Thu, 29 Apr 2021 11:21:07 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E6=96=B0=E5=A2=9E=E6=A0=91=E6=9F=A5?=
=?UTF-8?q?=E8=AF=A2=E9=A1=B5=E9=9D=A2=E7=9A=84doc?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Web/public/doc-code/seed/query.vue | 28 +--
Web/public/doc-code/seed/treeLayout.vue | 225 +++++++++++++++++++
Web/src/assets/style/lib/form.less | 17 +-
Web/src/pages/home/index.vue | 2 +-
Web/src/pages/system/_seed/index.vue | 28 +--
Web/src/pages/system/_seed/treeLayout.vue | 225 +++++++++++++++++++
Web/src/pages/system/doc/index.vue | 4 +
Web/src/pages/system/doc/seed/query.vue | 2 +-
Web/src/pages/system/doc/seed/treeLayout.vue | 23 ++
Web/src/pages/system/doc/usage.vue | 17 --
Web/src/pages/system/menu/form.vue | 63 ++++--
11 files changed, 572 insertions(+), 62 deletions(-)
create mode 100644 Web/public/doc-code/seed/treeLayout.vue
create mode 100644 Web/src/pages/system/_seed/treeLayout.vue
create mode 100644 Web/src/pages/system/doc/seed/treeLayout.vue
delete mode 100644 Web/src/pages/system/doc/usage.vue
diff --git a/Web/public/doc-code/seed/query.vue b/Web/public/doc-code/seed/query.vue
index 6d561bc..72123fe 100644
--- a/Web/public/doc-code/seed/query.vue
+++ b/Web/public/doc-code/seed/query.vue
@@ -46,6 +46,13 @@
import AddForm from './addForm';
import EditForm from './editForm';
+/* 在此管理整个页面需要的接口名称 */
+const api = {
+ page: 'testPageApi',
+ delete: 'testDeleteApi',
+ /* ... */
+};
+
export default {
components: {
AddForm,
@@ -81,17 +88,12 @@ export default {
* 传给yo-table以示意数据接口及其参数和返回的数据结构
*/
loadData(params) {
- return (
- this.$api
- /** !!此处必须修改调用的接口方法 */
- .testGetApi({
- ...params,
- ...this.query,
- })
- .then((res) => {
- return res.data;
- })
- );
+ return this.$api[api.page]({
+ ...params,
+ ...this.query,
+ }).then((res) => {
+ return res.data;
+ });
},
/**
@@ -174,9 +176,7 @@ export default {
*/
onDelete(record) {
this.$refs.table.onLoading();
- this.$api
- /** !!此处必须修改调用的接口方法 */
- .testDeleteApi(record)
+ this.$api[api.delete](record)
.then(({ success }) => {
this.onResult(success, '删除成功');
})
diff --git a/Web/public/doc-code/seed/treeLayout.vue b/Web/public/doc-code/seed/treeLayout.vue
new file mode 100644
index 0000000..53f84bb
--- /dev/null
+++ b/Web/public/doc-code/seed/treeLayout.vue
@@ -0,0 +1,225 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+ 新增机构
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/assets/style/lib/form.less b/Web/src/assets/style/lib/form.less
index 70a423c..6766c00 100644
--- a/Web/src/assets/style/lib/form.less
+++ b/Web/src/assets/style/lib/form.less
@@ -5,12 +5,27 @@
margin: 0 auto;
}
h1,
+ .h1,
h2,
+ .h2,
h3,
+ .h3,
h4,
- h5 {
+ .h4,
+ h5,
+ .h5,
+ h6,
+ .h6 {
color: darken(@white, 40%);
}
+ h3,
+ .h3 {
+ font-size: 16px;
+ }
+ h4,
+ .h4 {
+ font-size: 15px;
+ }
.yo-form-group {
margin-bottom: @padding-md;
}
diff --git a/Web/src/pages/home/index.vue b/Web/src/pages/home/index.vue
index b5ccad3..9f98893 100644
--- a/Web/src/pages/home/index.vue
+++ b/Web/src/pages/home/index.vue
@@ -6,7 +6,7 @@