This commit is contained in:
张成
2025-10-09 18:17:41 +08:00
parent 366c18bcea
commit ba61c9e45d
63 changed files with 1133 additions and 295 deletions

View File

@@ -1,29 +1,29 @@
import http from '@/utils/http'
class TableServer {
async getAll(callback) {
return await http.get('/table/index', {})
return await window.framework.httpget('/table/index', {})
}
async add(row, callback) {
return await http.post('/table/add', row)
return await window.framework.http.post('/table/add', row)
}
async edit(row, callback) {
return await http.post('/table/edit', row, function(res) {
return await window.framework.http.post('/table/edit', row, function(res) {
callback && callback(res)
})
}
async del(row, callback) {
return await http.post('/table/del', row)
return await window.framework.http.post('/table/del', row)
}
async autoApi(id) {
return await http.get('/template/api', { id: id })
return await window.framework.httpget('/template/api', { id: id })
}
async autoDb(id) {
return await http.get('/template/autoDb', { id: id })
return await window.framework.httpget('/template/autoDb', { id: id })
}
}