update
This commit is contained in:
parent
49df61b4e0
commit
adaed4127c
@ -33,7 +33,9 @@ func (this *RtaskListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
input.PlaceHolder = "分组编号"
|
input.PlaceHolder = "分组编号"
|
||||||
this.form.AppendItem(widget.NewFormItem("", input))
|
this.form.AppendItem(widget.NewFormItem("", input))
|
||||||
|
|
||||||
|
res := widget.NewEntry()
|
||||||
|
res.PlaceHolder = "已完成任务列表"
|
||||||
|
this.form.AppendItem(widget.NewFormItem("任务列表", res))
|
||||||
|
|
||||||
// task list button
|
// task list button
|
||||||
taskListBtn := widget.NewButtonWithIcon("任务列表", theme.ConfirmIcon(), func() {
|
taskListBtn := widget.NewButtonWithIcon("任务列表", theme.ConfirmIcon(), func() {
|
||||||
@ -48,14 +50,11 @@ func (this *RtaskListView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
//修改结果
|
modiResBtn := widget.NewButtonWithIcon("修改任务", theme.ConfirmIcon(), func() {})
|
||||||
resultBtn := widget.NewButtonWithIcon("修改结果", theme.ConfirmIcon(), func() {
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
// layout
|
// layout
|
||||||
split := container.NewHSplit(this.dataListWidget, container.NewVBox(this.form, taskListBtn, resultBtn))
|
split := container.NewHSplit(this.dataListWidget, container.NewVBox(this.form, taskListBtn, modiResBtn))
|
||||||
split.Offset = 0.7
|
split.Offset = 1
|
||||||
|
|
||||||
//data listener for
|
//data listener for
|
||||||
this.dataListener()
|
this.dataListener()
|
||||||
|
@ -25,8 +25,7 @@ func (this *RtaskTestView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
condiInput := widget.NewEntry()
|
condiInput := widget.NewEntry()
|
||||||
condiInput.PlaceHolder = "条件ID为空时走触发逻辑否则走校验逻辑"
|
condiInput.PlaceHolder = "条件ID为空时走触发逻辑否则走校验逻辑"
|
||||||
|
|
||||||
res := widget.NewEntry()
|
|
||||||
res.PlaceHolder = "已完成任务列表"
|
|
||||||
|
|
||||||
input := widget.NewEntry()
|
input := widget.NewEntry()
|
||||||
input.PlaceHolder = "分组编号"
|
input.PlaceHolder = "分组编号"
|
||||||
@ -36,7 +35,7 @@ func (this *RtaskTestView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
|||||||
this.form.AppendItem(widget.NewFormItem("条件ID", condiInput))
|
this.form.AppendItem(widget.NewFormItem("条件ID", condiInput))
|
||||||
|
|
||||||
this.form.AppendItem(widget.NewFormItem("分组编号", input))
|
this.form.AppendItem(widget.NewFormItem("分组编号", input))
|
||||||
this.form.AppendItem(widget.NewFormItem("任务列表", res))
|
|
||||||
|
|
||||||
this.form.OnSubmit = func() {
|
this.form.OnSubmit = func() {
|
||||||
// if rtaskTypeInput.Text == "" {
|
// if rtaskTypeInput.Text == "" {
|
||||||
|
@ -78,7 +78,9 @@ func (this *apiComp) Choose(session comm.IUserSession, req *pb.RtaskChooseReq) (
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err, ok := this.moduleRtask.modelRtask.checkCondi(session.GetUserId(), v); !ok {
|
if err, ok := this.moduleRtask.modelRtask.checkCondi(session.GetUserId(), v); !ok {
|
||||||
|
if err != nil {
|
||||||
this.moduleRtask.Error(err.Error())
|
this.moduleRtask.Error(err.Error())
|
||||||
|
}
|
||||||
code = pb.ErrorCode_RtaskCondiNoReach
|
code = pb.ErrorCode_RtaskCondiNoReach
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user