diff --git a/mayfly_go_web/src/views/ops/machine/FileManage.vue b/mayfly_go_web/src/views/ops/machine/FileManage.vue index 5486ac8b..999685af 100755 --- a/mayfly_go_web/src/views/ops/machine/FileManage.vue +++ b/mayfly_go_web/src/views/ops/machine/FileManage.vue @@ -3,21 +3,21 @@
- 添加 + 添加
- + @@ -444,6 +462,37 @@ const loadNode = async (node: any, resolve: any) => { return resolve(res); }; +const getDirSize = async (data: any) => { + try { + data.loadingDirSize = true; + const res = await machineApi.dirSize.request({ + machineId: props.machineId, + fileId: state.tree.folder.id, + path: data.path + }) + data.dirSize = res; + } finally { + data.loadingDirSize = false; + } +} + +const showFileStat = async (data: any) => { + try { + if (data.stat) { + return; + } + data.loadingStat = true; + const res = await machineApi.fileStat.request({ + machineId: props.machineId, + fileId: state.tree.folder.id, + path: data.path + }) + data.stat = res; + } finally { + data.loadingStat = false; + } +} + const showCreateFileDialog = (node: any) => { isTrue(node.expanded, '请先点击展开该节点后再创建'); state.createFileDialog.node = node; @@ -595,4 +644,4 @@ const formatFileSize = (size: any) => { return '-'; }; - \ No newline at end of file + \ No newline at end of file diff --git a/mayfly_go_web/src/views/ops/machine/ScriptEdit.vue b/mayfly_go_web/src/views/ops/machine/ScriptEdit.vue index 71780260..0e5b30e6 100644 --- a/mayfly_go_web/src/views/ops/machine/ScriptEdit.vue +++ b/mayfly_go_web/src/views/ops/machine/ScriptEdit.vue @@ -2,7 +2,7 @@
- + @@ -19,7 +19,7 @@ - 新增占位符参数 + 新增占位符参数 @@ -48,7 +48,7 @@ - 删除 + 删除 diff --git a/mayfly_go_web/src/views/ops/machine/ScriptManage.vue b/mayfly_go_web/src/views/ops/machine/ScriptManage.vue index 5ad34050..f9c38580 100644 --- a/mayfly_go_web/src/views/ops/machine/ScriptManage.vue +++ b/mayfly_go_web/src/views/ops/machine/ScriptManage.vue @@ -4,23 +4,22 @@ :before-close="handleClose" width="60%">
- +
查看 + plain>查看 添加 + plain>添加 删除 + @click="deleteRow(currentData)" icon="delete" plain>删除
- +