This commit is contained in:
2019-04-02 14:31:34 +08:00
parent cf32eb4fb3
commit d1156cc940
23 changed files with 75 additions and 56 deletions

View File

@@ -8,8 +8,8 @@
<row class="data-list">
<h3>高级查询 - [测试用例]</h3>
<div class="col-md-6">
<select class="form-control" v-model="table" style="width: 300px;">
<option v-for="t in tables" :value="t.name">{{t.comment}}&nbsp;&nbsp;&nbsp;[{{t.name}}]</option>
<select class="form-control" v-model="service" style="width: 300px;">
<option v-for="t in services" :value="t.name">{{t.comment}}&nbsp;&nbsp;&nbsp;[{{t.name}}]</option>
</select>
</div>
<div class="col-md-6">
@@ -99,8 +99,10 @@
cols: [],
filters: []
},
tables: [],
table: "",
services:[],
service:"",
//tables: [],
//table: "",
//filters: [],
addFilter: "recompany",
@@ -196,14 +198,14 @@
location.href = "/export/data?fBean=" + JSON.stringify(fBean) + "&platToken=" + red.getPlatToken() + "&cate=csv";
return;
},
tableList: function () {
red.getJSON("/meta/tablelist",{}, function (json) {
vm.tables = json;
vm.table = vm.tables[0].name;
serviceList: function () {
red.getJSON("/meta/service_list",{}, function (json) {
vm.services = json;
vm.service = vm.services[0].name;
});
},
loadCfg: function () {
red.getJSON("/meta/listcfg", {key: vm.table, platToken: red.getPlatToken()}, function (json) {
red.getJSON("/meta/cfg", {key: this.service, platToken: red.getPlatToken()}, function (json) {
vm.cfg = json;
});
},
@@ -256,7 +258,7 @@
}
},
mounted: function () {
this.tableList();
this.serviceList();
}
});
</script>