fix: 串口代码优化
This commit is contained in:
parent
fa80b4ca7b
commit
aa67ead81a
@ -173,6 +173,8 @@ export interface EnvironmentConfigurationType {
|
||||
judgeVersion?: string
|
||||
// 是否使用网络摄像头
|
||||
isUseNetworkCamera?: string
|
||||
// 厂商 诚迈 1 润和 2
|
||||
manufacturer?: string
|
||||
}
|
||||
|
||||
//全局配置
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user