测试:前台任务设计雏形
parent
d3659e5468
commit
febfefef98
|
@ -196,10 +196,10 @@
|
|||
<el-input v-model="taskInfo.databaseId"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="数据表">
|
||||
<el-select v-model="taskInfo.tableName" placeholder="请选择等级">
|
||||
<el-select @change="changeTableName(taskInfo.tableName)" v-model="taskInfo.tableName" placeholder="请选择等级">
|
||||
<el-option label="请选择" value="0"></el-option>
|
||||
<span v-for="table in taskInfoList">
|
||||
<el-option @select="changeTableName(table)" :label=table.tableName :value=table.id :key=table.id></el-option>
|
||||
<el-option :label=table.tableName :value=table.id :key=table.id></el-option>
|
||||
</span>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -352,9 +352,12 @@ export default {
|
|||
//方法集合",
|
||||
methods: {
|
||||
//选择数据表改变数据
|
||||
changeTableName(row){
|
||||
console.log(row);
|
||||
this.taskInfo = row;
|
||||
changeTableName(table){
|
||||
this.taskInfoList.forEach(res=>{
|
||||
if(table.eq(res.tableName)){
|
||||
this.taskInfo = res;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
//查询字段
|
||||
|
|
Loading…
Reference in New Issue