This commit is contained in:
张成
2025-10-09 23:50:03 +08:00
parent 0b78af46cd
commit 88cd8d6e72
37 changed files with 444 additions and 240 deletions

View File

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