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
3e606e98
Commit
3e606e98
authored
May 20, 2020
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、添加/编辑功能的时候通过easy-search来选择菜单url(未完待续)
parent
53e5fba1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
459 additions
and
237 deletions
+459
-237
Link.java
...a/com/huigou/uasp/bmp/opm/domain/model/resource/Link.java
+28
-0
LinkRepository.java
...om/huigou/uasp/bmp/opm/repository/org/LinkRepository.java
+10
-0
LinkApplication.java
.../com/huigou/uasp/bmp/opm/application/LinkApplication.java
+11
-0
LinkApplicationImpl.java
...ou/uasp/bmp/opm/application/impl/LinkApplicationImpl.java
+31
-0
LinkController.java
...va/com/huigou/uasp/bmp/opm/controller/LinkController.java
+29
-0
easy-search-sys.xml
...n/resources/config/content/easysearch/easy-search-sys.xml
+25
-2
Function.js
huigou-xt/src/main/webapp/system/opm/permission/Function.js
+323
-234
FunctionDetail.jsp
.../src/main/webapp/system/opm/permission/FunctionDetail.jsp
+2
-1
No files found.
huigou-core-api/src/main/java/com/huigou/uasp/bmp/opm/domain/model/resource/Link.java
0 → 100644
View file @
3e606e98
package
com
.
huigou
.
uasp
.
bmp
.
opm
.
domain
.
model
.
resource
;
import
com.huigou.data.domain.model.AbstractEntity
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
/**
* Spring MVC 请求地址。
*
* @author yonghuan
*/
@Table
(
name
=
"sa_oplink"
)
@Entity
public
class
Link
extends
AbstractEntity
{
/**
* 地址
*/
private
String
url
;
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
}
huigou-core-api/src/main/java/com/huigou/uasp/bmp/opm/repository/org/LinkRepository.java
0 → 100644
View file @
3e606e98
package
com
.
huigou
.
uasp
.
bmp
.
opm
.
repository
.
org
;
import
com.huigou.uasp.bmp.opm.domain.model.resource.Link
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @author yonghuan
*/
public
interface
LinkRepository
extends
JpaRepository
<
Link
,
String
>
{
}
huigou-uasp/src/main/java/com/huigou/uasp/bmp/opm/application/LinkApplication.java
0 → 100644
View file @
3e606e98
package
com
.
huigou
.
uasp
.
bmp
.
opm
.
application
;
import
com.huigou.uasp.bmp.opm.domain.model.resource.Link
;
import
java.util.List
;
public
interface
LinkApplication
{
void
syncLinks
(
List
<
Link
>
links
);
}
huigou-uasp/src/main/java/com/huigou/uasp/bmp/opm/application/impl/LinkApplicationImpl.java
0 → 100644
View file @
3e606e98
package
com
.
huigou
.
uasp
.
bmp
.
opm
.
application
.
impl
;
import
com.huigou.uasp.bmp.opm.application.LinkApplication
;
import
com.huigou.uasp.bmp.opm.domain.model.resource.Link
;
import
com.huigou.uasp.bmp.opm.repository.org.LinkRepository
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
* @author yonghuan
*/
@Service
public
class
LinkApplicationImpl
implements
LinkApplication
{
private
LinkRepository
linkRepository
;
@Autowired
public
void
setLinkRepository
(
LinkRepository
linkRepository
)
{
this
.
linkRepository
=
linkRepository
;
}
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@Override
public
void
syncLinks
(
List
<
Link
>
links
)
{
linkRepository
.
deleteAll
();
linkRepository
.
save
(
links
);
}
}
huigou-uasp/src/main/java/com/huigou/uasp/bmp/opm/controller/LinkController.java
0 → 100644
View file @
3e606e98
package
com
.
huigou
.
uasp
.
bmp
.
opm
.
controller
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.bmp.opm.application.LinkApplication
;
import
com.huigou.uasp.bmp.opm.domain.model.resource.Link
;
import
com.huigou.uasp.client.CommonController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
java.util.Collections
;
import
java.util.List
;
/**
* @author yonghuan
*/
@ControllerMapping
(
"link"
)
@Controller
public
class
LinkController
extends
CommonController
{
@Autowired
private
LinkApplication
linkApplication
;
public
String
syncLinks
()
{
List
<
Link
>
links
=
Collections
.
emptyList
();
linkApplication
.
syncLinks
(
links
);
return
success
();
}
}
huigou-uasp/src/main/resources/config/content/easysearch/easy-search-sys.xml
View file @
3e606e98
...
...
@@ -119,8 +119,8 @@
<condition
column=
"status"
name=
"status"
symbol=
"in"
alias=
"t"
/>
<condition
column=
"is_virtual"
name=
"isVirtual"
symbol=
"in"
alias=
"t"
/>
<condition
column=
"dept_level"
name=
"deptLevel"
symbol=
"="
alias=
"t"
/>
<condition
column=
"full_id"
name=
"orgFullId"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"full_id"
name=
"orgRoot"
symbol=
"like"
alias=
"t"
/>
<condition
column=
"full_id"
name=
"orgFullId"
symbol=
"like"
alias=
"t"
/>
</easy-search>
<easy-search
name=
"orgSelectProxy"
desc=
"代理人选择"
>
...
...
@@ -304,5 +304,28 @@
<field
name=
"权限类型"
code=
"manageName"
width=
"200"
/>
<orderby>
sequence
</orderby>
</easy-search>
<easy-search
name=
"icon"
desc=
"菜单图标"
>
<sql>
select t.id,
t.code,
t.html
from sa_opicon t
where 1=1
</sql>
<field
name=
"图标"
code=
"html"
width=
"50"
/>
<field
name=
"编码"
code=
"code"
width=
"150"
/>
</easy-search>
<easy-search
name=
"link"
desc=
"mvc请求处理地址"
>
<sql>
select t.id,
t.url
from sa_oplink t
where 1=1
</sql>
<field
name=
"地址"
code=
"url"
width=
"300"
/>
</easy-search>
</easy-search-mappings>
huigou-xt/src/main/webapp/system/opm/permission/Function.js
View file @
3e606e98
This diff is collapsed.
Click to expand it.
huigou-xt/src/main/webapp/system/opm/permission/FunctionDetail.jsp
View file @
3e606e98
...
...
@@ -8,7 +8,8 @@
<x:inputC
name=
"name"
required=
"true"
label=
"名称"
maxlength=
"64"
fieldCol=
"10"
/>
<x:inputC
name=
"description"
label=
"描述"
maxlength=
"64"
fieldCol=
"10"
/>
<x:selectC
name=
"nodeKindId"
required=
"true"
list=
"nodeKindList"
label=
"类型"
fieldCol=
"10"
/>
<x:inputC
name=
"url"
label=
"Url"
readonly=
"false"
maxlength=
"128"
fieldCol=
"10"
/>
<x:inputC
name=
"url"
label=
"Url"
readonly=
"false"
maxlength=
"128"
fieldCol=
"10"
wrapper=
"select"
/>
<x:hidden
name=
"urlSelector"
/>
<div
class=
"col-xs-2 col-md-2"
>
<label
class=
"hg-form-label required"
id=
"code_label"
>
图标
:
</label>
</div>
...
...
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