|
@@ -690,6 +690,7 @@
|
|
|
},
|
|
|
sqlForm: {
|
|
|
dbCode: "",
|
|
|
+ tableName: "",
|
|
|
tableComment: "",
|
|
|
dbChName: "",
|
|
|
dbDynSql: "",
|
|
@@ -1129,6 +1130,10 @@
|
|
|
}
|
|
|
let tabId = this.genTable.selectParamTables;
|
|
|
reportNewDb.dbChName = tabId[0].tableComment;
|
|
|
+ reportNewDb.dbCode = tabId[0].tableName;
|
|
|
+ let dbDynSql = "select * from " + tabId[0].tableName;
|
|
|
+ reportNewDb.dbDynSql = dbDynSql;
|
|
|
+ debugger
|
|
|
$http.post({
|
|
|
url: api.saveDb,
|
|
|
contentType:'json',
|
|
@@ -1963,16 +1968,19 @@
|
|
|
})
|
|
|
}});
|
|
|
},
|
|
|
- initTables(){
|
|
|
- let config={
|
|
|
- url:api.initTables,
|
|
|
- data: JSON.stringify({"pageCurrent": this.genTable.pageCurrent, "pageSize": this.genTable.pageSize}),
|
|
|
- method:'post',
|
|
|
- headers: {"Content-Type":"application/json;charset=UTF-8"}
|
|
|
+ initTables() {
|
|
|
+ let config = {
|
|
|
+ url: api.initTables,
|
|
|
+ data: JSON.stringify({
|
|
|
+ "pageCurrent": this.genTable.pageCurrent,
|
|
|
+ "pageSize": this.genTable.pageSize
|
|
|
+ }),
|
|
|
+ method: 'post',
|
|
|
+ headers: {"Content-Type": "application/json;charset=UTF-8"}
|
|
|
}
|
|
|
axios.request(config).then((res) => {
|
|
|
- if (res.data.success){
|
|
|
- if(!res){
|
|
|
+ if (res.data.success) {
|
|
|
+ if (!res) {
|
|
|
return;
|
|
|
}
|
|
|
this.nowData = res.data.result;
|
|
@@ -1980,7 +1988,7 @@
|
|
|
this.changepage(1);
|
|
|
}
|
|
|
|
|
|
- }).catch(function (error){
|
|
|
+ }).catch(function (error) {
|
|
|
console.log(error);
|
|
|
});
|
|
|
},
|