Skip to content

Commit

Permalink
Merge pull request #80 from XiaoMi/develop
Browse files Browse the repository at this point in the history
fix create task bug
  • Loading branch information
sevennt committed Nov 29, 2018
2 parents 4733bfc + d7e760a commit 32d01ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README-CN.md
Expand Up @@ -292,8 +292,7 @@ Dashboard 页面集成了一些常用的图表,比如请求成功率、4XX请

用户可以自行修改变量属性,包括变量注释、变量的表单元素类型、变量的数据元等。

**注:默认提供了 `Host``Namespace` 两个数据源,如果用户对某个变量指定了这两个
数据源,则需要同时将变量的表单元素类型设置为 `SELECT`**
**注:默认提供了 `Host``Namespace` 两个数据源,如果用户对某个变量指定了这两个数据源,则需要同时将变量的表单元素类型设置为 `SELECT`**
![新增模板](./tool/img/Naftis-tasktpl-new.png)

#### 创建任务
Expand Down
8 changes: 7 additions & 1 deletion src/ui/src/views/Service/CreateTask/index.js
Expand Up @@ -122,7 +122,13 @@ class CreateTask extends Component {
}]

let taskItem = taskList[0]
// delete taskItem.createList
// TODO delete __base
for (let key in taskItem) {
let matches = key.match(/(\w+)__base/i)
if (matches !== null) {
taskItem[matches[1]] = taskItem[key]
}
}
for (let i in taskItem) {
let columnsItem = {}
if (i !== 'createList') {
Expand Down

0 comments on commit 32d01ae

Please sign in to comment.