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

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

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