|
@@ -12,7 +12,9 @@ export struct RobotErrorHandle {
|
|
|
|
|
|
@State list: Resource[] = [$r('app.media.car_preview'), $r('app.media.car_preview')]
|
|
@State list: Resource[] = [$r('app.media.car_preview'), $r('app.media.car_preview')]
|
|
@State selectRobot: number = 0
|
|
@State selectRobot: number = 0
|
|
- @State HingingLevel: number = 1
|
|
|
|
|
|
+ @State HingingLevel: number = 0
|
|
|
|
+ @State HingingIndex: number = 0
|
|
|
|
+ @State HingingString: string = '原位'
|
|
@State colorArray: number[] = [1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
|
@State colorArray: number[] = [1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
|
@State clickStatus: number[] = [1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
|
@State clickStatus: number[] = [1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
|
@State reminds:string='1'
|
|
@State reminds:string='1'
|
|
@@ -388,21 +390,54 @@ export struct RobotErrorHandle {
|
|
.width('20%')
|
|
.width('20%')
|
|
.height('100%')
|
|
.height('100%')
|
|
.textAlign(TextAlign.End)
|
|
.textAlign(TextAlign.End)
|
|
- TextInput({ placeholder: '请输入数字', text: this.HingingLevel + ''})
|
|
|
|
- .placeholderColor($r('app.color.login_text_input_placeholder_color'))
|
|
|
|
- .placeholderFont({ size: $r('app.float.robot_set_font_size'), weight: FontWeight.Medium })
|
|
|
|
- .fontColor($r('app.color.login_text_input_font_color'))
|
|
|
|
- .fontWeight(FontWeight.Medium)
|
|
|
|
- .type(InputType.Number)
|
|
|
|
- .maxLength(6)
|
|
|
|
- .fontSize($r('app.float.fontSize_24'))
|
|
|
|
- .width('60%')
|
|
|
|
- .height('100%')
|
|
|
|
- .opacity($r('app.float.general_font_opacity'))
|
|
|
|
|
|
+ // TextInput({ placeholder: '请输入数字', text: this.HingingLevel + ''})
|
|
|
|
+ // .placeholderColor($r('app.color.login_text_input_placeholder_color'))
|
|
|
|
+ // .placeholderFont({ size: $r('app.float.robot_set_font_size'), weight: FontWeight.Medium })
|
|
|
|
+ // .fontColor($r('app.color.login_text_input_font_color'))
|
|
|
|
+ // .fontWeight(FontWeight.Medium)
|
|
|
|
+ // .type(InputType.Number)
|
|
|
|
+ // .maxLength(6)
|
|
|
|
+ // .fontSize($r('app.float.fontSize_24'))
|
|
|
|
+ // .width('60%')
|
|
|
|
+ // .height('100%')
|
|
|
|
+ // .opacity($r('app.float.general_font_opacity'))
|
|
|
|
+ // .borderRadius($r('app.float.general_border_radius'))
|
|
|
|
+ // .backgroundColor($r('app.color.robot_set_coord_card_grey'))
|
|
|
|
+ // .onChange((value: string) => {
|
|
|
|
+ // this.HingingLevel = parseInt(value)
|
|
|
|
+ // })
|
|
|
|
+ Select([
|
|
|
|
+ {value:"原位"},
|
|
|
|
+ {value:"第一层"},
|
|
|
|
+ {value:"第二层"},
|
|
|
|
+ {value:"第三层"},
|
|
|
|
+ {value:"第四层"},
|
|
|
|
+ {value:"第五层"},
|
|
|
|
+ {value:"第六层"},
|
|
|
|
+ {value:"抽屉位"},
|
|
|
|
+ ])
|
|
|
|
+ .selected(this.HingingIndex)
|
|
|
|
+ .value(this.HingingString)
|
|
|
|
+ .font({ size: $r('app.float.robot_set_font_size'), weight: FontWeight.Medium})
|
|
|
|
+ .fontColor($r('app.color.black_100'))
|
|
.borderRadius($r('app.float.general_border_radius'))
|
|
.borderRadius($r('app.float.general_border_radius'))
|
|
|
|
+ .width('80%')
|
|
|
|
+ .height('100%')
|
|
|
|
+ .margin({right: '5%'})
|
|
.backgroundColor($r('app.color.robot_set_coord_card_grey'))
|
|
.backgroundColor($r('app.color.robot_set_coord_card_grey'))
|
|
- .onChange((value: string) => {
|
|
|
|
- this.HingingLevel = parseInt(value)
|
|
|
|
|
|
+ .selectedOptionFontColor($r('app.color.blue_100'))
|
|
|
|
+ .selectedOptionFont({size: $r('app.float.fontSize_16'), weight: FontWeight.Bold})
|
|
|
|
+ .optionFontColor($r('app.color.black_100'))
|
|
|
|
+ .optionFont({size: $r('app.float.fontSize_16'), weight: FontWeight.Medium})
|
|
|
|
+ .menuAlign(MenuAlignType.START, {dx:0, dy:0})
|
|
|
|
+ .onSelect((index: number,text:string) => {
|
|
|
|
+ if(index!=7){
|
|
|
|
+ this.HingingLevel = index
|
|
|
|
+ }else{
|
|
|
|
+ this.HingingLevel = 128
|
|
|
|
+ }
|
|
|
|
+ this.HingingString = text
|
|
|
|
+ this.HingingIndex = index
|
|
})
|
|
})
|
|
}
|
|
}
|
|
.width('20%')
|
|
.width('20%')
|