Commit d2771de3 authored by 王晓铜's avatar 王晓铜

修改提测说明sql显示问题

parent 599cdf9c
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</el-form-item> </el-form-item>
<!-- 服务及分支 --> <!-- 服务及分支 -->
<el-form-item label="服务及分支:"> <el-form-item label="服务及分支:">
<el-table :data="serviceAndBranchList" border style="width:95%"> <el-table :data="serviceAndBranchList" border style="width:95%">
<el-table-column label="服务名称" width="250"> <el-table-column label="服务名称" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.serviceName" filterable allow-create placeholder="请选择服务" <el-select v-model="scope.row.serviceName" filterable allow-create placeholder="请选择服务"
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</el-form-item> </el-form-item>
<!-- apollo变更 --> <!-- apollo变更 -->
<el-form-item label="apollo变更:"> <el-form-item label="apollo变更:">
<el-table :data="apolloList" border style="width:95%"> <el-table :data="apolloList" border style="width:95%">
<el-table-column label="项目名称" width="230"> <el-table-column label="项目名称" width="230">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.projectName" placeholder="请选择项目" filterable clearable> <el-select v-model="scope.row.projectName" placeholder="请选择项目" filterable clearable>
...@@ -133,8 +133,8 @@ ...@@ -133,8 +133,8 @@
@click="addApolloListRow()">添加行</el-button> @click="addApolloListRow()">添加行</el-button>
</el-form-item> </el-form-item>
<!-- 数据库变更 --> <!-- 数据库变更 -->
<el-form-item label="数据库变更:"> <el-form-item label="数据库变更1111:">
<el-table :data="databaseList" border style="width:95%"> <el-table :data="databaseList" border 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 allow-create> <el-select v-model="scope.row.db" placeholder="请选择" filterable clearable allow-create>
...@@ -145,8 +145,9 @@ ...@@ -145,8 +145,9 @@
</el-table-column> </el-table-column>
<el-table-column label="sql" clearable> <el-table-column label="sql" clearable>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model.trim="scope.row.sql" type="textarea" autosize> <!-- <el-input v-model.trim="scope.row.sql" type="textarea" :row="20">
</el-input> </el-input> -->
<textarea v-model.trim="scope.row.sql" class='text-style' :rows="8"></textarea>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="80px"> <el-table-column label="操作" width="80px">
...@@ -331,6 +332,7 @@ export default { ...@@ -331,6 +332,7 @@ export default {
this.addTestDescriptionForm.database = JSON.stringify( this.addTestDescriptionForm.database = JSON.stringify(
this.databaseList this.databaseList
) )
console.log('eee', this.addTestDescriptionForm)
editTestDescription(this.addTestDescriptionForm).then((resp) => { editTestDescription(this.addTestDescriptionForm).then((resp) => {
if (resp.data.businessCode === '0000') { if (resp.data.businessCode === '0000') {
this.$message.success('编辑成功!') this.$message.success('编辑成功!')
...@@ -457,4 +459,8 @@ export default { ...@@ -457,4 +459,8 @@ export default {
// left: 0; // left: 0;
box-sizing: border-box; box-sizing: border-box;
} }
.text-style {
width:1100px;
color:-internal-light-dark(#EBEAEA, white);
}
</style> </style>
...@@ -165,8 +165,9 @@ ...@@ -165,8 +165,9 @@
</el-table-column> </el-table-column>
<el-table-column label="sql" clearable> <el-table-column label="sql" clearable>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model.trim="scope.row.sql" type="textarea" autosize> <!-- <el-input v-model.trim="scope.row.sql" type="textarea" autosize>
</el-input> </el-input> -->
<textarea v-model.trim="scope.row.sql" class='text-style' :rows="8"></textarea>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="80px"> <el-table-column label="操作" width="80px">
...@@ -527,4 +528,8 @@ export default { ...@@ -527,4 +528,8 @@ export default {
.input-style { .input-style {
width: 95%; width: 95%;
} }
.text-style {
width:800px;
color:-internal-light-dark(#EBEAEA, white);
}
</style> </style>
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