Commit ab9bd6fe authored by 晓彤's avatar 晓彤

修改数据类型

parent 1c1fa29b
...@@ -45,10 +45,8 @@ ...@@ -45,10 +45,8 @@
<el-row> <el-row>
<el-col :span="14"> <el-col :span="14">
<el-button type="primary" style="width:770px;margin-top:20px" @click="addGlobalListRow()" class="el-icon-circle-plus">添加行</el-button> <el-button type="primary" style="width:770px;margin-top:20px" @click="addGlobalListRow()" class="el-icon-circle-plus">添加行</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-form-item> </el-form-item>
</el-collapse-item> </el-collapse-item>
...@@ -259,7 +257,8 @@ ...@@ -259,7 +257,8 @@
<el-button type="success" plain @click="AddAssertionListRow()" class="el-icon-circle-plus">添加行</el-button> <el-button type="success" plain @click="AddAssertionListRow()" class="el-icon-circle-plus">添加行</el-button>
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
<div style="margin-top:20px;margin-left:400px">
<div style="margin-top:20px;margin-left:600px">
<el-button @click="cancelCaseFrom">取 消</el-button> <el-button @click="cancelCaseFrom">取 消</el-button>
<el-button type="primary" @click="addCaseFrom">确 定</el-button> <el-button type="primary" @click="addCaseFrom">确 定</el-button>
</div> </div>
...@@ -459,7 +458,14 @@ export default { ...@@ -459,7 +458,14 @@ export default {
// 获取场景用例列表 // 获取场景用例列表
getSceneCaseList() { getSceneCaseList() {
getSceneCaseList(this.sceneCaseInfo).then((resp) => { getSceneCaseList(this.sceneCaseInfo).then((resp) => {
this.sceneTestcaseList = resp.data.data this.sceneTestcaseList = resp.data.data.sceneTestcaseList
var globalObject = JSON.parse(resp.data.data.globalParameters)
for (var key in globalObject) {
var temp = {}
temp['globalParamsName'] = key
temp['globalParamsValue'] = globalObject[key]
this.globalParamList.push(temp)
}
}) })
}, },
// 获取模块列表 // 获取模块列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment