Commit 7551b1b5 authored by 王晓铜's avatar 王晓铜

修改提测说明数据库可输入

parent 8199ee25
......@@ -138,7 +138,7 @@
<el-table :data="databaseList" border class="table-style" style="width:95%">
<el-table-column label="数据库名称" width="210">
<template slot-scope="scope">
<el-select v-model="scope.row.db" placeholder="请选择" filterable clearable>
<el-select v-model="scope.row.db" placeholder="请选择" filterable clearable allow-create>
<el-option v-for="item in queryDataBaseList" :key="item" :label="item" :value="item">
</el-option>
</el-select>
......
......@@ -158,7 +158,7 @@
<el-table :data="databaseList" border class="table-style">
<el-table-column label="数据库名称" width="210">
<template slot-scope="scope">
<el-select v-model="scope.row.db" placeholder="请选择" filterable clearable>
<el-select v-model="scope.row.db" placeholder="请选择" filterable clearable allow-create>
<el-option v-for="item in queryDataBaseList" :key="item" :label="item" :value="item">
</el-option>
</el-select>
......@@ -390,16 +390,18 @@ export default {
},
// 保存数据按钮
addTestDescriptionFrom() {
// 判断添加的数据是否有重复
// console.log('888', this.databaseList)
// var newDatabaseList = []
// this.database.forEach((element) => {
// if()
// })
// 将数组对象转化为Json字符串
this.addTestDescriptionForm.serviceAndBranch = JSON.stringify(
this.serviceAndBranchList
)
this.addTestDescriptionForm.apollo = JSON.stringify(this.apolloList)
this.addTestDescriptionForm.database = JSON.stringify(this.databaseList)
console.log(
'88888',
this.addTestDescriptionForm
)
this.$refs.addTestDescriptionRef.validate((valid) => {
if (!valid) {
return false
......@@ -477,11 +479,6 @@ export default {
},
// 详情按钮
openPreviewDialog(row) {
// this.$router.push('/qa/detailTestDescription?')
// this.$nextTick(function () {
// // DOM 现在更新了
// bus.$emit('msg', row)
// })
this.$router.push({
path: `/qa/detailTestDescription`,
query: {
......
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