diff --git a/src/api/fs.js b/src/api/fs.js new file mode 100644 index 0000000000000000000000000000000000000000..6e1df68dc0bb42c4039950397bf17addf0b8b6f7 --- /dev/null +++ b/src/api/fs.js @@ -0,0 +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 + }) +} diff --git a/src/pages/node/list/node-layout/dictionaryTree/index.vue b/src/pages/node/list/node-layout/dictionaryTree/index.vue index 345f91c9e4524f809a41f2529a48f423e891b2e5..a4bbea40d9f35e67f33476485b368be4487952f2 100644 --- a/src/pages/node/list/node-layout/dictionaryTree/index.vue +++ b/src/pages/node/list/node-layout/dictionaryTree/index.vue @@ -39,17 +39,39 @@ {{ text }} + +
+
+ {{ item }} +
+
+
+ + + +