Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
platform
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王琮
platform
Commits
50cf8b62
Commit
50cf8b62
authored
Jun 21, 2023
by
赵桢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认列表
parent
c4145d10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
16 deletions
+45
-16
questionnaire_Administration_Tnew.jsp
...-INF/page/education/questionnaire_Administration_Tnew.jsp
+45
-16
No files found.
src/main/webapp/WEB-INF/page/education/questionnaire_Administration_Tnew.jsp
View file @
50cf8b62
...
@@ -59,27 +59,56 @@
...
@@ -59,27 +59,56 @@
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/education/questionnaire_Administration_list.js"
></script>
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/education/questionnaire_Administration_list.js"
></script>
<script>
<script>
<%--$(document).ready(function () {--%>
<%-- //获取token里面的内容--%>
<%-- <%--%>
<%-- Cookie[] cookies = request.getCookies();--%>
<%-- String SESSION = "";--%>
<%-- for(int i = 0; i < cookies.length; i++) {--%>
<%-- if ("SESSION".equals(cookies[i].getName())) {--%>
<%-- SESSION = cookies[i].getValue();--%>
<%-- }--%>
<%-- }--%>
<%-- request.setAttribute("SESSION", SESSION);--%>
<%-- %>--%>
<%-- <%–var url="http://localhost:8081/#/one?session=<%=request.getAttribute("SESSION")%>"–%>--%>
<%-- var url = "http://localhost:8081/#/one?session=<%=request.getAttribute("SESSION")%>&realID=" + createId--%>
<%-- <%–var url = "http://localhost:8081/#/one?session=" + <%=request.getAttribute("SESSION")%> + "&realID=" + <%=request.getSession().getAttribute("realID")%>;–%>--%>
<%-- // alert(url)--%>
<%-- var iframe = $('<iframe width="100%" height="100%" src="' + url + '"></iframe>')--%>
<%-- $("#iframe").append(iframe)--%>
<%--})--%>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
//
获取token里面
的内容
//
获取 token 里
的内容
<%
<%
Cookie
[]
cookies
=
request
.
getCookies
();
Cookie
[]
cookies
=
request
.
getCookies
();
String
SESSION
=
""
;
String
SESSION
=
""
;
for
(
int
i
=
0
;
i
<
cookies
.
length
;
i
++)
{
if
(
"SESSION"
.
equals
(
cookies
[
i
].
getName
()))
{
SESSION
=
cookies
[
i
].
getValue
();
}
}
request
.
setAttribute
(
"SESSION"
,
SESSION
);
for
(
int
i
=
0
;
i
<
cookies
.
length
;
i
++)
{
if
(
"SESSION"
.
equals
(
cookies
[
i
].
getName
()))
{
SESSION
=
cookies
[
i
].
getValue
();
}
}
request
.
setAttribute
(
"SESSION"
,
SESSION
);
%>
%>
<%--var url="http://localhost:8081/#/one?session=<%=request.getAttribute("SESSION")%>"--%>
var
url
=
"http://localhost:8081/#/one?session=
<%=
request
.
getAttribute
(
"SESSION"
)
%>
&realID="
+
createId
// 将 session ID 保存到浏览器的 sessionStorage 中
// alert(url)
var
sessionId
=
"
<%=
request
.
getSession
().
getId
()
%>
"
;
var
iframe
=
$
(
'<iframe width="100%" height="100%" src="'
+
url
+
'"></iframe>'
)
sessionStorage
.
setItem
(
"sessionId"
,
sessionId
);
$
(
"#iframe"
).
append
(
iframe
)
})
// 构造 URL
<%--var url = "http://localhost:8081/#/one?session=" + <%=request.getAttribute("SESSION")%> +"&realID=" + <%=request.getSession().getAttribute("realID")%>;--%>
var
url
=
"http://localhost:8081/#/one?session=
<%=
request
.
getAttribute
(
"SESSION"
)
%>
"
// 创建 iframe
var
iframe
=
$
(
'<iframe width="100%" height="100%" src="'
+
url
+
'"></iframe>'
);
// 将 iframe 添加到页面中
$
(
"#iframe"
).
append
(
iframe
);
});
</script>
</script>
<div
class=
"modal fade"
id=
"loadingModal"
backdrop=
"static"
keyboard=
"false"
>
<div
class=
"modal fade"
id=
"loadingModal"
backdrop=
"static"
keyboard=
"false"
>
<div
style=
"width: 200px;height:20px; z-index: 20000; position: absolute; text-align: center; left: 50%; top: 50%;margin-left:-100px;margin-top:-10px"
>
<div
style=
"width: 200px;height:20px; z-index: 20000; position: absolute; text-align: center; left: 50%; top: 50%;margin-left:-100px;margin-top:-10px"
>
...
...
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