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
ba2eacf6
Commit
ba2eacf6
authored
Oct 24, 2023
by
zhaopanyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zpy 10.24
parent
001a92f8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
10 deletions
+28
-10
ruoyi-ui/src/permission.js
+1
-0
ruoyi-ui/src/router/index.js
+9
-0
ruoyi-ui/src/views/smartSchool/schoolProperty/equipmenTledger/index.vue
+6
-4
ruoyi-ui/src/views/smartSchool/schoolProperty/equipmenTledger/printBarcodes.vue
+6
-1
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/affairStudentManage/index.vue
+6
-5
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/lessonManage/index copy.vue
+0
-0
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/lessonManage/printLesson copy.vue
+0
-0
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/lessonManage/printLesson.vue
+0
-0
No files found.
ruoyi-ui/src/permission.js
View file @
ba2eacf6
...
...
@@ -17,6 +17,7 @@ const whiteList = [
"/dd"
,
"/studentRegistra"
,
"/printBarcodes"
,
"/printLesson"
,
];
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
...
...
ruoyi-ui/src/router/index.js
View file @
ba2eacf6
...
...
@@ -78,6 +78,15 @@ export const constantRoutes = [
),
hidden
:
true
,
},
//课程表
{
path
:
"/printLesson"
,
component
:
()
=>
import
(
"@/views/smartSchool/teachAffairAdministration/lessonManage/printLesson"
),
hidden
:
true
,
},
{
path
:
"/studentRegistra"
,
component
:
()
=>
...
...
ruoyi-ui/src/views/smartSchool/schoolProperty/equipmenTledger/index.vue
View file @
ba2eacf6
...
...
@@ -624,18 +624,19 @@ export default {
//点击批量打印跳转
printBarcodes
()
{
// this.printDialog = true;
const
baseUrl
=
window
.
location
.
origin
+
'/printBarcodes'
;
console
.
log
(
baseUrl
,
'baseUrl'
);
this
.
printList
=
this
.
chooseList
;
console
.
log
(
11
,
this
.
printList
);
const
url
=
'http://localhost:1024/printBarcodes'
;
console
.
log
(
url
,
'u
rl'
);
// const url = `${baseUrl}/printBarcodes`
;
console
.
log
(
baseUrl
,
'baseU
rl'
);
const
ids
=
this
.
electItem
.
join
(
','
);
console
.
log
(
ids
,
'ids'
);
const
encodes
=
this
.
chooseList
.
map
(
item
=>
item
.
encode
).
join
(
','
);
console
.
log
(
encodes
,
'encodes'
);
const
printListParam
=
encodeURIComponent
(
JSON
.
stringify
(
this
.
printList
));
dd
.
biz
.
util
.
openLink
({
url
:
`
${
u
rl
}
?ids=
${
ids
}
&encodes=
${
encodes
}
&printList=
${
printListParam
}
`
,
url
:
`
${
baseU
rl
}
?ids=
${
ids
}
&encodes=
${
encodes
}
&printList=
${
printListParam
}
`
,
onSuccess
:
()
=>
{
console
.
log
(
'跳转成功,准备打印'
);
// 打印条码
...
...
@@ -649,6 +650,7 @@ export default {
//打印条码
// printCode() {
// printJS({
...
...
ruoyi-ui/src/views/smartSchool/schoolProperty/equipmenTledger/printBarcodes.vue
View file @
ba2eacf6
...
...
@@ -84,6 +84,7 @@ export default {
const
ids
=
this
.
$route
.
query
.
ids
;
const
encodes
=
this
.
$route
.
query
.
encodes
;
const
printList
=
JSON
.
parse
(
decodeURIComponent
(
this
.
$route
.
query
.
printList
));
this
.
printBarcodes
(
ids
,
encodes
,
printList
);
},
...
...
@@ -121,7 +122,6 @@ export default {
});
},
//打印条码
printCode
()
{
printJS
({
...
...
@@ -141,6 +141,11 @@ export default {
#printBlock{
display:block!important
}
#tabnav, #pagenum {
display: none !important;
}
}`
});
}
...
...
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/affairStudentManage/index.vue
View file @
ba2eacf6
...
...
@@ -935,13 +935,14 @@ export default {
// },
studentProve
(
row
)
{
console
.
log
(
'准备跳转'
);
const
baseUrl
=
window
.
location
.
protocol
+
'//'
+
window
.
location
.
host
;
// 获取当前页面的协议、主机作为前缀URL
const
baseUrl
=
window
.
location
.
origin
;
// 获取当前页面的协议、主机作为前缀URL
// const baseUrl = window.location.protocol + '//' + window.location.host; // 获取当前页面的协议、主机作为前缀URL
console
.
log
(
'im_1_0'
,
baseUrl
);
const
url
=
`http://localhost:1024/studentRegistra?id=
${
row
.
id
}
&name=
${
row
.
studentName
}
&idCard=
${
row
.
idCard
}
&schoolNo=
${
row
.
schoolNo
}
`
;
//
const newURL = `${baseUrl}/studentRegistra?id=${encodeURIComponent(row.id)}&name=${encodeURIComponent(row.studentName)}&idCard=${encodeURIComponent(row.idCard)}&schoolNo=${encodeURIComponent(row.schoolNo)}`;
//
const url = `http://localhost:1024/studentRegistra?id=${row.id}&name=${row.studentName}&idCard=${row.idCard}&schoolNo=${row.schoolNo}`;
const
newURL
=
`
${
baseUrl
}
/studentRegistra?id=
${
encodeURIComponent
(
row
.
id
)}
&name=
${
encodeURIComponent
(
row
.
studentName
)}
&idCard=
${
encodeURIComponent
(
row
.
idCard
)}
&schoolNo=
${
encodeURIComponent
(
row
.
schoolNo
)}
`
;
dd
.
biz
.
util
.
openLink
({
//
url: newURL,
url
:
url
,
url
:
newURL
,
//
url: url,
onSuccess
:
()
=>
{
console
.
log
(
newURL
,
'newURL'
);
console
.
log
(
'跳转成功,准备打印'
);
...
...
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/lessonManage/index copy.vue
0 → 100644
View file @
ba2eacf6
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/lessonManage/printLesson copy.vue
0 → 100644
View file @
ba2eacf6
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/lessonManage/printLesson.vue
0 → 100644
View file @
ba2eacf6
This diff is collapsed.
Click to expand it.
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