diff --git a/src/api/fs.js b/src/api/fs.js
index 2dd6e210c298501ed42838c58cc8107bbea30523..6e1df68dc0bb42c4039950397bf17addf0b8b6f7 100644
--- a/src/api/fs.js
+++ b/src/api/fs.js
@@ -1,35 +1,35 @@
-import axios from './config'
-
-// 获取文件
-export function lsFile(data) {
- return axios({
- url: '/fs/ls',
- headers: {
- 'Content-Type': 'application/json; charset=UTF-8'
- },
- method: 'post',
- data
- })
-}
-
-// 查询文件
-export function catFile(data) {
- return axios({
- url: '/fs/cat',
- headers: {
- 'Content-Type': 'application/json; charset=UTF-8'
- },
- method: 'post',
- data
- })
-}
-
-// 查询文件所属软件包
-export function getPkgByFile(data) {
- return axios({
- // baseURL: 'http://172.30.17.23:2124',
- url: '/getPkgByFile',
- method: 'post',
- data
- })
-}
+import axios from './config'
+
+// 获取文件
+export function lsFile(data) {
+ return axios({
+ url: '/fs/ls',
+ headers: {
+ 'Content-Type': 'application/json; charset=UTF-8'
+ },
+ method: 'post',
+ data
+ })
+}
+
+// 查询文件
+export function catFile(data) {
+ return axios({
+ url: '/fs/cat',
+ headers: {
+ 'Content-Type': 'application/json; charset=UTF-8'
+ },
+ method: 'post',
+ data
+ })
+}
+
+// 查询文件所属软件包
+export function getPkgByFile(data) {
+ return axios({
+ // baseURL: 'http://172.30.17.23:2124',
+ url: '/getPkgByFile',
+ method: 'post',
+ data
+ })
+}
diff --git a/src/pages/node/list/node-layout/components/file-package.vue b/src/pages/node/list/node-layout/components/file-package.vue
new file mode 100644
index 0000000000000000000000000000000000000000..298f1a11de14ce9f667c641cc36881fbba3039e3
--- /dev/null
+++ b/src/pages/node/list/node-layout/components/file-package.vue
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
diff --git a/src/pages/node/list/node-layout/dictionaryTree/index.vue b/src/pages/node/list/node-layout/dictionaryTree/index.vue
index f74d459a95d5204e8a6a9e70922320a19c6fd080..c9c8e2e616ac06f585b92e6ec3e1829b0089ef0f 100644
--- a/src/pages/node/list/node-layout/dictionaryTree/index.vue
+++ b/src/pages/node/list/node-layout/dictionaryTree/index.vue
@@ -57,7 +57,6 @@
-
diff --git a/src/router/index.js b/src/router/index.js
index 148145cb169a2e49d81db89c53a0eb3d6475561c..283d3816b6173871850b57e1e5b75ae8b8d65298 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,84 +1,96 @@
-import Vue from 'vue'
-import Router from 'vue-router'
-
-Vue.use(Router)
-
-const children = [
- {
- path: '/node/list',
- name: 'node-list',
- meta: { title: '节点列表' },
- component: () => import('../pages/node/list')
- },
- {
- path: '/node/nodeGroupManager',
- name: 'nodeGroupManager',
- meta: { title: '分组管理' },
- component: () => import('../pages/node/nodeGroupManager')
- },
- {
- path: '/user/list',
- name: 'user-list',
- meta: { title: '用户列表' },
- component: () => import('../pages/user')
- },
- {
- path: '/audit/list',
- name: 'audit-list',
- meta: { title: '审计日志' },
- component: () => import('@/pages/audit')
- },
- {
- path: '/repository/package',
- name: 'repository-package',
- meta: { title: '软件包列表' },
- component: () => import('@/pages/repository/package')
- },
- {
- path: '/repository/source',
- name: 'repository-source',
- meta: { title: '软件源模板列表' },
- component: () => import('@/pages/repository/source')
- },
- {
- path: '/script/script',
- name: 'script-script',
- meta: { title: '脚本列表' },
- component: () => import('@/pages/script/script')
- }
-]
-
-const router = new Router({
- mode: 'hash',
- routes: [
- {
- path: '/login',
- name: 'login',
- component: () => import('../pages/login')
- },
- {
- path: '/',
- name: 'home',
- component: () => import('../pages/layout'),
- redirect: '/node/list',
- children: children
- },
- {
- path: '/install',
- name: 'install',
- component: () => import('../pages/install')
- },
- {
- path: '*',
- name: '404',
- component: () => import('../pages/404')
- },
- {
- path: '/system/ipAccess',
- name: 'ipAccess',
- component: () => import('../pages/system/ipAccess')
- }
- ]
-})
-
-export default router
+import Vue from 'vue'
+import Router from 'vue-router'
+
+Vue.use(Router)
+
+const children = [
+ {
+ path: '/node/list',
+ name: 'node-list',
+ meta: { title: '节点列表' },
+ component: () => import('../pages/node/list')
+ },
+ {
+ path: '/node/nodeGroupManager',
+ name: 'nodeGroupManager',
+ meta: { title: '分组管理' },
+ component: () => import('../pages/node/nodeGroupManager')
+ },
+ {
+ path: '/user/list',
+ name: 'user-list',
+ meta: { title: '用户列表' },
+ component: () => import('../pages/user')
+ },
+ {
+ path: '/audit/list',
+ name: 'audit-list',
+ meta: { title: '审计日志' },
+ component: () => import('@/pages/audit')
+ },
+ {
+ path: '/repository/package',
+ name: 'repository-package',
+ meta: { title: '软件包列表' },
+ component: () => import('@/pages/repository/package')
+ },
+ {
+ path: '/repository/source',
+ name: 'repository-source',
+ meta: { title: '软件源模板列表' },
+ component: () => import('@/pages/repository/source')
+ },
+ {
+ path: '/script/script',
+ name: 'script-script',
+ meta: { title: '脚本列表' },
+ component: () => import('@/pages/script/script')
+ },
+ {
+ path: '/script/command',
+ name: 'script-command',
+ meta: { title: '命令列表' },
+ component: () => import('@/pages/script/command')
+ },
+ {
+ path: '/upgrade/list',
+ name: 'upgrade-list',
+ meta: { title: '升级列表' },
+ component: () => import('@/pages/upgrade')
+ }
+]
+
+const router = new Router({
+ mode: 'hash',
+ routes: [
+ {
+ path: '/login',
+ name: 'login',
+ component: () => import('../pages/login')
+ },
+ {
+ path: '/',
+ name: 'home',
+ component: () => import('../pages/layout'),
+ redirect: '/node/list',
+ children: children
+ },
+ {
+ path: '/install',
+ name: 'install',
+ component: () => import('../pages/install')
+ },
+ {
+ path: '*',
+ name: '404',
+ component: () => import('../pages/404')
+ },
+ {
+ path: '/system/ipAccess',
+ name: 'ipAccess',
+ component: () => import('../pages/system/ipAccess')
+ }
+ ]
+})
+
+export default router
diff --git a/src/router/route-menu.js b/src/router/route-menu.js
index 9360f1f2bfc90125b61e5b06eb4e062531a6898e..dfdbf5783d1b238d5fd5000eddde3d0fdf4af891 100644
--- a/src/router/route-menu.js
+++ b/src/router/route-menu.js
@@ -1,16 +1,18 @@
-/**
- * 路由菜单
- * key 对应后台接口返回的菜单中的 id
- * value 表示该路由的 path
- */
-const routeMenuMap = {
- 'nodeList': '/node/list',
- 'nodeGroupManager': '/node/nodeGroupManager',
- 'audit': '/audit/list',
- 'user': '/user/list',
- 'repository_source': '/repository/source',
- 'repository_package': '/repository/package',
- 'manageScript': '/script/script'
-}
-
-export default routeMenuMap
+/**
+ * 路由菜单
+ * key 对应后台接口返回的菜单中的 id
+ * value 表示该路由的 path
+ */
+const routeMenuMap = {
+ 'nodeList': '/node/list',
+ 'nodeGroupManager': '/node/nodeGroupManager',
+ 'audit': '/audit/list',
+ 'user': '/user/list',
+ 'repository_source': '/repository/source',
+ 'repository_package': '/repository/package',
+ 'manageScript': '/script/script',
+ 'manageCommand': '/script/command',
+ 'upgrade': '/upgrade/list'
+}
+
+export default routeMenuMap