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
bfa8cec8
Commit
bfa8cec8
authored
Nov 06, 2023
by
Cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zd 教师电子档案
parent
c23c00b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
15 deletions
+59
-15
ruoyi-ui/src/api/smartSchool/teacherFiles/teacherElectronicFile.js
+19
-4
ruoyi-ui/src/views/smartSchool/personWork/electronicRecord/index.vue
+7
-8
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/electronicRecord/index.vue
+33
-3
No files found.
ruoyi-ui/src/api/smartSchool/teacherFiles/teacherElectronicFile.js
View file @
bfa8cec8
...
@@ -93,9 +93,9 @@ export function getNoticeInfo(query) {
...
@@ -93,9 +93,9 @@ export function getNoticeInfo(query) {
}
}
//老师查看列表
//老师查看列表
export
function
getTeacherTnfo
(
userId
,
query
)
{
export
function
getTeacherTnfo
(
query
)
{
return
request
({
return
request
({
url
:
`/teacherFiles/files/getTeachList
/
${
userId
}
`
,
url
:
`/teacherFiles/files/getTeachList`
,
// url: `/teacherFiles/files/getTeachList/${userId}`,
// url: `/teacherFiles/files/getTeachList/${userId}`,
method
:
'get'
,
method
:
'get'
,
params
:
query
params
:
query
...
@@ -117,6 +117,14 @@ export function getFileTnfo(id) {
...
@@ -117,6 +117,14 @@ export function getFileTnfo(id) {
method
:
"get"
,
method
:
"get"
,
});
});
}
}
// //查看档案详情
// export function getFileTnfo(query) {
// return request({
// url: "/teacherFiles/files",
// method: "get",
// params: query,
// });
// }
// 同步档案
// 同步档案
export
function
syncNotice
(
id
)
{
export
function
syncNotice
(
id
)
{
return
request
({
return
request
({
...
@@ -181,4 +189,12 @@ export function addTeachaer(ids) {
...
@@ -181,4 +189,12 @@ export function addTeachaer(ids) {
url
:
'/teacherFiles/files/teacherAdd/'
+
ids
,
url
:
'/teacherFiles/files/teacherAdd/'
+
ids
,
method
:
"get"
,
method
:
"get"
,
});
});
}
}
\ No newline at end of file
// 导出
export
function
exportList
(
id
)
{
return
request
({
url
:
'/teacherFiles/notice/export/'
+
id
,
method
:
'get'
,
})
}
ruoyi-ui/src/views/smartSchool/personWork/electronicRecord/index.vue
View file @
bfa8cec8
...
@@ -554,17 +554,16 @@ export default {
...
@@ -554,17 +554,16 @@ export default {
/** 查询信息列表 */
/** 查询信息列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
const
userId
=
this
.
$store
.
state
.
user
.
userId
;
// const userId = this.$store.state.user.userId;
// const params = {
// // userId: this.$store.state.user.userId,
// noticeName: this.queryForm.noticeName,
// };
const
params
=
{
const
params
=
{
//
userId: this.$store.state.user.userId,
userId
:
this
.
$store
.
state
.
user
.
userId
,
noticeName
:
this
.
queryForm
.
noticeName
,
noticeName
:
this
.
queryForm
.
noticeName
,
};
};
// const params = {
getTeacherTnfo
(
params
).
then
((
res
)
=>
{
// pageNum: this.queryForm.pageNum,
// pageSize: this.queryForm.pageSize,
// teacherId: this.$store.state.user.userId,
// };
getTeacherTnfo
(
userId
,
params
).
then
((
res
)
=>
{
this
.
tableData
=
res
.
rows
;
this
.
tableData
=
res
.
rows
;
console
.
log
(
params
,
"params"
);
console
.
log
(
params
,
"params"
);
console
.
log
(
res
,
"res"
);
console
.
log
(
res
,
"res"
);
...
...
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/electronicRecord/index.vue
View file @
bfa8cec8
...
@@ -282,6 +282,7 @@
...
@@ -282,6 +282,7 @@
<
script
>
<
script
>
import
{
import
{
exportList
,
//导出
addTeacherNotice
,
//添加任务
addTeacherNotice
,
//添加任务
listTeacherNotice
,
// 任务列表
listTeacherNotice
,
// 任务列表
infoTeaNotice
,
//任务详情
infoTeaNotice
,
//任务详情
...
@@ -302,6 +303,8 @@ import {
...
@@ -302,6 +303,8 @@ import {
fileSubRejected
,
//教师档案提交驳回
fileSubRejected
,
//教师档案提交驳回
}
from
"@/api/smartSchool/teacherFiles/teacherElectronicFile"
;
}
from
"@/api/smartSchool/teacherFiles/teacherElectronicFile"
;
import
{
format
}
from
"@/utils/activiti/myUtil.js"
;
import
{
format
}
from
"@/utils/activiti/myUtil.js"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
axios
from
"axios"
;
export
default
{
export
default
{
name
:
"teacherElectronicRecord"
,
name
:
"teacherElectronicRecord"
,
data
()
{
data
()
{
...
@@ -487,6 +490,7 @@ export default {
...
@@ -487,6 +490,7 @@ export default {
// 数据维护按钮
// 数据维护按钮
dataMaintenance
(
row
)
{
dataMaintenance
(
row
)
{
console
.
log
(
row
,
"数据维护按钮row"
);
console
.
log
(
row
,
"数据维护按钮row"
);
const
noticeName
=
row
.
noticeName
;
const
noticeId
=
row
.
id
;
const
noticeId
=
row
.
id
;
const
pageNum
=
this
.
queryForm
.
pageNum
;
const
pageNum
=
this
.
queryForm
.
pageNum
;
const
pageSize
=
this
.
queryForm
.
pageSize
;
const
pageSize
=
this
.
queryForm
.
pageSize
;
...
@@ -495,6 +499,7 @@ export default {
...
@@ -495,6 +499,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/teachAffairAdministration/smartSchool/teachAffairAdministration/electronicRecord/dataMaintenance"
,
path
:
"/teachAffairAdministration/smartSchool/teachAffairAdministration/electronicRecord/dataMaintenance"
,
query
:
{
query
:
{
noticeName
,
noticeId
,
noticeId
,
pageNum
,
pageNum
,
pageSize
,
pageSize
,
...
@@ -509,6 +514,7 @@ export default {
...
@@ -509,6 +514,7 @@ export default {
// 数据查看
// 数据查看
dataInspection
(
row
)
{
dataInspection
(
row
)
{
const
noticeId
=
row
.
id
;
const
noticeId
=
row
.
id
;
const
noticeName
=
row
.
noticeName
;
const
pageNum
=
this
.
queryForm
.
pageNum
;
const
pageNum
=
this
.
queryForm
.
pageNum
;
const
pageSize
=
this
.
queryForm
.
pageSize
;
const
pageSize
=
this
.
queryForm
.
pageSize
;
const
status
=
row
.
noticeState
;
const
status
=
row
.
noticeState
;
...
@@ -517,6 +523,7 @@ export default {
...
@@ -517,6 +523,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/teachAffairAdministration/smartSchool/teachAffairAdministration/electronicRecord/dataMaintenance"
,
path
:
"/teachAffairAdministration/smartSchool/teachAffairAdministration/electronicRecord/dataMaintenance"
,
query
:
{
query
:
{
noticeName
,
noticeId
,
noticeId
,
pageNum
,
pageNum
,
pageSize
,
pageSize
,
...
@@ -526,10 +533,33 @@ export default {
...
@@ -526,10 +533,33 @@ export default {
},
},
// 导出按钮
// 导出按钮
handleExport
(
row
)
{
handleExport
(
row
)
{
// this.download(`/artExam/exportAddress/${this.examId}`, {
const
id
=
row
.
id
;
// ...this.queryParams
const
loading
=
this
.
$loading
({
target
:
".loading-area"
});
// }, `教师电子档案${Date.now()}.xlsx`)
axios
.
get
(
process
.
env
.
VUE_APP_BASE_API
+
"/teacherFiles/notice/export"
,
{
params
:
{
id
:
id
},
// 将ids放入params选项中进行传递
responseType
:
"blob"
,
headers
:
{
Authorization
:
"Bearer "
+
getToken
()
},
})
.
then
((
res
)
=>
{
// 打印接口数据
console
.
log
(
res
);
// 请求结束关闭loading
loading
.
close
();
// 创建a标签
const
elink
=
document
.
createElement
(
"a"
);
//构建Blob对象
const
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/vnd.ms-excel"
,
});
// 模拟下载
const
objectUrl
=
URL
.
createObjectURL
(
blob
);
elink
.
setAttribute
(
"href"
,
objectUrl
);
elink
.
setAttribute
(
"download"
,
"教师电子档案"
+
".xls"
);
elink
.
click
();
});
},
},
// 撤回按钮
// 撤回按钮
handleRevocation
(
row
)
{
handleRevocation
(
row
)
{
this
.
$modal
this
.
$modal
...
...
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