|
@@ -21,12 +21,12 @@
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
<div class="grid-content bg-purple">
|
|
<div class="grid-content bg-purple">
|
|
- <el-select v-model="q.id" placeholder="请选择数据源" @change="search">
|
|
|
|
|
|
+ <el-select v-model="q.dsName" placeholder="请选择数据源" @change="search">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in dataSourceList"
|
|
v-for="item in dataSourceList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
- :value="item.id"/>
|
|
|
|
|
|
+ :value="item.name"/>
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -141,7 +141,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleDesign: function (row) {
|
|
handleDesign: function (row) {
|
|
- this.$router.push({path: '/gen/design', query: {tableName: row.tableName, dsId: this.q.id}})
|
|
|
|
|
|
+ this.$router.push({path: '/gen/design', query: {tableName: row.tableName, dsName: this.q.dsName}})
|
|
},
|
|
},
|
|
handleDown: function (row) {
|
|
handleDown: function (row) {
|
|
this.formData.tableName = row.tableName
|
|
this.formData.tableName = row.tableName
|
|
@@ -157,7 +157,7 @@
|
|
this.getList(this.page)
|
|
this.getList(this.page)
|
|
},
|
|
},
|
|
gen(form,done) {
|
|
gen(form,done) {
|
|
- this.formData.id = this.q.id
|
|
|
|
|
|
+ this.formData.dsName = this.q.dsName
|
|
handleDown(this.formData).then(() => {
|
|
handleDown(this.formData).then(() => {
|
|
done()
|
|
done()
|
|
this.box = false
|
|
this.box = false
|
|
@@ -186,7 +186,7 @@
|
|
this.boxBatch = true
|
|
this.boxBatch = true
|
|
},
|
|
},
|
|
batchGen(form,done) {
|
|
batchGen(form,done) {
|
|
- this.formBatchData.id = this.q.id
|
|
|
|
|
|
+ this.formBatchData.dsName = this.q.dsName
|
|
handleDown(this.formBatchData).then(() => {
|
|
handleDown(this.formBatchData).then(() => {
|
|
done()
|
|
done()
|
|
this.boxBatch = false
|
|
this.boxBatch = false
|