From 5f6808b2a4c0ed970c65230b60da1ca4ed310822 Mon Sep 17 00:00:00 2001 From: Lxq <19852720163@163.com> Date: Mon, 5 Jan 2026 13:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E7=B1=BB=E5=9E=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86+=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc_autoplc_front/src/api/system/dicdata.ts | 53 +++ rc_autoplc_front/src/api/system/dictype.ts | 46 ++ rc_autoplc_front/src/views/devinfo/index.vue | 427 +++++++++++++++++- rc_autoplc_front/src/views/stepinfo/index.vue | 99 +++- 4 files changed, 617 insertions(+), 8 deletions(-) create mode 100644 rc_autoplc_front/src/api/system/dicdata.ts create mode 100644 rc_autoplc_front/src/api/system/dictype.ts diff --git a/rc_autoplc_front/src/api/system/dicdata.ts b/rc_autoplc_front/src/api/system/dicdata.ts new file mode 100644 index 0000000..4b77d55 --- /dev/null +++ b/rc_autoplc_front/src/api/system/dicdata.ts @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +export function dicdataadd(data: any) { + return request({ + url: '/sysDicData/add', + method: 'post', + data, + }) +} + +export function dicdatadel(id: string | number) { + return request({ + url: `/sysDicData/del/${id}`, + method: 'delete', + }) +} + +export function dicdataupd(data: any) { + return request({ + url: '/sysDicData/update', + method: 'put', + data, + }) +} + +export function dicdatalist(data: any) { + return request({ + url: '/sysDicData/listPage', + method: 'get', + params: data, + }) +} + +export function dicdatabyid(id: string | number) { + return request({ + url: `/sysDicData/getById/${id}`, + method: 'get', + }) +} + +export function dicdataall() { + return request({ + url: `/sysDicData/list`, + method: 'get', + }) +} + +export function dicdatabydicid(dicId : string | number) { + return request({ + url: `/sysDicData/listByDicId/${dicId}`, + method: 'get', + }) +} \ No newline at end of file diff --git a/rc_autoplc_front/src/api/system/dictype.ts b/rc_autoplc_front/src/api/system/dictype.ts new file mode 100644 index 0000000..e65d77a --- /dev/null +++ b/rc_autoplc_front/src/api/system/dictype.ts @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +export function dictypeadd(data: any) { + return request({ + url: '/sysDicType/add', + method: 'post', + data, + }) +} + +export function dictypedel(id: string | number) { + return request({ + url: `/sysDicType/del/${id}`, + method: 'delete', + }) +} + +export function dictypeupd(data: any) { + return request({ + url: '/sysDicType/update', + method: 'put', + data, + }) +} + +export function dictypelist(data: any) { + return request({ + url: '/sysDicType/listPage', + method: 'get', + params: data, + }) +} + +export function dictypebyid(id: string | number) { + return request({ + url: `/sysDicType/getById/${id}`, + method: 'get', + }) +} + +export function dictypeall() { + return request({ + url: `/sysDicType/list`, + method: 'get', + }) +} \ No newline at end of file diff --git a/rc_autoplc_front/src/views/devinfo/index.vue b/rc_autoplc_front/src/views/devinfo/index.vue index 53e1e35..44e9359 100644 --- a/rc_autoplc_front/src/views/devinfo/index.vue +++ b/rc_autoplc_front/src/views/devinfo/index.vue @@ -201,6 +201,55 @@ + + + + + + 选项数据: + + 添加 + + + + + + {{ option.dicValue }} + + + + + + 暂无选项数据,请添加 + + + + + + + + - + - {{ row.formType || '暂无' }} + + 下拉框 + + {{ getFormTypeLabel(row.formType) || '暂无' }} @@ -353,7 +412,7 @@