[manager,web-app] 监控参数支持单选options

This commit is contained in:
tomsun28
2021-12-04 11:52:19 +08:00
parent b052c053da
commit 587a397cb7
12 changed files with 115 additions and 45 deletions

View File

@@ -23,13 +23,22 @@ param:
# 当type为text时,用limit表示字符串限制大小
limit: 100
required: true
placeholder: 'eg:/index.html'
placeholder: '请输入网站的URI例如:/index.html'
- field: method
name: 请求方式
type: text
# 当type为text时,用limit表示字符串限制大小
limit: 20
type: radio
required: true
# 当type为radio单选框,checkbox复选框时,option表示可选项值列表 {name1:value1,name2:value2}
options:
- label: GET请求
value: GET
- label: POST请求
value: POST
- label: PUT请求
value: PUT
- label: DELETE请求
value: DELETE
- field: username
name: 用户名
type: text
@@ -42,8 +51,6 @@ param:
required: false
- field: ssl
name: 使用SSL
type: boolean
required: true
# 当type为boolean时,前端用switch展示开关
# 当type为radio单选框,checkbox复选框时,option表示可选项值列表
# option: Yes,No
type: boolean
required: true