Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
test
Project
Project
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
邬友楠
test
Commits
6f816425
Commit
6f816425
authored
May 21, 2020
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、添加/编辑功能的时候通过easy-search来选择菜单url
parent
3e606e98
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
4 deletions
+28
-4
Link.java
...a/com/huigou/uasp/bmp/opm/domain/model/resource/Link.java
+8
-0
LinkController.java
...va/com/huigou/uasp/bmp/opm/controller/LinkController.java
+18
-2
CommonController.java
...rc/main/java/com/huigou/uasp/client/CommonController.java
+1
-1
Function.js
huigou-xt/src/main/webapp/system/opm/permission/Function.js
+1
-1
No files found.
huigou-core-api/src/main/java/com/huigou/uasp/bmp/opm/domain/model/resource/Link.java
View file @
6f816425
...
@@ -13,11 +13,19 @@ import javax.persistence.Table;
...
@@ -13,11 +13,19 @@ import javax.persistence.Table;
@Table
(
name
=
"sa_oplink"
)
@Table
(
name
=
"sa_oplink"
)
@Entity
@Entity
public
class
Link
extends
AbstractEntity
{
public
class
Link
extends
AbstractEntity
{
/**
/**
* 地址
* 地址
*/
*/
private
String
url
;
private
String
url
;
public
Link
()
{
}
public
Link
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getUrl
()
{
public
String
getUrl
()
{
return
url
;
return
url
;
}
}
...
...
huigou-uasp/src/main/java/com/huigou/uasp/bmp/opm/controller/LinkController.java
View file @
6f816425
...
@@ -6,9 +6,14 @@ import com.huigou.uasp.bmp.opm.domain.model.resource.Link;
...
@@ -6,9 +6,14 @@ import com.huigou.uasp.bmp.opm.domain.model.resource.Link;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.client.CommonController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.method.HandlerMethod
;
import
org.springframework.web.servlet.mvc.method.RequestMappingInfo
;
import
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
;
import
java.util.Collections
;
import
java.util.ArrayList
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author yonghuan
* @author yonghuan
...
@@ -17,11 +22,22 @@ import java.util.List;
...
@@ -17,11 +22,22 @@ import java.util.List;
@Controller
@Controller
public
class
LinkController
extends
CommonController
{
public
class
LinkController
extends
CommonController
{
@Autowired
private
RequestMappingHandlerMapping
handlerMapping
;
@Autowired
@Autowired
private
LinkApplication
linkApplication
;
private
LinkApplication
linkApplication
;
public
String
syncLinks
()
{
public
String
syncLinks
()
{
List
<
Link
>
links
=
Collections
.
emptyList
();
List
<
Link
>
links
=
new
ArrayList
<>(
500
);
Map
<
RequestMappingInfo
,
HandlerMethod
>
map
=
handlerMapping
.
getHandlerMethods
();
Iterator
<
Map
.
Entry
<
RequestMappingInfo
,
HandlerMethod
>>
iter
=
map
.
entrySet
().
iterator
();
Map
.
Entry
<
RequestMappingInfo
,
HandlerMethod
>
entry
;
while
(
iter
.
hasNext
())
{
entry
=
iter
.
next
();
String
url
=
entry
.
getKey
().
getPatternsCondition
().
getPatterns
().
iterator
().
next
();
links
.
add
(
new
Link
(
url
));
}
linkApplication
.
syncLinks
(
links
);
linkApplication
.
syncLinks
(
links
);
return
success
();
return
success
();
}
}
...
...
huigou-uasp/src/main/java/com/huigou/uasp/client/CommonController.java
View file @
6f816425
...
@@ -499,7 +499,7 @@ public class CommonController extends ControllerBase {
...
@@ -499,7 +499,7 @@ public class CommonController extends ControllerBase {
* @param variables 参数
* @param variables 参数
* @return
* @return
*/
*/
p
ublic
String
outputAndProcUnitHandlerPDF
(
String
template
,
String
bizId
,
Map
<
String
,
Object
>
variables
)
{
p
rotected
String
outputAndProcUnitHandlerPDF
(
String
template
,
String
bizId
,
Map
<
String
,
Object
>
variables
)
{
ProcUnitHandlerApplication
application
=
SpringBeanFactory
.
getBean
(
this
.
getServletContext
(),
"procUnitHandlerApplication"
,
ProcUnitHandlerApplication
application
=
SpringBeanFactory
.
getBean
(
this
.
getServletContext
(),
"procUnitHandlerApplication"
,
ProcUnitHandlerApplication
.
class
);
ProcUnitHandlerApplication
.
class
);
if
(
application
!=
null
&&
bizId
!=
null
)
{
if
(
application
!=
null
&&
bizId
!=
null
)
{
...
...
huigou-xt/src/main/webapp/system/opm/permission/Function.js
View file @
6f816425
...
@@ -30,7 +30,7 @@ $(function () {
...
@@ -30,7 +30,7 @@ $(function () {
moveHandler
:
moveHandler
,
moveHandler
:
moveHandler
,
buildPermission
:
{
id
:
'buildPermission'
,
text
:
'生成权限'
,
img
:
'fa-cubes'
,
click
:
buildPermission
},
buildPermission
:
{
id
:
'buildPermission'
,
text
:
'生成权限'
,
img
:
'fa-cubes'
,
click
:
buildPermission
},
syncIcons
:
{
id
:
'syncIcons'
,
text
:
'同步图标'
,
img
:
'fa-list-alt'
,
click
:
syncIcons
},
syncIcons
:
{
id
:
'syncIcons'
,
text
:
'同步图标'
,
img
:
'fa-list-alt'
,
click
:
syncIcons
},
syncLinks
:
{
id
:
'syncLinks'
,
text
:
'同步链接'
,
img
:
'fa-
list-alt
'
,
click
:
syncLinks
},
syncLinks
:
{
id
:
'syncLinks'
,
text
:
'同步链接'
,
img
:
'fa-
external-link
'
,
click
:
syncLinks
},
};
};
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
(
toolbarparam
);
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
(
toolbarparam
);
...
...
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