diff --git a/src/App.vue b/src/App.vue index a40691aff192c6c059ceaa638e10e3dd5f6d5553..467cac269ec628f069373f7d4fc7aeb17370694d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,36 +1,45 @@ + diff --git a/src/assets/imgs/img_default.png b/src/assets/imgs/img_default.png new file mode 100644 index 0000000000000000000000000000000000000000..51ec9de2960e9cfea4185b25356c1564bdd56ceb Binary files /dev/null and b/src/assets/imgs/img_default.png differ diff --git a/src/assets/imgs/tool_fuwu.png b/src/assets/imgs/tool_fuwu.png new file mode 100644 index 0000000000000000000000000000000000000000..154653d9131cf495a0e81f94ee727b7fc06d770d Binary files /dev/null and b/src/assets/imgs/tool_fuwu.png differ diff --git a/src/components/side-nav-bar.vue b/src/components/side-nav-bar.vue new file mode 100644 index 0000000000000000000000000000000000000000..7329a95c5e8fdb5a1c99d2332f8325f71e69f969 --- /dev/null +++ b/src/components/side-nav-bar.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/components/table-um.vue b/src/components/table-um.vue index 8cf034af5492a7288d9188012861136e806ef07c..c77071d7dd0d4860d648f37450e0259d583cbd0f 100644 --- a/src/components/table-um.vue +++ b/src/components/table-um.vue @@ -31,7 +31,7 @@ v-if="searchShow" v-model="search" placeholder="请输入账号、中文名" - style="max-width:180px;" + style="max-width:220px;" size="mini" @input="searchVal" class="ces_toolbar_inp" @@ -107,18 +107,22 @@ {{ btn.label }} + {{ btn.label }} + {{ btn.label }} - {{ - btn.line - }} + {{ btn.label }} + + + {{ btn.line }} + diff --git a/src/pages/fwgl.vue b/src/pages/fwgl.vue new file mode 100644 index 0000000000000000000000000000000000000000..2e5bca46f5c434c23fa9a018002d3a29aed8d4b4 --- /dev/null +++ b/src/pages/fwgl.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/src/pages/fwglList.vue b/src/pages/fwglList.vue new file mode 100644 index 0000000000000000000000000000000000000000..e36f27bc21e9f89377fb280614d36b998fb50486 --- /dev/null +++ b/src/pages/fwglList.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index a34d691d5bfa9edd9e3fe0c25f1cfd1e2ad3a014..0d439223abc57435b7146c88408b8777288f3ee7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,59 +2,80 @@ import Vue from "vue"; import Router from "vue-router"; import Index from "@/pages/index"; -import workPlace from "@/pages/workPlace" +import workPlace from "@/pages/workPlace"; Vue.use(Router); +const originalPush = Router.prototype.push; +Router.prototype.push = function push(location, onResolve, onReject) { + if (onResolve || onReject) + return originalPush.call(this, location, onResolve, onReject); + return originalPush.call(this, location).catch((err) => err); +}; + export default new Router({ routes: [ { path: "/", - redirect: "/index" + redirect: "/index", }, { path: "/index", name: "index", component: Index, redirect: "/workplace", - children: [{ - path: "/workplace", - name: "workPlace", - component: workPlace, - }, - { - path: "/fwzc", // 服务注册 - name: "fwzc", - redirect: "/fwzc/fwcs", - component: () => import("@/pages/fwzc_fwcs"), - children: [ - { - path: "/fwzc/fwcs", // 服务注册/服务测试 - name: "fwcs", - component: () => import("@/pages/fwzc_fwcs") - }, - ] - } - ] + children: [ + { + path: "/workplace", + name: "workPlace", + component: workPlace, + }, + { + path: "/fwzc", // 服务注册 + name: "fwzc", + redirect: "/fwzc/fwcs", + component: () => import("@/pages/fwzc_fwcs"), + children: [ + { + path: "/fwzc/fwcs", // 服务注册/服务测试 + name: "fwcs", + component: () => import("@/pages/fwzc_fwcs"), + }, + ], + }, + { + path: "/fwgl", // 服务注册 + name: "fwgl", + // redirect: "/fwgl/list", + component: () => import("@/pages/fwgl"), + children: [ + { + path: "/fwgl/list/:type/:name", // 服务注册/服务测试 + name: "fwglList", + component: () => import("@/pages/fwglList"), + }, + ], + }, + ], }, { path: "/example_table", // 表格实例 name: "example_table", - component: () => import("@/pages/example_table") + component: () => import("@/pages/example_table"), }, { path: "/example_upload", // 表格实例 name: "example_upload", - component: () => import("@/pages/example_upload") + component: () => import("@/pages/example_upload"), }, { path: "/example_code", // 编辑器实例 name: "example_code", - component: () => import("@/pages/example_code") + component: () => import("@/pages/example_code"), }, { path: "/example_icon", // svg 实例 name: "example_icon", - component: () => import("@/pages/example_icon") - } - ] + component: () => import("@/pages/example_icon"), + }, + ], });