'多表支持修改,完成1、列表配置,2、查询配置,3、导出配置'
This commit is contained in:
@@ -240,26 +240,30 @@
|
||||
<!-- dbPlat -->
|
||||
<div class="col-lg-5" v-show="status==7">
|
||||
<div class="panel">
|
||||
<div class="panel-heading">数据平台配置</div>
|
||||
<div class="panel-heading">基本属性配置</div>
|
||||
<div class="panel-body" style="overflow:auto;">
|
||||
<form class="form-horizontal">
|
||||
<input type="hidden" v-model="row.key">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-md-2">Table名称</label>
|
||||
<div class="col-md-6 col-sm-10">
|
||||
<div class="col-md-4 col-sm-8">
|
||||
<input v-model="row.name" class="form-control" id="name" placeholder="请输入Table名称">
|
||||
</div>
|
||||
<label for="name" class="col-md-2">表别名</label>
|
||||
<div class="col-md-3 col-sm-2">
|
||||
<input v-model="row.alias" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="comment" class="col-md-2">Table标题</label>
|
||||
<div class="col-md-6 col-sm-10">
|
||||
<div class="col-md-4 col-sm-8">
|
||||
<input v-model="row.comment" class="form-control" id="comment" placeholder="请输入 Table标题">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2">数据平台</label>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4 col-sm-8">
|
||||
<select v-model="row.dbPlatId" class="form-control">
|
||||
<option></option>
|
||||
<option v-for="item in dbPlats" :value="item.key" v-text="item.name"></option>
|
||||
@@ -304,7 +308,7 @@
|
||||
itemEdit: {}, //待修改的字段属性
|
||||
|
||||
dbPlats:[],
|
||||
row: {key: "", platId: "", dbPlatId:"", catalog: "", name:"", comment:""},
|
||||
row: {key: "", platId: "", dbPlatId:"", catalog: "", name:"", comment:"", alias: ""},
|
||||
filter: {db: "", catalog: "", name: ""},//tableList 过滤条件
|
||||
|
||||
filters:[],//查询配置
|
||||
@@ -348,7 +352,7 @@
|
||||
}
|
||||
},
|
||||
meta: function (v) {
|
||||
vm.row = {key:v.key, dbPlatId: v.dbPlatId, catalog: v.catalog, name:v.name, comment:v.comment};
|
||||
vm.row = {key:v.key, dbPlatId: v.dbPlatId, catalog: v.catalog, name:v.name, comment:v.comment, alias: v.alias};
|
||||
/*vm.filters = v.filters;
|
||||
var filterArr = [];
|
||||
vm.filters.forEach(function (item) {
|
||||
@@ -381,6 +385,11 @@
|
||||
red.getJSON("/meta/tablelist",{}, function (json) {
|
||||
vm.tables = json;
|
||||
});
|
||||
|
||||
/*red.getJSON("/meta/service_info",{name: "user_service"}, function (json) {
|
||||
var x = red.replaceAll(json);
|
||||
console.log(x)
|
||||
});*/
|
||||
},
|
||||
catalogs: function() {
|
||||
var dbPlats = this.dbPlats;
|
||||
|
||||
Reference in New Issue
Block a user