Commit 764c30aa authored by jiaxu.yan's avatar jiaxu.yan

feat: 提交数据统计

parent 09a9730e
...@@ -64,6 +64,7 @@ export default { ...@@ -64,6 +64,7 @@ export default {
data() { data() {
return { return {
tableData: [], tableData: [],
params:{},
queryParams: { queryParams: {
page: 1, page: 1,
rows: 20 rows: 20
...@@ -82,9 +83,7 @@ export default { ...@@ -82,9 +83,7 @@ export default {
method: 'get', method: 'get',
params: { params: {
...this.queryParams, ...this.queryParams,
...{ ...this.dialogManager.params
courseId: this.dialogManager.groupId
}
}, },
headers: { headers: {
// 'Content-Type': 'application/json' // 'Content-Type': 'application/json'
...@@ -93,7 +92,12 @@ export default { ...@@ -93,7 +92,12 @@ export default {
}) })
.then(res => { .then(res => {
console.log(res) console.log(res)
this.tableData = res.records if(res.rows){
this.tableData = res.rows
}else{
this.tableData = res.records
}
console.log(this.tableData) console.log(this.tableData)
console.log(2333) console.log(2333)
this.total = res.total this.total = res.total
......
...@@ -67,11 +67,11 @@ module.exports = { ...@@ -67,11 +67,11 @@ module.exports = {
// }, // },
proxy: { proxy: {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://192.168.10.128:8090/`, // 奕霖后端 // target: `http://192.168.10.128:8090/`, // 奕霖后端
// target: `http://192.168.10.219:8090/`, // target: `http://192.168.10.219:8090/`, // 章凯后端
// target: `http://192.168.10.135:8090/`, // target: `http://192.168.10.135:8090/`, // 新伟后端
// target: `http://192.168.10.108:8090/`, // 飞龙后端 target: `http://192.168.10.108:8090/`, // 飞龙后端
// target: `http://49.232.167.247:20024/`, // target: `http://49.232.167.247:20024/`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment