diff --git a/entry/src/main/ets/model/Common.ets b/entry/src/main/ets/model/Common.ets index ec33c25..4538d03 100644 --- a/entry/src/main/ets/model/Common.ets +++ b/entry/src/main/ets/model/Common.ets @@ -173,6 +173,8 @@ export interface EnvironmentConfigurationType { judgeVersion?: string // 是否使用网络摄像头 isUseNetworkCamera?: string + // 厂商 诚迈 1 润和 2 + manufacturer?: string } //全局配置 diff --git a/entry/src/main/ets/pages/TerminalInfo.ets b/entry/src/main/ets/pages/TerminalInfo.ets index 4ea80a5..30cf1cd 100644 --- a/entry/src/main/ets/pages/TerminalInfo.ets +++ b/entry/src/main/ets/pages/TerminalInfo.ets @@ -225,6 +225,14 @@ struct TerminalInfoPage { } } }) + blockComponent({ + label: "前置机厂商", + type: 8, + value: this.config.manufacturer, + change: (value: string) => { + this.config.manufacturer = value; + } + }) }.margin(20) } .height(650) @@ -373,6 +381,16 @@ struct blockComponent { value: '4' } ] + @State manufacturerList: CommonListType[] = [ + { + label: '诚迈', + value: '1' + }, + { + label: '润和', + value: '2' + } + ] aboutToAppear(): void { } @@ -410,7 +428,7 @@ struct blockComponent { } else { ForEach(this.type === 1 ? this.rearMachineModelList : this.type === 2 || this.type === 5 || this.type === 6 || this.type === 7 ? this.logList : - this.type === 3 ? this.boardList : this.carTypeList, (item: CommonListType, index) => { + this.type === 3 ? this.boardList : this.type === 8 ? this.manufacturerList : this.carTypeList, (item: CommonListType, index) => { Radio({ value: item.label, group: 'terRadioGroup' + this.type }) .borderColor('#E5CBA1') .checked(item.value === this.value ? true : false)