api.js 920 B

12345678910111213141516171819202122232425
  1. import axios from "axios";
  2. // const url = "http://127.0.0.1:8090/jeecg-boot";//本地
  3. // const url = "http://106.15.206.14:8087/jeecg-boot"; //测试环境
  4. const url = "http://192.168.1.158:8087/jeecg-boot"; //森宇环境
  5. export function getIdcsList() {
  6. return axios.get(url + "/tbTableInfo/list");
  7. }
  8. //json表单数据保存接口
  9. export function formAdd(parmas) {
  10. return axios.post(url + "/tbTableInfo/add", parmas)
  11. }
  12. //根据数据库表名称查询表单json数据
  13. export function getFormByBusinessTable(businessTable) {
  14. return axios.get(url + "/tbTableInfo/editorQuery?businessTable=" + businessTable)
  15. }
  16. //查询数据库表名和注释名称
  17. export function getTableList() {
  18. return axios.get(url + "/tbTableInfo/getTableList")
  19. }
  20. //根据表明查询字段和字段说明
  21. export function getTableColumnList(tableName) {
  22. return axios.get(url + "/tbTableInfo/getTableColumnList?tableName=" + tableName)
  23. }