Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
newCSO_2023
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
lizhi
newCSO_2023
Commits
b177a562
Commit
b177a562
authored
Feb 23, 2023
by
lizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加课程,菜单栏角标提醒
parent
051954a9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
18 deletions
+124
-18
src/main.js
+2
-2
src/store/getters.js
+1
-0
src/store/modules/user.js
+5
-1
src/views/dailyTask/editPlan.vue
+3
-1
src/views/layout/components/Sidebar/SidebarItem.vue
+25
-3
src/views/pms/product/components/courseInfo.vue
+88
-11
No files found.
src/main.js
View file @
b177a562
...
...
@@ -24,9 +24,9 @@ moment.locale("zh-cn");
// Vue.prototype.Clipboard = Clipboard;
// Vue.prototype.$UPLOAD_BASE_URL = "https://pandaxuequ.com.cn/xs/admin"; //图片上传的服务器地址
// Vue.prototype.$UPLOAD_BASE_URL = "http://192.168.10.111:8085
"; //图片上传的服务器地址
Vue
.
prototype
.
$UPLOAD_BASE_URL
=
"http://192.168.10.111:8057
"
;
//图片上传的服务器地址
// Vue.prototype.$H5_BASE_URL = "http://192.168.10.108:8081/#/"; //H5服务器地址
Vue
.
prototype
.
$UPLOAD_BASE_URL
=
"http://test.csasedu.com:10032"
;
//图片上传的服务器地址
//
Vue.prototype.$UPLOAD_BASE_URL = "http://test.csasedu.com:10032"; //图片上传的服务器地址
Vue
.
prototype
.
$H5_BASE_URL
=
"http://test.csasedu.com:10034/#/"
;
//H5跳转的网页地址
Vue
.
use
(
ElementUI
,
{
locale
});
...
...
src/store/getters.js
View file @
b177a562
...
...
@@ -11,6 +11,7 @@ const getters = {
xfSelectUnBind
:
state
=>
state
.
user
.
xfSelectUnBind
,
cooperateSchoolAll
:
state
=>
state
.
user
.
cooperateSchoolAll
,
recruitSchoolAll
:
state
=>
state
.
user
.
recruitSchoolAll
,
outlineListUnconfirm
:
state
=>
state
.
user
.
outlineListUnconfirm
,
addRouters
:
state
=>
state
.
permission
.
addRouters
,
routers
:
state
=>
state
.
permission
.
routers
};
...
...
src/store/modules/user.js
View file @
b177a562
...
...
@@ -12,7 +12,8 @@ const user = {
kfSelectUnBind
:
""
,
xfSelectUnBind
:
""
,
cooperateSchoolAll
:
""
,
recruitSchoolAll
:
""
recruitSchoolAll
:
""
,
outlineListUnconfirm
:
""
},
mutations
:
{
...
...
@@ -45,6 +46,9 @@ const user = {
},
set_recruitSchoolAll
:
(
state
,
recruitSchoolAll
)
=>
{
state
.
recruitSchoolAll
=
recruitSchoolAll
;
},
set_outlineListUnconfirm
:
(
state
,
outlineListUnconfirm
)
=>
{
state
.
outlineListUnconfirm
=
outlineListUnconfirm
;
}
},
...
...
src/views/dailyTask/editPlan.vue
View file @
b177a562
...
...
@@ -81,7 +81,9 @@
align=
"center"
prop=
"addTime"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
addTime
}}
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
addTime
|
formatDateTime
}}
</
template
>
</el-table-column>
<el-table-column
label=
"大纲进度"
align=
"center"
>
...
...
src/views/layout/components/Sidebar/SidebarItem.vue
View file @
b177a562
...
...
@@ -21,8 +21,17 @@
<span
v-if=
"item.children[0].meta && item.children[0].meta.title"
slot=
"title"
>
{{
item
.
children
[
0
].
meta
.
title
}}
</span
>
>
{{
item
.
children
[
0
].
meta
.
title
}}
<el-badge
v-if=
"
item.children[0].meta &&
item.children[0].meta.title == '课程大纲更新' &&
$store.getters.outlineListUnconfirm > 0
"
slot=
"title"
:value=
"$store.getters.outlineListUnconfirm"
></el-badge>
</span>
</el-menu-item>
</router-link>
...
...
@@ -126,7 +135,12 @@
</template>
<
script
>
import
{
todayTask
,
kfSelectUnBind
,
xfSelectUnBind
}
from
"@/api/cso"
;
import
{
todayTask
,
kfSelectUnBind
,
xfSelectUnBind
,
outlineList
}
from
"@/api/cso"
;
import
{
cooperateSchoolAll
,
recruitSchoolAll
}
from
"@/api/cso2"
;
export
default
{
name
:
"SidebarItem"
,
...
...
@@ -181,6 +195,14 @@ export default {
this
.
$store
.
commit
(
"set_recruitSchoolAll"
,
res
.
data
.
total
);
// console.log(res.data.total, "vuex");
});
outlineList
({
pageNum
:
1
,
pageSize
:
10
,
outlineState
:
2
}).
then
(
res
=>
{
this
.
$store
.
commit
(
"set_outlineListUnconfirm"
,
res
.
data
.
total
);
// console.log(this.$store.getters.outlineListUnconfirm, "vuex");
});
}
},
mounted
()
{
...
...
src/views/pms/product/components/courseInfo.vue
View file @
b177a562
...
...
@@ -402,7 +402,8 @@
prop=
"auditSchool"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"list.auditSchool"
clearable
>
</el-input>
<el-input
@
change=
"test"
v-model=
"list.auditSchool"
clearable
>
</el-input>
</el-form-item>
<el-form-item
label=
"审课学姐"
...
...
@@ -423,26 +424,29 @@
<div
v-for=
"(item, index) in num"
:key=
"index"
class=
"line2"
>
<div>
{{ "选课" + item }}
</div>
<div
class=
"line"
>
<el-col
:span=
"
6
"
>
<el-form-item
label=
"年份"
required
:label-width=
"formLabelWidth
"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"年份"
required
label-width=
"150px
"
>
<el-input
v-model=
"list.userCourseList[index].yearTime"
>
<!-- <template slot="append">年</template> -->
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
6
"
>
<el-form-item
label=
"学期"
required
:label-width=
"formLabelWidth
"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"学期"
required
label-width=
"150px
"
>
<el-input
v-model=
"list.userCourseList[index].term"
>
<!-- <template slot="append">学期</template> -->
</el-input>
</el-form-item>
</el-col>
</div>
<el-col
:span=
"6"
>
<div
class=
"line"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"cso课程代码"
label-width=
"150px"
>
<el-select
v-model=
"list.userCourseList[index].csoCourseCode"
clearable
filterable
:disabled=
"
list.userCourseList[index].ownCourseCode ||
list.userCourseList[index].auditCourseCode
...
...
@@ -459,15 +463,23 @@
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="课程名称" :label-width="formLabelWidth">
<!-- <el-form-item label="cso课程名称" :label-width="formLabelWidth">
<el-input v-model="list.userCourseList[index].courseName">
</el-input>
</el-form-item> -->
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"cso课程名称"
label-width=
"150px"
>
<el-input
v-model=
"list.userCourseList[index].courseName"
>
</el-input>
</el-form-item>
</el-col>
</div>
<div
class=
"line"
>
<
el-col
:span=
"8"
>
<
!-- <el-col :span="8"> --
>
<!-- <el-form-item label="所在学校课程代码" label-width="150px">
<el-input
v-model="list.userCourseList[index].ownCourseCode"
...
...
@@ -481,11 +493,11 @@
</el-input>
</el-form-item> -->
<el-form-item
label=
"课程名称"
:label-width=
"formLabelWidth"
>
<!--
<el-form-item label="课程名称" :label-width="formLabelWidth">
<el-input v-model="list.userCourseList[index].courseName">
</el-input>
</el-form-item>
<
/el-col
>
</el-form-item>
-->
<
!-- </el-col> --
>
<el-col
:span=
"8"
>
<!-- <el-form-item label="cso课程代码" label-width="150px">
...
...
@@ -524,6 +536,21 @@
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"所在学校课程名称"
label-width=
"150px"
>
<el-input
v-model=
"list.userCourseList[index].ownCourseCode"
:disabled=
"
list.userCourseList[index].csoCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="8">
<el-form-item label="审课大学课程代码" label-width="150px">
<el-input
v-model="list.userCourseList[index].auditCourseCode"
...
...
@@ -536,7 +563,54 @@
>
</el-input>
</el-form-item>
</el-col> -->
</div>
<div
class=
"line"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"审课学校课程代码"
label-width=
"150px"
>
<el-input
v-model=
"list.userCourseList[index].ownCourseCode"
:disabled=
"
list.userCourseList[index].csoCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"审课学校课程名称"
label-width=
"150px"
>
<el-input
v-model=
"list.userCourseList[index].ownCourseCode"
:disabled=
"
list.userCourseList[index].csoCourseCode ||
list.userCourseList[index].auditCourseCode
? true
: false
"
>
</el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="8">
<el-form-item label="审课大学课程代码" label-width="150px">
<el-input
v-model="list.userCourseList[index].auditCourseCode"
:disabled="
list.userCourseList[index].ownCourseCode ||
list.userCourseList[index].csoCourseCode
? true
: false
"
>
</el-input>
</el-form-item>
</el-col> -->
</div>
<el-divider></el-divider>
</div>
...
...
@@ -632,6 +706,9 @@ export default {
}
},
methods
:
{
test
(
val
)
{
console
.
log
(
val
,
"val"
);
},
submitForm
(
formName
)
{
// console.log(this.list, "submitForm");
this
.
list
.
userId
=
this
.
$route
.
query
.
id
;
...
...
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