diff --git a/rc_autoplc_front/src/api/tb/devparam.ts b/rc_autoplc_front/src/api/tb/devparam.ts
new file mode 100644
index 0000000..75d0e18
--- /dev/null
+++ b/rc_autoplc_front/src/api/tb/devparam.ts
@@ -0,0 +1,47 @@
+import request from '@/utils/request'
+
+export function devparamadd(data: any) {
+ return request({
+ url: '/devParam/add',
+ method: 'post',
+ data,
+ })
+}
+
+export function devparamdel(id: string | number) {
+ return request({
+ url: `/devParam/del/${id}`,
+ method: 'delete',
+ })
+}
+
+export function devparamupd(data: any) {
+ return request({
+ url: '/devParam/update',
+ method: 'put',
+ data,
+ })
+}
+
+export function devparamlist(data: any) {
+ return request({
+ url: '/devParam/listPage',
+ method: 'get',
+ params: data,
+ })
+}
+
+export function devparambyid(id: string | number) {
+ return request({
+ url: `/devParam/getById/${id}`,
+ method: 'get',
+ })
+}
+
+export function devparamselect(data: any) {
+ return request({
+ url: '/devParam/list',
+ method: 'get',
+ params: data,
+ })
+}
\ No newline at end of file
diff --git a/rc_autoplc_front/src/assets/image/right.png b/rc_autoplc_front/src/assets/image/right.png
new file mode 100644
index 0000000..0237eb9
Binary files /dev/null and b/rc_autoplc_front/src/assets/image/right.png differ
diff --git a/rc_autoplc_front/src/router/index.ts b/rc_autoplc_front/src/router/index.ts
index 982af39..3604ca3 100644
--- a/rc_autoplc_front/src/router/index.ts
+++ b/rc_autoplc_front/src/router/index.ts
@@ -47,6 +47,11 @@ const router = createRouter({
name: 'devinfo',
component: () => import('../views/devinfo/index.vue'),
},
+ {
+ path: '/plc-devinfo',
+ name: 'plc-devinfo',
+ component: () => import('../views/devinfo/plc.vue'),
+ },
],
},
],
diff --git a/rc_autoplc_front/src/views/Layout.vue b/rc_autoplc_front/src/views/Layout.vue
index 07c079c..44daf7b 100644
--- a/rc_autoplc_front/src/views/Layout.vue
+++ b/rc_autoplc_front/src/views/Layout.vue
@@ -74,6 +74,10 @@
设备管理
+
+
+ PLC设备管理
+
@@ -90,7 +94,7 @@
import { ref, computed } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
-import { User, Setting, Avatar, OfficeBuilding, Briefcase, Document, CaretBottom, UserFilled, Grid, Monitor } from '@element-plus/icons-vue'
+import { User, Setting, Avatar, OfficeBuilding, Briefcase, Document, CaretBottom, UserFilled, Grid, Monitor, Connection, Plus } from '@element-plus/icons-vue'
import { useAuthStore } from '@/stores/auth'
const router = useRouter()
diff --git a/rc_autoplc_front/src/views/devinfo/index.vue b/rc_autoplc_front/src/views/devinfo/index.vue
index 0520dee..d68f9d6 100644
--- a/rc_autoplc_front/src/views/devinfo/index.vue
+++ b/rc_autoplc_front/src/views/devinfo/index.vue
@@ -73,26 +73,6 @@
{{ row.devModel || '暂无' }}
-
-
- {{ row.ipAddr || '暂无' }}
-
-
-
-
- {{ row.port !== null && row.port !== undefined ? row.port : '暂无' }}
-
-
-
-
- {{ row.protocolType || '暂无' }}
-
-
-
-
- {{ row.company || '暂无' }}
-
-
@@ -115,8 +95,17 @@
{{ row.remark || '暂无' }}
-
+
+
+
+ 配置参数
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.paramName || '暂无' }}
+
+
+
+
+
+
+
+
+
+ {{ row.paramType || '暂无' }}
+
+
+
+
+
+
+
+ {{ row.paramUnit || '暂无' }}
+
+
+
+
+
+
+
+
+
+ {{ row.formType || '暂无' }}
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/rc_autoplc_front/tsconfig.app.json b/rc_autoplc_front/tsconfig.app.json
index 913b8f2..ba6658c 100644
--- a/rc_autoplc_front/tsconfig.app.json
+++ b/rc_autoplc_front/tsconfig.app.json
@@ -1,4 +1,5 @@
{
+
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],