Commit 9e4d0def authored by 黄奎's avatar 黄奎

页面修改

parent dea55e04
import request from '../utils/request'
/**
* 获取学校分页列表
*
*/
export function TestApi(cmdStr,data) {
return request({
url: cmdStr,
method: 'post',
data
})
}
\ No newline at end of file
......@@ -99,7 +99,7 @@ export default {
columns: [{
name: 'SName',
required: true,
label: '公司名称',
label: '学校名称',
align: 'left',
field: row => row.SName,
format: val => `${val}`,
......
<template>
<div class="test">
<table>
<tr>
<td style="width:100px">
CMD
</td>
<td>
{{ActionStr}}
</td>
</tr>
<tr>
<td >
MSG
</td>
<td>
{{Msg}}
</td>
</tr>
</table>
</div>
</template>
<script>
import {
TestApi
} from '../api/testapi'
export default {
meta: {
title: '测试 - 麦子教育系统',
},
data() {
return {
ActionStr:"",
Msg:"",
};
},
created() {
},
mounted() {
this.Test();
},
watch: {
$route: {
handler: function (route) {
this.redirect = route.query && route.query.redirect
},
immediate: true
}
},
methods: {
Test() {
var cmdStr = "/Course";
var data = {}
cmdStr += "/GetChapterTree"
//SetCourse
data = {
CourseId: 1
};
this.ActionStr=cmdStr;
this.Msg=JSON.stringify(data);
TestApi(cmdStr, data).then(res => {
console.log(res);
})
}
},
};
</script>
<style scoped>
</style>
......@@ -27,6 +27,11 @@ const routes = [{
component: () =>
import ("pages/school/teacher.vue")
},
{
path: "/test",
component: () =>
import ("pages/test.vue")
},
]
},
......
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