diff --git a/src/api/cs-device-boot/fileService.ts b/src/api/cs-device-boot/fileService.ts new file mode 100644 index 0000000..ad04a50 --- /dev/null +++ b/src/api/cs-device-boot/fileService.ts @@ -0,0 +1,49 @@ +import createAxios from '@/utils/request' + +// 设备文件根目录查询 +export function getDeviceRootPath(nDid) { + return createAxios({ + url: '/cs-device-boot/deviceFile/askDeviceRootPath?nDid=' + nDid, + method: 'POST' + }) +} + +// 设备文件-目录信息询问 +export function getFileServiceFileOrDir(data) { + return createAxios({ + url: `cs-device-boot/deviceFile/askDeviceFileOrDir?nDid=${data.nDid}&name=${data.name}&type=${data.type}`, + method: 'POST' + }) +} + +//设备文件下载 +export function downLoadDeviceFile(data) { + return createAxios({ + url: `/cs-device-boot/deviceFile/downloadFile?nDid=${data.nDid}&name=${data.name}&fileCheck=${data.fileCheck}&size=${data.size}`, + method: 'POST' + }) +} + +//装置重启 +export function reStartDevice(data) { + return createAxios({ + url: `/cs-device-boot/EquipmentDelivery/rebootDevice?nDid=${data.nDid}`, + method: 'POST' + }) +} + +//上传文件至装置 +export function uploadDeviceFile(data) { + let form = new FormData() + form.append('file', data.file) + form.append('filePath', data.filePath) + form.append('id', data.id) + return createAxios({ + url: `/access-boot/analyzeModel/uploadDevFile`, + method: 'POST', + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + }, + data: form + }) +} diff --git a/src/api/cs-harmonic-boot/recruitment.ts b/src/api/cs-harmonic-boot/recruitment.ts new file mode 100644 index 0000000..d4db64a --- /dev/null +++ b/src/api/cs-harmonic-boot/recruitment.ts @@ -0,0 +1,17 @@ +import createAxios from '@/utils/request' + +// 获取设备补招页面数据 +export function getMakeUpData(data: any) { + return createAxios({ + url: '/cs-harmonic-boot/offlineDataUpload/makeUpData?lineId='+data, + method: 'POST' + }) +} + +//查询装置目录-文件 +export function getAskDirOrFile(data: any) { + return createAxios({ + url: `/cs-harmonic-boot/offlineDataUpload/askDirOrFile?fileType=${data.fileType}&nDid=${data.nDid}&path=${data.path}&prjName=${data.prjName}`, + method: 'POST' + }) +} \ No newline at end of file diff --git a/src/assets/img/wenjian.svg b/src/assets/img/wenjian.svg new file mode 100644 index 0000000..a83da60 --- /dev/null +++ b/src/assets/img/wenjian.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/img/wenjianjia.svg b/src/assets/img/wenjianjia.svg new file mode 100644 index 0000000..bcac974 --- /dev/null +++ b/src/assets/img/wenjianjia.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/tree/govern/pointTree.vue b/src/components/tree/govern/pointTree.vue index 1f86e27..74e1fc7 100644 --- a/src/components/tree/govern/pointTree.vue +++ b/src/components/tree/govern/pointTree.vue @@ -1,5 +1,5 @@ \ No newline at end of file + diff --git a/src/views/auth/menu/popupApi.vue b/src/views/auth/menu/popupApi.vue index bc5c3ae..eced413 100644 --- a/src/views/auth/menu/popupApi.vue +++ b/src/views/auth/menu/popupApi.vue @@ -59,7 +59,7 @@ const rules = { code: [ { required: true, message: '标识不能为空', trigger: 'blur' }, { - pattern: /^[a-zA-Z_]{1}[a-zA-Z0-9_]{2,15}$/, + pattern: /^[a-zA-Z_]{1}[a-zA-Z0-9_]{2,20}$/, message: '请输入至少3-20位英文', min: 3, max: 20, diff --git a/src/views/govern/device/control/analysisList/index.vue b/src/views/govern/device/control/analysisList/index.vue index d743b85..c121689 100644 --- a/src/views/govern/device/control/analysisList/index.vue +++ b/src/views/govern/device/control/analysisList/index.vue @@ -1,9 +1,6 @@ - - \ No newline at end of file + diff --git a/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue b/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue new file mode 100644 index 0000000..431bd97 --- /dev/null +++ b/src/views/govern/device/control/supplementaryRecruitment/currentDevice.vue @@ -0,0 +1,97 @@ + + + diff --git a/src/views/govern/device/control/tabs/realtime.vue b/src/views/govern/device/control/tabs/realtime.vue index 96bdba6..a9b53fc 100644 --- a/src/views/govern/device/control/tabs/realtime.vue +++ b/src/views/govern/device/control/tabs/realtime.vue @@ -20,7 +20,7 @@
-
+
@@ -75,10 +75,10 @@
{{ - tableData.find(item => { + tableData.find((item: any) => { return item.anotherName == vv.showName && item.phase == vv.phase })?.statisticalData - ? tableData.find(item => { + ? tableData.find((item: any) => { return item.anotherName == vv.showName && item.phase == vv.phase })?.statisticalData : '/' @@ -317,7 +317,7 @@ const initRadioCharts = () => { } }, { - value:70, + value: 70, name: 'B相', itemStyle: { color: '#DAA521' @@ -448,7 +448,7 @@ const getTableData = (list: any) => { })?.statisticalData }) if (index < 4) { - columnsDataTop.value.push(item) + columnsDataTop.value.push(item) } if (index >= 4) { columnsDataBot.value.push(item) @@ -582,8 +582,8 @@ onMounted(() => { height: auto; display: flex; justify-content: space-between; - border: 1px solid #eee; - padding: 10px; + //border: 1px solid #eee; + // padding: 10px; .view_top_left, .view_top_right { width: 30%; @@ -650,7 +650,7 @@ onMounted(() => { .table_info { width: 100%; height: 120px; - border: 1px solid #eee; + // border: 1px solid #eee; border-bottom: 2px solid #eee; margin-bottom: 20px; display: flex; diff --git a/src/views/govern/device/fileService/index.vue b/src/views/govern/device/fileService/index.vue new file mode 100644 index 0000000..a2ccb83 --- /dev/null +++ b/src/views/govern/device/fileService/index.vue @@ -0,0 +1,432 @@ + + + + + + diff --git a/src/views/govern/device/fileService/popup.vue b/src/views/govern/device/fileService/popup.vue new file mode 100644 index 0000000..b4c3e29 --- /dev/null +++ b/src/views/govern/device/fileService/popup.vue @@ -0,0 +1,93 @@ + + + + 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 }} + { } }) }) - tableStore.index() }) const devModelOptionsFilter = computed(() => { return devModelOptions.value.filter((item: any) => { @@ -215,7 +214,7 @@ const tableStore = new TableStore({ url: '/cs-device-boot/EquipmentDelivery/list', method: 'POST', column: [ - { title: '序号', type: 'seq',width:60 }, + { title: '序号', type: 'seq', width: 60 }, { title: '设备名称', field: 'name' }, { title: '设备类型', @@ -570,7 +569,7 @@ provide('tableStore', tableStore) onMounted(() => { setTimeout(() => { - // tableStore.index() + tableStore.index() }, 100) }) diff --git a/vite.config.ts b/vite.config.ts index e771894..7d2f1b8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,7 +17,8 @@ export default defineConfig({ // target: 'http://192.168.1.122:10215', //gfh // target: 'http://192.168.1.127:10215', //cdf // target: 'http://192.168.1.125:10215', - target: 'https://pqmcn.com:8092/api', //治理 + target: 'http://192.168.1.126:10215', + // target: 'https://pqmcn.com:8092/api', //治理 // target:'http://www.zhilitest.com:8089/api', changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') //路径重写,把'/api'替换为''