Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡懿
warehouse
Commits
adf2abf1
Commit
adf2abf1
authored
Feb 23, 2023
by
yyq1988
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
b14e8f23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gridselect.tag
src/main/webapp/WEB-INF/tags/sys/gridselect.tag
+4
-2
No files found.
src/main/webapp/WEB-INF/tags/sys/gridselect.tag
View file @
adf2abf1
...
@@ -37,11 +37,13 @@ $(document).ready(function(){
...
@@ -37,11 +37,13 @@ $(document).ready(function(){
if ($("#${id}Button").hasClass("disabled")){
if ($("#${id}Button").hasClass("disabled")){
return true;
return true;
}
}
var url = '${url}';
if('${validate}' && '${validateSelector}'){
if('${validate}' && '${validateSelector}'){
if(!$("${validateSelector}").val()){
if(!$("${validateSelector}").val()){
jp.warning('${validateMsg}');
jp.warning('${validateMsg}');
return;
return;
}else{
url+="?office.id="+$("${validateSelector}").val()
}
}
}
}
top.layer.open({
top.layer.open({
...
@@ -50,7 +52,7 @@ $(document).ready(function(){
...
@@ -50,7 +52,7 @@ $(document).ready(function(){
title:"${title}",
title:"${title}",
auto:true,
auto:true,
name:'friend',
name:'friend',
content: "${ctx}/tag/gridselect?url="+encodeURIComponent(
"${url}"
)+"&fieldLabels="+encodeURIComponent("${fieldLabels}")+"&fieldKeys="+encodeURIComponent("${fieldKeys}")+"&searchLabels="+encodeURIComponent("${searchLabels}")+"&searchKeys="+encodeURIComponent("${searchKeys}")+"&isMultiSelected=${isMultiSelected? true:false}",
content: "${ctx}/tag/gridselect?url="+encodeURIComponent(
url
)+"&fieldLabels="+encodeURIComponent("${fieldLabels}")+"&fieldKeys="+encodeURIComponent("${fieldKeys}")+"&searchLabels="+encodeURIComponent("${searchLabels}")+"&searchKeys="+encodeURIComponent("${searchKeys}")+"&isMultiSelected=${isMultiSelected? true:false}",
btn: ['确定', '关闭'],
btn: ['确定', '关闭'],
yes: function(index, layero){
yes: function(index, layero){
var iframeWin = layero.find('iframe')[0].contentWindow; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
var iframeWin = layero.find('iframe')[0].contentWindow; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
...
...
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