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 @@