-
-
-
- {{ outPutPath(item, index) }}
-
-
+
- 搜索
- 重置
+ 搜索
+ 重置
+
+ 装置重启
+
+
+
+
+
+ {{ outPutPath(item, index) }}
+
+
+
+
- {{ fileName }} 上传中...
+ {{ fileName }}
+
+ 上传中...
+
@@ -103,13 +112,27 @@ import DeviceTree from '@/components/tree/govern/deviceTree.vue'
import { mainHeight } from '@/utils/layout'
import { ref, reactive, watch } from 'vue'
import { ElMessage } from 'element-plus'
-import { ArrowLeft, ArrowRight, Download, Upload } from '@element-plus/icons-vue'
import {
getDeviceRootPath,
getFileServiceFileOrDir,
downLoadDeviceFile,
- uploadDeviceFile
+ uploadDeviceFile,
+ reStartDevice
} from '@/api/cs-device-boot/fileService.ts'
+import {
+ CirclePlus,
+ Delete,
+ EditPen,
+ ArrowLeft,
+ ArrowRight,
+ Download,
+ Upload,
+ View,
+ Check,
+ Plus,
+ Refresh,
+ Search
+} from '@element-plus/icons-vue'
import popup from './popup.vue'
defineOptions({
name: 'govern/device/fileService'
@@ -166,6 +189,17 @@ const handleRefresh = () => {
filterFileName.value = ''
dirList.value = currentDirList.value
}
+//装置重启
+const deviceRestartLoading = ref(false)
+const handleRestartDevice = () => {
+ deviceRestartLoading.value = true
+ reStartDevice({ nDid: nDid.value }).then((res: any) => {
+ if (res.code == 'A0000') {
+ deviceRestartLoading.value = false
+ ElMessage.success(res.message)
+ }
+ })
+}
// 进入文件夹
const dirList = ref([])
// 村村当前目录数据
@@ -284,25 +318,36 @@ watch(
overflow: hidden;
flex: 1;
padding: 10px 10px 10px 10px;
- margin-left: 10px;
+ //margin-left: 10px;
border: 1px solid #eee;
- .menu {
+ .right_nav {
width: 100%;
- height: 50px;
+ height: 32px;
display: flex;
- justify-content: flex-start;
- overflow-x: auto;
+ justify-content: space-between;
align-items: center;
- background-color: var(--el-color-primary);
- border-radius: 4px;
- span {
- font-size: 14px;
- font-weight: 800;
- padding: 0 5px;
- color: #fff;
- cursor: pointer;
+ .menu {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: flex-start;
+ overflow-x: auto;
+ align-items: center;
+ background-color: var(--el-color-primary);
+ border-radius: 4px;
+ span {
+ font-size: 14px;
+ font-weight: 800;
+ padding: 0 5px;
+ color: #fff;
+ cursor: pointer;
+ }
+ }
+ .el-button {
+ margin: 0 10px;
}
}
+
.filter {
width: 100%;
height: 30px;
@@ -329,7 +374,7 @@ watch(
display: flex;
flex-wrap: wrap;
align-items: flex-start;
- justify-content: space-between;
+ // justify-content: space-between;
overflow-y: auto;
margin-top: 10px;
max-height: 100%;
@@ -377,6 +422,10 @@ watch(
margin-top: 10px;
}
}
+ .list_item:nth-child(4n + 2),
+ .list_item:nth-child(4n + 3) {
+ margin: 10px 0.8%;
+ }
}
}
}
diff --git a/src/views/govern/device/manage/index.vue b/src/views/govern/device/manage/index.vue
index 5c2ebed..5b2b099 100644
--- a/src/views/govern/device/manage/index.vue
+++ b/src/views/govern/device/manage/index.vue
@@ -34,6 +34,15 @@
{{ deviceData.time }}
+
+ {{ deviceData.appVersion }}
+
+
+ {{ deviceData.appDate }}
+
+
+ {{ deviceData.appCheck }}
+