Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_zhxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_zhxy
Commits
95610ae4
Commit
95610ae4
authored
Aug 09, 2023
by
peijy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.9 家长-学生选课
parent
7cc6b51b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
63 additions
and
46 deletions
+63
-46
src/main.js
+42
-39
src/service/studentCourseSelection.js
+17
-4
src/views/login/login.vue
+2
-2
src/views/parent/studentCourseSelection/index.vue
+0
-0
src/views/parent/studentCourseSelection/subjectAchievement.vue
+0
-0
src/views/parent/studentCourseSelection/totalScoreView.vue
+0
-0
src/views/tabbar/main/index.vue
+2
-1
No files found.
src/main.js
View file @
95610ae4
import
{
createApp
}
from
"vue"
;
import
{
createApp
}
from
"vue"
;
import
App
from
"./App.vue"
;
import
router
from
"./router"
;
import
store
from
"./store"
;
import
{
Popup
}
from
'vant'
;
// import { Button } from "vant";
// // import { DatePicker } from 'vant';
// import { NavBar } from "vant";
...
...
@@ -13,7 +14,8 @@ import store from "./store";
// import { Sticky } from "vant";
// import { Image as VanImage } from "vant";
// import { Cell, CellGroup } from "vant";
import
{
Form
,
Field
,
Uploader
}
from
"vant"
;
import
{
Form
,
Field
,
Uploader
}
from
"vant"
;
import
{
Dialog
}
from
'vant'
;
// import { Picker } from "vant";
// import { Popup } from "vant";
// import { Toast } from "vant";
...
...
@@ -42,42 +44,43 @@ app.config.globalProperties.$imgUrl = "http://43.143.63.140:8095/";
// ? "//192.168.101.72:8848"
// : "//43.143.63.140:8095";
app
// .use(ElementPlus)
// .use(Button)
// .use(NavBar)
// .use(Rate)
// .use(Search)
// .use(Skeleton)
// .use(Col)
// .use(Row)
// .use(Tab)
// .use(Tabs)
// .use(Sticky)
// .use(VanImage)
// .use(Cell)
// .use(CellGroup)
// .use(Form)
// .use(Picker)
// .use(Popup)
// .use(Field)
// .use(Uploader)
// .use(Toast)
// .use(Empty)
// .use(Tabbar)
// .use(TabbarItem)
// .use(DropdownMenu)
// .use(Dialog)
// .use(VueTouch, { name: "v-touch" })
// .use(DropdownItem)
// .use(Radio)
// .use(RadioGroup)
// .use(Switch)
// .use(Grid)
// .use(GridItem)
// .use(ContactCard)
// .use(Calendar)
// .use(Divider)
.
use
(
VueHashCalendar
)
.
use
(
Uploader
);
// .use(ElementPlus)
// .use(Button)
// .use(NavBar)
// .use(Rate)
// .use(Search)
// .use(Skeleton)
// .use(Col)
// .use(Row)
// .use(Tab)
// .use(Tabs)
// .use(Sticky)
// .use(VanImage)
// .use(Cell)
// .use(CellGroup)
// .use(Form)
// .use(Picker)
// .use(Popup)
// .use(Field)
// .use(Uploader)
// .use(Toast)
// .use(Empty)
// .use(Tabbar)
// .use(TabbarItem)
// .use(DropdownMenu)
// .use(Dialog)
// .use(VueTouch, { name: "v-touch" })
// .use(DropdownItem)
// .use(Radio)
// .use(RadioGroup)
// .use(Switch)
// .use(Grid)
// .use(GridItem)
// .use(ContactCard)
// .use(Calendar)
// .use(Divider)
.
use
(
VueHashCalendar
)
.
use
(
Uploader
)
.
use
(
Popup
)
// .use(DatePicker)
app
.
use
(
store
).
use
(
router
).
mount
(
"#app"
);
src/service/studentCourseSelection.js
View file @
95610ae4
...
...
@@ -4,16 +4,29 @@
import
axios
from
"../utils/axios"
;
//学生选课信息查询
export
function
getStudentInfo
(
id
)
{
return
axios
.
get
(
`/wx/course/getCourseInfo/
${
id
}
`
);
}
//获取数据字典
export
function
getDicts
(
type
)
{
let
url
=
`/system/dict/data/type/
${
type
}
`
;
let
result
=
axios
.
get
(
url
);
return
result
;
}
//查询个人成绩信息
export
function
getPersonGrade
(
id
)
{
return
axios
.
get
(
'/wx/course/achievement/'
+
id
);
return
axios
.
get
(
`/wx/course/achievement/
${
id
}
`
);
}
//根据学生3门选课查询
export
function
getSelectGrade
(
data
)
{
return
axios
.
post
(
'/wx/course/studenttypeview'
,{
...
data
}
);
return
axios
.
get
(
'/wx/course/studenttypeview'
,{
params
:
data
}
);
}
//保存选课信息
...
...
src/views/login/login.vue
View file @
95610ae4
...
...
@@ -224,7 +224,7 @@ export default {
console
.
log
(
"asdasd"
,
result
);
if
(
result
.
data
)
{
console
.
log
(
router
);
router
.
push
({
router
.
replace
({
path
:
"/main"
,
});
}
...
...
@@ -316,7 +316,7 @@ export default {
setParentTelephone
(
state
.
parentTelephone
);
setTotyp
(
state
.
loginType
);
router
.
push
({
router
.
replace
({
path
:
"/main"
,
query
:
{
studentName
:
state
.
studentName
,
...
...
src/views/parent/studentCourseSelection/index.vue
View file @
95610ae4
This diff is collapsed.
Click to expand it.
src/views/parent/studentCourseSelection/subjectAchievement.vue
View file @
95610ae4
This diff is collapsed.
Click to expand it.
src/views/parent/studentCourseSelection/totalScoreView.vue
View file @
95610ae4
This diff is collapsed.
Click to expand it.
src/views/tabbar/main/index.vue
View file @
95610ae4
...
...
@@ -184,7 +184,7 @@
/>
<span
class=
"item_text"
>
教师信息
</span>
</van-grid-item>
<van-grid-item
icon=
"photo-o"
text=
"学生选课"
url=
" #/studentCourseSelection"
>
<van-grid-item
icon=
"photo-o"
text=
"学生选课"
url=
" #/studentCourseSelection"
>
<van-image
style=
"width: 48px"
:src=
"require('@/assets/index/rkls.png')"
...
...
@@ -525,6 +525,7 @@ export default {
const
getpic
=
(
img
)
=>
{
return
axios
.
defaults
.
baseURL
+
img
;
};
const
loadData
=
async
()
=>
{
console
.
log
(
"加载数据"
,
store
);
goCalendar
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment