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 @@