优化:1、mtable、mlink、mservice、qtask 展示的排序最新展示到前面
2、其他修改
This commit is contained in:
@@ -185,7 +185,7 @@
|
||||
<label class="col-md-1 col-sm-1" style="padding-bottom: 10px;padding-top: 5px;">数据源选择</label>
|
||||
<div class="col-md-2 col-sm-10" style="padding-bottom: 10px">
|
||||
<select class="form-control" v-model="dbPlat">
|
||||
<option v-for="item in dbPlats" :value="item" v-text="item.name"></option>
|
||||
<option v-for="item in dbPlats" :value="item" v-text="item.dbname"></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-10" style="padding-bottom: 10px">
|
||||
@@ -204,7 +204,7 @@
|
||||
<!-- || tableData[item]['hv']==1 -->
|
||||
<input type="checkbox"
|
||||
v-model="ckTable"
|
||||
:value="tableData[item]['name']"
|
||||
:value="tableData[item]['tablename']"
|
||||
:disabled="item=='表说明' || item=='表名称'"
|
||||
>
|
||||
<a :class="[{hv: tableData[item]['hv']==1 }]" href="javascript:;" @click="tableName=item" data-target="#tab3Content1" data-toggle="tab" v-text="item"></a>
|
||||
@@ -292,7 +292,7 @@
|
||||
tableData: {},
|
||||
tableArr: [],
|
||||
dbPlat: red.getData("dbPlat",{}),
|
||||
dbid: red.getData("dbPlatId",''),
|
||||
dbid: red.getData("dbid",''),
|
||||
catalog: '',
|
||||
tableName: '',
|
||||
ckTable: [],
|
||||
@@ -324,7 +324,7 @@
|
||||
}
|
||||
},
|
||||
dbPlat(v) {
|
||||
this.dbPlatId = v['key']
|
||||
this.dbid = v['dbid']
|
||||
this.catalogs = v['catalogs']
|
||||
},
|
||||
catalog() {
|
||||
@@ -332,7 +332,7 @@
|
||||
|
||||
//cache
|
||||
red.setData("dbPlat", this.dbPlat)
|
||||
red.setData("dbPlatId", this.dbPlatId)
|
||||
red.setData("dbid", this.dbid)
|
||||
red.setData("catalog", this.catalog)
|
||||
},
|
||||
tableName() {
|
||||
@@ -391,8 +391,8 @@
|
||||
},
|
||||
//------从mysql导入使用的相关方法-------
|
||||
loadTables() { // 查询table列表
|
||||
let [dbPlatId, catalog] = [this.dbPlatId, this.catalog]
|
||||
sheetMySql({dbPlatId, catalog}).then(res => { // 数据转换
|
||||
let [dbid, catalog] = [this.dbid, this.catalog]
|
||||
sheetMySql({dbid, catalog}).then(res => { // 数据转换
|
||||
this.tableData = res
|
||||
let tableArr = []
|
||||
let ckTable = []
|
||||
@@ -413,7 +413,7 @@
|
||||
this.tableInfo = this.tableData[this.tableName]
|
||||
|
||||
if (!this.tableInfo['load']) {
|
||||
tableInfo({dbPlatId: this.dbPlatId, catalog: this.catalog, tableName: this.tableName}).then(res => {
|
||||
tableInfo({dbid: this.dbid, catalog: this.catalog, tableName: this.tableName}).then(res => {
|
||||
res['hv'] = this.tableData[this.tableName]['hv']
|
||||
res['load'] = 1
|
||||
|
||||
@@ -424,8 +424,8 @@
|
||||
},
|
||||
saveTable() { // 保存数据
|
||||
if (this.cate == 'mysql') {
|
||||
let [dbPlatId, catalog, tableArr] = [this.dbPlatId, this.catalog, this.ckTable]
|
||||
saveTable({dbPlatId, catalog, tableArr}).then(res => {
|
||||
let [dbid, catalog, tableArr] = [this.dbid, this.catalog, this.ckTable]
|
||||
saveTable({dbid, catalog, tableArr}).then(res => {
|
||||
red.showOk()
|
||||
this.loadTables()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user