diff --git a/src/api/index.js b/src/api/index.js index 184465b..b58cda7 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,11 +1,13 @@ import Setting from "@/setting"; const host = Setting.apiBaseURL -const uploadURL = Setting.upload.apiURL; const host1 = 'http://192.168.31.151:10000/' export default { logins: `iasf/sys/user/login`, verification: `${host}iasf/sys/getVerify`, + upload: `${host}iasf/sysFiles/upload`, + listByPage: `${host}iasf/sysFiles/listByPage`, + delFile: `${host}iasf/sysFiles/delete`, dept: `iasf/sys/dept`, deptTree: `iasf/sys/dept/tree`, deptId: `iasf/sys/dept`, @@ -22,4 +24,5 @@ export default { queryArticle: `${host1}iasf/sysContent/pagingQuery`, saveArticle: `${host1}iasf/sysContent/save`, updateArticle: `${host1}iasf/sysContent/update`, + longPageColumnList: `${host1}iasf/pageManagement/longPageColumnList`, } \ No newline at end of file diff --git a/src/assets/img/article1.png b/src/assets/img/article1.png new file mode 100644 index 0000000..6f92f81 Binary files /dev/null and b/src/assets/img/article1.png differ diff --git a/src/assets/img/article2.png b/src/assets/img/article2.png new file mode 100644 index 0000000..972e33b Binary files /dev/null and b/src/assets/img/article2.png differ diff --git a/src/assets/img/article3.png b/src/assets/img/article3.png new file mode 100644 index 0000000..a40219d Binary files /dev/null and b/src/assets/img/article3.png differ diff --git a/src/assets/img/list1.png b/src/assets/img/list1.png new file mode 100644 index 0000000..39a80e0 Binary files /dev/null and b/src/assets/img/list1.png differ diff --git a/src/assets/img/list2.png b/src/assets/img/list2.png new file mode 100644 index 0000000..da8e548 Binary files /dev/null and b/src/assets/img/list2.png differ diff --git a/src/assets/img/plus.png b/src/assets/img/plus.png new file mode 100644 index 0000000..9358205 Binary files /dev/null and b/src/assets/img/plus.png differ diff --git a/src/assets/img/style1.png b/src/assets/img/style1.png new file mode 100644 index 0000000..d552c61 Binary files /dev/null and b/src/assets/img/style1.png differ diff --git a/src/assets/img/style2.png b/src/assets/img/style2.png new file mode 100644 index 0000000..411a3f3 Binary files /dev/null and b/src/assets/img/style2.png differ diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 27b6d64..52dc542 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -95,7 +95,7 @@ export default { return { collapse: false, active: this.$route.path, - siteActive: '/page/list', + siteActive: '/page', reloadSite: true, menus: [ { @@ -149,25 +149,22 @@ export default { title: '内容管理', subs: [ { - index: '/page/list', + index: '/page', title: '页面管理' }, { - index: '/column/list', + index: '/column', title: '栏目管理' }, { - index: '/article/list', + index: '/article', title: '文章管理' } ] } ], actives: { - dashboard: ["add"], - achievement: ["experiment", "experimentVir", "experimentTeach", "addexperiment", "addexperimentoptions", "showExperiment", "showExperimentoption", "showExperimentoptions"], - project: ["addproject", "program", "programOption", "programOptions"], - backstage: ["report"] + dashboard: ["add"], } }; }, @@ -177,21 +174,23 @@ export default { ]) }, watch: { - "$route"(to, from) { - let actives = this.actives; - for (let i in this.actives) { - if (actives[i].includes(this.$route.name)) this.active = `/${i}/list`; - } - let arr=this.$route.path.split("/"); - let name = `/${arr[1]}/list` - this.active = name - const { path } = this.$route - console.log("🚀 ~ file: index.vue ~ line 167 ~ path", this.sites[0].subs.find(e => e.index === path)) - this.collapse = !!this.sites[0].subs.find(e => e.index === path) + "$route"(to, from) { + let actives = this.actives; + for (let i in this.actives) { + if (actives[i].includes(this.$route.name)) this.active = `/${i}/list`; } + let arr=this.$route.path.split("/"); + let name = `/${arr[1]}/list` + this.active = name + const { path } = this.$route + this.collapse = !!this.sites[0].subs.find(e => path.includes(e.index)) + } }, created() { - this.collapse = !!this.sites[0].subs.find(e => e.index === this.$route.path) + const { path } = this.$route + console.log("🚀 ~ file: index.vue ~ line 191 ~ created ~ path", path) + this.collapse = !!this.sites[0].subs.find(e => path.includes(e.index)) + if (this.collapse) this.siteActive = '/' + path.split('/')[1] // this.getPer() }, methods: { @@ -200,21 +199,9 @@ export default { ]), // 菜单选择 menuSelect(index) { - console.log("🚀 ~ file: index.vue ~ line 180 ~ menuSelect ~ index", index) this.collapse = false if (index.includes('/')) { - this.$router.push(index) - // if (this.collapse) { - // this.reloadSite = false - // this.siteActive = '/page/list' - // this.$nextTick(() => { - // this.reloadSite = true - // }) - // this.$router.push('/page') - // } - } else { - } }, // 获取权限列表 diff --git a/src/pages/annex/list/index.vue b/src/pages/annex/list/index.vue new file mode 100644 index 0000000..33b4322 --- /dev/null +++ b/src/pages/annex/list/index.vue @@ -0,0 +1,137 @@ + + + + + \ No newline at end of file diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index 4b0c95e..caf7ac2 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -1,256 +1,231 @@ \ No newline at end of file diff --git a/src/pages/article/list/index.vue b/src/pages/article/list/index.vue index a1060fe..9ce54ea 100644 --- a/src/pages/article/list/index.vue +++ b/src/pages/article/list/index.vue @@ -1,192 +1,161 @@ diff --git a/src/pages/column/add/index.vue b/src/pages/column/add/index.vue index 422d0d2..727fbb1 100644 --- a/src/pages/column/add/index.vue +++ b/src/pages/column/add/index.vue @@ -1,252 +1,239 @@ \ No newline at end of file diff --git a/src/pages/column/list/index.vue b/src/pages/column/list/index.vue index c13c1c6..4e873fe 100644 --- a/src/pages/column/list/index.vue +++ b/src/pages/column/list/index.vue @@ -1,50 +1,83 @@ \ No newline at end of file diff --git a/src/pages/page/list/index.vue b/src/pages/page/list/index.vue index a23238b..5ccae21 100644 --- a/src/pages/page/list/index.vue +++ b/src/pages/page/list/index.vue @@ -1,81 +1,91 @@ diff --git a/src/pages/site/list/index.vue b/src/pages/site/list/index.vue index 50aa572..c5d2582 100644 --- a/src/pages/site/list/index.vue +++ b/src/pages/site/list/index.vue @@ -1,73 +1,69 @@