Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
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_school
Commits
f40d5173
Commit
f40d5173
authored
Aug 02, 2023
by
zhaopanyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zpy 8.2
parent
0f81bcc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
135 additions
and
83 deletions
+135
-83
ruoyi-ui/src/api/smartSchool/gradeWork/courseSelection/taskPublishing.js
+42
-0
ruoyi-ui/src/views/smartSchool/gradeWork/courseSelection/taskPublishing/index.vue
+93
-83
No files found.
ruoyi-ui/src/api/smartSchool/gradeWork/courseSelection/taskPublishing.js
0 → 100644
View file @
f40d5173
import
request
from
"@/utils/request"
;
// 查看选课任务发布列表
export
function
dataCurricula
(
query
)
{
return
request
({
url
:
"/curricula/variable/list"
,
method
:
"get"
,
params
:
query
,
});
}
// 新增选课任务
export
function
addCurricula
(
data
)
{
return
request
({
url
:
"/curricula/variable/add"
,
method
:
"post"
,
data
:
data
,
});
}
// 修改选课任务
export
function
updateCurricula
(
data
)
{
return
request
({
url
:
"/curricula/variable/edit"
,
method
:
"post"
,
data
:
data
,
});
}
// 查询选课任务详细信息
export
function
getCurricula
(
id
)
{
return
request
({
url
:
"/curricula/variable/"
+
id
,
method
:
"get"
,
});
}
//获取当前最新级部
export
function
getDept
(
data
)
{
return
request
({
url
:
"/curricula/variable/getNewGrade"
,
method
:
"get"
,
data
:
data
,
});
}
ruoyi-ui/src/views/smartSchool/gradeWork/courseSelection/taskPublishing/index.vue
View file @
f40d5173
...
...
@@ -3,11 +3,11 @@
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryForm"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"80px"
>
<el-form-item
prop=
"
rwmc
"
label=
"任务名称"
>
<el-input
v-model=
"queryForm.
activity
Name"
placeholder=
"任务名称"
></el-input>
<el-form-item
prop=
"
taskName
"
label=
"任务名称"
>
<el-input
v-model=
"queryForm.
task
Name"
placeholder=
"任务名称"
></el-input>
</el-form-item>
<el-form-item
prop=
"
jb
"
label=
"级部"
>
<el-input
v-model=
"queryForm.
activityNam
e"
placeholder=
"级部"
></el-input>
<el-form-item
prop=
"
grade
"
label=
"级部"
>
<el-input
v-model=
"queryForm.
grad
e"
placeholder=
"级部"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
...
@@ -16,7 +16,7 @@
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
新增
</el-button>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd
()
"
>
新增
</el-button>
</el-col>
</el-row>
...
...
@@ -29,11 +29,11 @@
<div
class=
"task-info"
>
<div
class=
"left"
>
<div
class=
"task-name"
>
<div>
{{
task
.
n
ame
}}
</div>
<div>
{{
task
.
taskN
ame
}}
</div>
</div>
<div
class=
"task-level"
>
<span>
级部:
{{
task
.
level
}}
</span>
<span>
创建人:
{{
task
.
creat
or
}}
</span>
<span>
级部:
{{
task
.
grade
}}
</span>
<span>
创建人:
{{
task
.
creat
eBy
}}
</span>
</div>
<div
class=
"task-time"
>
<div>
创建时间:
{{
task
.
createTime
}}
</div>
...
...
@@ -44,13 +44,13 @@
<!-- 右上角显示已选人数/全部人数 -->
<div
class=
"task-count"
>
<div
class=
"count"
>
{{
task
.
selectedCount
}}
/
{{
task
.
totalCount
}}
{{
task
.
yxrs
}}
/
{{
task
.
zrs
}}
</div>
<div
class=
"sun"
>
已选人数/总人数
</div>
</div>
<!-- 右下角按钮 -->
<div
class=
"task-buttons"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate()"
>
修改
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(
task
)"
>
修改
</el-button>
<el-button
type=
"text"
size=
"small"
icon=
"el-icon-edit"
@
click=
"performance()"
>
成绩管理
</el-button>
...
...
@@ -71,25 +71,26 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<div>
<el-row>
<el-col
:span=
"1
2
"
>
<el-form-item
label=
"任务
发布"
prop=
"rwfb
"
>
<el-input
v-model=
"form.
rwfb
"
placeholder=
"请输入"
></el-input>
<el-col
:span=
"1
6
"
>
<el-form-item
label=
"任务
名称"
prop=
"taskName
"
>
<el-input
v-model=
"form.
taskName
"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"发布时间"
prop=
"rwfb"
>
<el-date-picker
v-model=
"form.sj"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:style=
"
{ width: '100%' }">
<el-col
:span=
"16"
>
<el-form-item
label=
"发布时间"
>
<el-date-picker
v-model=
"dateRange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
:style=
"
{ width: '100%' }">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"1
2
"
>
<el-form-item
label=
"级部"
prop=
"
jb
"
>
<el-input
v-model=
"form.
jb
"
placeholder=
"请输入"
></el-input>
<el-col
:span=
"1
6
"
>
<el-form-item
label=
"级部"
prop=
"
grade
"
>
<el-input
v-model=
"form.
grade
"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -107,38 +108,25 @@
</
template
>
<
script
>
import
{
dataCurricula
,
addCurricula
,
updateCurricula
,
getCurricula
,
getDept
}
from
"@/api/smartSchool/gradeWork/courseSelection/taskPublishing.js"
;
export
default
{
name
:
'
courseSelection
'
,
name
:
'
taskPublishing
'
,
data
()
{
return
{
tasks
:
[{
name
:
'高一选课'
,
level
:
'高一'
,
creator
:
'张三'
,
createTime
:
'2020-09-01'
,
selectedCount
:
100
,
totalCount
:
200
,
},
{
name
:
'高一选课'
,
level
:
'高一'
,
creator
:
'张三'
,
createTime
:
'2021-09-01'
,
selectedCount
:
100
,
totalCount
:
200
,
},
],
row
:
null
,
tasks
:
[],
queryForm
:
{
startTime
:
""
,
endTime
:
""
,
pageNum
:
1
,
pageSize
:
10
,
taskName
:
""
,
grade
:
""
,
},
form
:
{
taskName
:
""
,
grade
:
""
,
},
//新增弹窗
...
...
@@ -153,15 +141,23 @@ export default {
AppointmentList
:
[],
// 详情
look
:
false
,
// 日期范围
dateRange
:
[],
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 获取列表数据 */
getList
()
{
listAuditor
(
params
).
then
(
response
=>
{
this
.
loading
=
false
;
this
.
infoList
=
response
.
rows
;
const
params
=
{
taskName
:
this
.
queryForm
.
taskName
,
grade
:
this
.
queryForm
.
grade
,
};
dataCurricula
(
params
).
then
(
response
=>
{
console
.
log
(
111
,
response
.
rows
);
this
.
tasks
=
response
.
rows
;
this
.
total
=
response
.
total
;
}).
catch
(
err
=>
{
this
.
loading
=
false
;
...
...
@@ -171,12 +167,22 @@ export default {
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
getDept
().
then
(
response
=>
{
this
.
form
.
grade
=
response
.
data
.
grade
;
console
.
log
(
this
.
form
.
grade
);
})
.
catch
(
err
=>
{
this
.
loading
=
false
;
});
this
.
title
=
"新增任务发布"
;
},
// 成绩管理按钮
performance
()
{
this
.
$router
.
push
({
path
:
"/performance"
,
path
:
"/
gradeWork/courseSelection/
performance"
,
query
:
{
// id: this.task.id
}
...
...
@@ -185,7 +191,7 @@ export default {
// 选课情况按钮
courseSelectionsituation
()
{
this
.
$router
.
push
({
path
:
"/courseSelectionsituation"
,
path
:
"/
gradeWork/courseSelection/
courseSelectionsituation"
,
query
:
{
// id: this.task.id
}
...
...
@@ -194,7 +200,7 @@ export default {
// 春季选课按钮
springView
()
{
this
.
$router
.
push
({
path
:
"/springView"
,
path
:
"/
gradeWork/courseSelection/
springView"
,
query
:
{
// id: this.task.id
}
...
...
@@ -203,7 +209,7 @@ export default {
//艺体选课按钮
artisticView
()
{
this
.
$router
.
push
({
path
:
"/artisticView"
,
path
:
"/
gradeWork/courseSelection/
artisticView"
,
query
:
{
// id: this.task.id
}
...
...
@@ -212,7 +218,7 @@ export default {
//夏季选课按钮
summerViewing
()
{
this
.
$router
.
push
({
path
:
"/summerViewing"
,
path
:
"/
gradeWork/courseSelection/
summerViewing"
,
query
:
{
// id: this.task.id
}
...
...
@@ -221,7 +227,7 @@ export default {
//夏季二次选课按钮
secondaryDivision
()
{
this
.
$router
.
push
({
path
:
"/secondaryDivision"
,
path
:
"/
gradeWork/courseSelection/
secondaryDivision"
,
query
:
{
// id: this.task.id
}
...
...
@@ -250,33 +256,33 @@ export default {
// 提交表单
submitForm
()
{
this
.
throttle
(()
=>
{
this
.
$refs
[
"
postF
orm"
].
validate
(
valid
=>
{
this
.
$refs
[
"
f
orm"
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
$modal
.
loading
(
'正在上传数据,请稍等...'
);
if
(
this
.
postForm
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
// 编辑
this
.
postForm
.
isGov
=
this
.
postForm
.
isGov
;
// 设置 isGov 字段的值
editBudget
(
this
.
postForm
).
then
(
response
=>
{
this
.
$m
odal
.
closeLoading
(
);
this
.
$modal
.
msgSuccess
(
"修改成功"
);
updateCurricula
(
this
.
form
).
then
(
response
=>
{
console
.
log
(
"res1111"
);
this
.
$m
essage
.
success
(
"修改成功"
);
console
.
log
(
"res"
,
response
);
this
.
open
=
false
;
this
.
getList
();
}).
catch
(
err
=>
{
this
.
$modal
.
closeLoading
();
});
}
else
{
// 新增
this
.
postForm
.
isGov
=
this
.
postForm
.
isGov
;
// 设置 isGov 字段的值
addBudget
(
this
.
postForm
).
then
(
response
=>
{
console
.
log
(
'this.postForm'
,
this
.
postForm
);
this
.
$modal
.
closeLoading
();
console
.
log
(
this
);
this
.
$modal
.
msgSuccess
(
"新增成功"
);
const
params
=
{
taskName
:
this
.
form
.
taskName
,
grade
:
this
.
form
.
grade
,
startTime
:
this
.
dateRange
[
0
],
endTime
:
this
.
dateRange
[
1
]
};
addCurricula
(
params
).
then
(
response
=>
{
this
.
$message
.
success
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}).
catch
(
err
=>
{
this
.
$modal
.
closeLoading
();
// Handle error if necessary
});
}
}
...
...
@@ -284,24 +290,28 @@ export default {
})
},
// 编辑按钮
handleUpdate
()
{
handleUpdate
(
task
)
{
this
.
title
=
'修改'
;
this
.
open
=
true
;
// queryBudget(row.id).then(response => {
// this.postForm = response.data;
// console.log('this.postForm', this.postForm);
// this.$modal.closeLoading();
// }).catch(err => {
// this.$modal.closeLoading();
// })
getCurricula
(
task
.
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
dateRange
=
[
response
.
data
.
startTime
,
response
.
data
.
endTime
];
console
.
log
(
response
);
console
.
log
(
'this.form'
,
this
.
form
);
this
.
$modal
.
closeLoading
();
}).
catch
(
err
=>
{
})
},
// 重置表单
reset
()
{
// 这里需要重置对话框表单
this
.
postForm
=
{
// 重置对话框表单
this
.
form
=
{
taskName
:
""
,
grade
:
""
,
};
this
.
resetForm
(
'postForm'
);
this
.
dateRange
=
[];
this
.
resetForm
(
'form'
);
},
...
...
@@ -361,7 +371,7 @@ export default {
font-size
:
38px
;
font-weight
:
bold
;
//
text-align
:
center
;
margin-
left
:
-8
%
;
margin-
right
:
2
%
;
font-family
:
PMZDBiaoTi-regular
;
}
...
...
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