diff --git a/apps/web-antd/src/api-client/services.gen.ts b/apps/web-antd/src/api-client/services.gen.ts index 1e01a00..6557a21 100644 --- a/apps/web-antd/src/api-client/services.gen.ts +++ b/apps/web-antd/src/api-client/services.gen.ts @@ -3165,6 +3165,7 @@ export const postOneNETAccountCreate = ( ThrowOnError >({ ...options, + ...formDataBodySerializer, url: '/OneNETAccount/InsertAsync', }); }; diff --git a/apps/web-antd/src/locales/langs/en-US/abp.json b/apps/web-antd/src/locales/langs/en-US/abp.json index 3458615..9957f62 100644 --- a/apps/web-antd/src/locales/langs/en-US/abp.json +++ b/apps/web-antd/src/locales/langs/en-US/abp.json @@ -259,5 +259,16 @@ "DeviceCreateTime": "Device Create Time", "DeviceUpdateTime": "Device Update Time", "DeviceLastActiveTime": "Device Last Active Time" + }, + "OneNETManagement": { + "AccountName": "AccountName", + "PhoneNumber": "PhoneNumber", + "AccountAccesskey": "AccountAccesskey", + "ProductCount": "ProductCount", + "OneNETAccountId": "OneNETAccountId", + "IoTPlatformProductId": "IoTPlatformProductId", + "ProductName": "ProductName", + "ProductAccesskey": "ProductAccesskey", + "IsEncrypted": "IsEncrypted" } } diff --git a/apps/web-antd/src/locales/langs/zh-CN/abp.json b/apps/web-antd/src/locales/langs/zh-CN/abp.json index 7782dc8..48961bc 100644 --- a/apps/web-antd/src/locales/langs/zh-CN/abp.json +++ b/apps/web-antd/src/locales/langs/zh-CN/abp.json @@ -263,8 +263,7 @@ "DeviceLastActiveTime": "设备最后活跃时间" }, "OneNETManagement": { - "AccountName": "账号名称", - "AccountId": "账号ID", + "AccountName": "账号名称", "PhoneNumber": "手机号码", "AccountAccesskey": "账户通信密钥", "ProductCount": "产品数量", diff --git a/apps/web-antd/src/views/onenetmanagement/account/schema.ts b/apps/web-antd/src/views/onenetmanagement/account/schema.ts index 631a070..5003c03 100644 --- a/apps/web-antd/src/views/onenetmanagement/account/schema.ts +++ b/apps/web-antd/src/views/onenetmanagement/account/schema.ts @@ -17,8 +17,8 @@ export const querySchema = computed(() => [ export const tableSchema: any = computed((): VxeGridProps['columns'] => [ { title: $t('common.seq'), type: 'seq', width: 50 }, { - field: 'accountId', - title: $t('abp.OneNETManagement.AccountId'), + field: 'oneNETAccountId', + title: $t('abp.OneNETManagement.OneNETAccountId'), minWidth: '150', }, { @@ -53,10 +53,10 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [ export const addAccountFormSchema: any = computed(() => [ { component: 'Input', - fieldName: 'accountId', - label: $t('abp.OneNETManagement.AccountId'), + fieldName: 'OneNETAccountId', + label: $t('abp.OneNETManagement.OneNETAccountId'), rules: z.string().min(1, { - message: `${$t('common.pleaseInput')}${$t('common.info')}${$t('abp.OneNETManagement.AccountId')}`, + message: `${$t('common.pleaseInput')}${$t('common.info')}${$t('abp.OneNETManagement.OneNETAccountId')}`, }), }, {