diff --git a/Web/package.json b/Web/package.json
index c51e772..d9b6637 100644
--- a/Web/package.json
+++ b/Web/package.json
@@ -21,6 +21,7 @@
"swiper": "^6.5.0",
"vue": "^2.6.11",
"vue-awesome-swiper": "^4.1.1",
+ "vue-color": "^2.8.1",
"vue-highlight.js": "^3.1.0",
"vue-router": "^3.5.1"
},
diff --git a/Web/public/doc-code/seed/addForm.vue b/Web/public/doc-code/seed/addForm.vue
deleted file mode 100644
index 28c81b2..0000000
--- a/Web/public/doc-code/seed/addForm.vue
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/public/doc-code/seed/editForm.vue b/Web/public/doc-code/seed/editForm.vue
deleted file mode 100644
index 6f96748..0000000
--- a/Web/public/doc-code/seed/editForm.vue
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/public/doc-code/seed/form.vue b/Web/public/doc-code/seed/form.vue
index ab74d56..fb4579d 100644
--- a/Web/public/doc-code/seed/form.vue
+++ b/Web/public/doc-code/seed/form.vue
@@ -1,27 +1,41 @@
+
+
\ No newline at end of file
diff --git a/Web/public/doc-code/seed/query.vue b/Web/public/doc-code/seed/query.vue
index 72123fe..f30ce6d 100644
--- a/Web/public/doc-code/seed/query.vue
+++ b/Web/public/doc-code/seed/query.vue
@@ -1,26 +1,29 @@
+
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
+
+
+
+
+
- 新增XX
+ 新增...
+
@@ -33,35 +36,52 @@
+
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/_seed/editForm.vue b/Web/src/pages/system/_seed/editForm.vue
deleted file mode 100644
index 9e4dde4..0000000
--- a/Web/src/pages/system/_seed/editForm.vue
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/src/pages/system/_seed/form.vue b/Web/src/pages/system/_seed/form.vue
index 873e6f2..941cf9b 100644
--- a/Web/src/pages/system/_seed/form.vue
+++ b/Web/src/pages/system/_seed/form.vue
@@ -1,27 +1,41 @@
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/_seed/index.vue b/Web/src/pages/system/_seed/index.vue
index b189e3e..f65a377 100644
--- a/Web/src/pages/system/_seed/index.vue
+++ b/Web/src/pages/system/_seed/index.vue
@@ -1,26 +1,29 @@
+
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
+
+
+
+
+
- 新增XX
+ 新增...
+
@@ -33,35 +36,52 @@
+
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/app/index.vue b/Web/src/pages/system/app/index.vue
index c1cf183..36aa180 100644
--- a/Web/src/pages/system/app/index.vue
+++ b/Web/src/pages/system/app/index.vue
@@ -1,30 +1,35 @@
+
-
-
-
-
-
-
-
-
-
-
-
- 查询
- { query = {}, onQuery() }">重置
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
新增应用
+
+
{{ text ? '是' : '否' }}
@@ -40,7 +45,9 @@
- {{ bindCodeValue(text, 'common_status') }}
+ {{ bindCodeValue(text, 'commonStatus') }}
+
+
@@ -51,27 +58,50 @@
删除
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Web/src/pages/system/dict/addForm.vue b/Web/src/pages/system/dict/addForm.vue
deleted file mode 100644
index 00d6573..0000000
--- a/Web/src/pages/system/dict/addForm.vue
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/src/pages/system/dict/dictdata/addForm.vue b/Web/src/pages/system/dict/dictdata/addForm.vue
deleted file mode 100644
index bc1067f..0000000
--- a/Web/src/pages/system/dict/dictdata/addForm.vue
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/src/pages/system/dict/dictdata/editForm.vue b/Web/src/pages/system/dict/dictdata/editForm.vue
deleted file mode 100644
index 8d40561..0000000
--- a/Web/src/pages/system/dict/dictdata/editForm.vue
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/src/pages/system/dict/dictdata/form.vue b/Web/src/pages/system/dict/dictdata/form.vue
index 930abc9..273cf2b 100644
--- a/Web/src/pages/system/dict/dictdata/form.vue
+++ b/Web/src/pages/system/dict/dictdata/form.vue
@@ -21,14 +21,16 @@
\ No newline at end of file
diff --git a/Web/src/pages/system/dict/form.vue b/Web/src/pages/system/dict/form.vue
index 6528541..a56ed6c 100644
--- a/Web/src/pages/system/dict/form.vue
+++ b/Web/src/pages/system/dict/form.vue
@@ -47,10 +47,10 @@ export default {
* 必要的方法
* 在打开编辑页时允许填充数据
*/
- onFillData(record) {
+ onFillData(params) {
/** 将默认数据覆盖到form */
this.form = this.$_.cloneDeep({
- ...record,
+ ...params.record,
/** 在此处添加默认数据转换 */
/** ... */
});
diff --git a/Web/src/pages/system/dict/index.vue b/Web/src/pages/system/dict/index.vue
index cc17943..b77c892 100644
--- a/Web/src/pages/system/dict/index.vue
+++ b/Web/src/pages/system/dict/index.vue
@@ -2,27 +2,21 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
新增字典类型
@@ -48,21 +42,25 @@
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
+
diff --git a/Web/src/pages/system/doc/seed/query.vue b/Web/src/pages/system/doc/seed/query.vue
index f772251..e9cebd3 100644
--- a/Web/src/pages/system/doc/seed/query.vue
+++ b/Web/src/pages/system/doc/seed/query.vue
@@ -2,9 +2,9 @@
\ No newline at end of file
diff --git a/Web/src/views/main/_layout/header/search.js b/Web/src/views/main/_layout/header/search.js
index 1e8fb2f..cae9bd6 100644
--- a/Web/src/views/main/_layout/header/search.js
+++ b/Web/src/views/main/_layout/header/search.js
@@ -46,7 +46,7 @@ export default {
onSearch(value) {
this.searchText = value
- const menus = this.$_.cloneDeep(this.menus)
+ const menus = this.$_.concat.apply(this, this.$_.cloneDeep(this.menus.map(p => p.menu)))
const search = (m) => {
if (!value) return []
@@ -83,12 +83,14 @@ export default {
return result
}
- this.searchResult = unzip(search(menus)).map(p => {
+ const result = unzip(search(menus)).filter(p => p.parents.length).map(p => {
return {
parents: p.parents.join('-'),
children: p.children
}
})
+
+ this.searchResult = result
},
onSearchSelect(value, node) {
diff --git a/Web/src/views/main/_layout/nav/index.js b/Web/src/views/main/_layout/nav/index.js
new file mode 100644
index 0000000..cdea4d7
--- /dev/null
+++ b/Web/src/views/main/_layout/nav/index.js
@@ -0,0 +1,78 @@
+export default {
+ props: {
+ nav: {
+ type: Object,
+ default() {
+ return {
+ content: []
+ }
+ }
+ }
+ },
+
+ methods: {
+ onOpenContentWindow(menu) {
+ this.$emit('open')
+ setTimeout(() => {
+ this.openContentWindow({
+ key: menu.id,
+ title: menu.meta.title,
+ icon: menu.meta.icon,
+ path: menu.component,
+ })
+ }, 300)
+ },
+ },
+
+ render() {
+ return (
+
+ {this.nav.content.map((item, i) => {
+ return (
+
+ {item.app.name}
+
+ {
+ item.menu.map(sub => {
+ return (
+
+
+ {
+ sub.children ?
+
+ {
+ sub.meta.icon &&
+ }
+ {sub.meta.title}
+
+ :
+
this.onOpenContentWindow(sub)}>
+ {
+ sub.meta.icon &&
+ }
+ {sub.meta.title}
+
+ }
+ {
+ sub.children && sub.children.map(menu => {
+ return
this.onOpenContentWindow(menu)}>
+ {
+ menu.meta.icon &&
+ }
+ {menu.meta.title}
+
+ })
+ }
+
+
+ )
+ })
+ }
+
+
+ )
+ })}
+
+ )
+ }
+}
\ No newline at end of file
diff --git a/Web/src/views/main/_layout/sider/app.vue b/Web/src/views/main/_layout/sider/app.vue
deleted file mode 100644
index f97d621..0000000
--- a/Web/src/views/main/_layout/sider/app.vue
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
- {{ app.name }}
-
-
-
- {{ appActived.name }}
-
-
-
-
\ No newline at end of file
diff --git a/Web/src/views/main/_layout/sider/index copy.vue b/Web/src/views/main/_layout/sider/index copy.vue
deleted file mode 100644
index 004b462..0000000
--- a/Web/src/views/main/_layout/sider/index copy.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
$emit('change-app', app)" />
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Web/src/views/main/_layout/sider/index.vue b/Web/src/views/main/_layout/sider/index.vue
index 0acaa6c..190312e 100644
--- a/Web/src/views/main/_layout/sider/index.vue
+++ b/Web/src/views/main/_layout/sider/index.vue
@@ -8,7 +8,6 @@
>
-
$emit('change-app', app)" />