Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
1df7c5c3
Commit
1df7c5c3
authored
Nov 11, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加公共庫
parent
37deba36
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
84 deletions
+74
-84
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
...ui/admin/src/pages/software/materials/MaterialsManage.vue
+5
-2
sample-form-manager-ui/admin/src/pages/software/materials/modal/CommonLib.vue
...ui/admin/src/pages/software/materials/modal/CommonLib.vue
+68
-81
sample-form-manager/src/main/java/com/mortals/xhx/base/framework/aspect/WebLogAspect.java
...a/com/mortals/xhx/base/framework/aspect/WebLogAspect.java
+1
-1
No files found.
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
View file @
1df7c5c3
...
@@ -54,6 +54,7 @@
...
@@ -54,6 +54,7 @@
style
=
"
width: 100%
"
style
=
"
width: 100%
"
max
-
height
=
"
550px
"
max
-
height
=
"
550px
"
highlight
-
current
-
row
highlight
-
current
-
row
reserve
-
selection
:
row
-
key
=
"
(row) => row.id
"
:
row
-
key
=
"
(row) => row.id
"
@
current
-
change
=
"
handleCurrentChange
"
@
current
-
change
=
"
handleCurrentChange
"
>
>
...
@@ -168,6 +169,7 @@
...
@@ -168,6 +169,7 @@
size
=
"
small
"
size
=
"
small
"
v
-
loading
=
"
loadingRight
"
v
-
loading
=
"
loadingRight
"
:
data
=
"
rightTableData
"
:
data
=
"
rightTableData
"
reserve
-
selection
border
border
tooltip
-
effect
=
"
dark
"
tooltip
-
effect
=
"
dark
"
style
=
"
width: 100%
"
style
=
"
width: 100%
"
...
@@ -271,7 +273,7 @@
...
@@ -271,7 +273,7 @@
><
/PreviewMaterials
>
><
/PreviewMaterials
>
<!--
公共库
-->
<!--
公共库
-->
<
CommonLib
:
depList
=
"
dep
List
"
:
libVisible
.
sync
=
"
libVisible
"
><
/CommonLib
>
<
CommonLib
:
matterId
=
"
matterId
"
@
ok
=
"
getMaterials
List
"
:
libVisible
.
sync
=
"
libVisible
"
><
/CommonLib
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -287,7 +289,6 @@ import {
...
@@ -287,7 +289,6 @@ import {
recommendMaterials
,
recommendMaterials
,
}
from
"
@/api/materials
"
;
}
from
"
@/api/materials
"
;
import
local
from
"
@/utils/local
"
;
import
local
from
"
@/utils/local
"
;
import
{
mapGetters
}
from
"
vuex
"
;
export
default
{
export
default
{
components
:
{
components
:
{
TableHeader
,
TableHeader
,
...
@@ -323,6 +324,7 @@ export default {
...
@@ -323,6 +324,7 @@ export default {
activeDep
:
{
}
,
activeDep
:
{
}
,
libVisible
:
false
,
libVisible
:
false
,
depList
:
[],
depList
:
[],
matterId
:
null
,
recommendCount
:
""
,
// 推荐次数
recommendCount
:
""
,
// 推荐次数
}
;
}
;
}
,
}
,
...
@@ -422,6 +424,7 @@ export default {
...
@@ -422,6 +424,7 @@ export default {
this
.
$message
.
warning
(
"
请先选择事项
"
);
this
.
$message
.
warning
(
"
请先选择事项
"
);
return
;
return
;
}
}
this
.
matterId
=
this
.
activeDep
.
id
this
.
libVisible
=
true
;
this
.
libVisible
=
true
;
}
,
}
,
// 右边勾选
// 右边勾选
...
...
sample-form-manager-ui/admin/src/pages/software/materials/modal/CommonLib.vue
View file @
1df7c5c3
<
template
>
<
template
>
<div>
<div>
<el-dialog
title=
"从公共库中选择"
:visible.sync=
"Visible"
width=
"
5
0%"
>
<el-dialog
title=
"从公共库中选择"
:visible.sync=
"Visible"
width=
"
7
0%"
>
<TableHeader>
<TableHeader>
<div
slot=
"right"
class=
"flex"
>
<div
slot=
"right"
class=
"flex"
>
<!--
<el-select
v-model=
"department"
class=
"autoWidth"
size=
"small"
placeholder=
"选择部门"
>
<template
slot=
"prefix"
>
{{
(
deptList
.
find
((
s
)
=>
s
.
id
===
department
)
||
{
}
).
name
}}
<
/template
>
<
el
-
option
v
-
for
=
"
item in deptList
"
:
key
=
"
item.id
"
:
label
=
"
item.name
"
:
value
=
"
item.id
"
>
<
/el-option
>
<
/el-select>--
>
<el-input
<el-input
size
=
"
small
"
size=
"small"
style
=
"
width: 200px
"
style=
"width: 200px"
v
-
model
=
"
searchVal
"
v-model=
"searchVal"
class
=
"
ml10 mr10
"
class=
"ml10 mr10"
placeholder
=
"
请输入事项名称搜索
"
placeholder=
"请输入事项名称搜索"
></el-input>
></el-input>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSarch"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSarch"
>
搜索
<
/el-butto
n
>
搜索
</el-button
>
>
<el-button
size=
"small"
@
click=
"resetSearch"
>
重置
</el-button>
<el-button
size=
"small"
@
click=
"resetSearch"
>
重置
</el-button>
</div>
</div>
</TableHeader>
</TableHeader>
<el-table
<el-table
ref
=
"
multipleTable
"
ref=
"multipleTable"
size
=
"
small
"
size=
"small"
:
data
=
"
tableData
"
:data=
"tableData"
border
reserve-selection
tooltip
-
effect
=
"
dark
"
border
style
=
"
width: 100%
"
tooltip-effect=
"dark"
max
-
height
=
"
500px
"
style=
"width: 100%"
:
row
-
key
=
"
(row) => row.id
"
max-height=
"500px"
@
selection
-
change
=
"
handleSelectionChange
"
:row-key=
"(row) => row.id"
@
selection-change=
"handleSelectionChange"
>
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
type
=
"
index
"
type=
"index"
label
=
"
序号
"
label=
"序号"
width
=
"
55
"
width=
"55"
align
=
"
center
"
align=
"center"
:
index
=
"
(index) => (current - 1) * size + index + 1
"
:index=
"(index) => (current - 1) * size + index + 1"
>
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
show
-
overflow
-
tooltip
show-overflow-tooltip
label
=
"
部门编号
"
label=
"部门编号"
align
=
"
center
"
align=
"center"
prop
=
"
deptCode
"
prop=
"deptCode"
width
=
"
80
"
width=
"80"
>
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"name"
show-overflow-tooltip
label=
"材料名称"
>
<el-table-column
prop=
"name"
show-overflow-tooltip
label=
"材料名称"
>
...
@@ -69,30 +55,30 @@
...
@@ -69,30 +55,30 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop
=
"
createTime
"
prop=
"createTime"
label
=
"
加入时间
"
label=
"加入时间"
align
=
"
center
"
align=
"center"
width
=
"
140
"
width=
"140"
>
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
class=
"pagination"
v-if=
"total"
>
<div
class=
"pagination"
v-if=
"total"
>
<el-pagination
<el-pagination
background
background
layout
=
"
total,sizes,prev,pager,next,jumper
"
layout=
"total,sizes,prev,pager,next,jumper"
:
pager
-
count
=
"
5
"
:pager-count=
"5"
:
total
=
"
total
"
:total=
"total"
:
current
-
page
=
"
current
"
:current-page=
"current"
:
page
-
size
=
"
size
"
:page-size=
"size"
:
page
-
sizes
=
"
pageSizes
"
:page-sizes=
"pageSizes"
@
current
-
change
=
"
changePagination
"
@
current-change=
"changePagination"
@
size
-
change
=
"
changeSize
"
@
size-change=
"changeSize"
>
>
</el-pagination>
</el-pagination>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOk"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleOk"
>
确
定
<
/el-butto
n
>
确 定
</el-button
>
>
<el-button
size=
"small"
@
click=
"Visible = false"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"Visible = false"
>
取 消
</el-button>
</span>
</span>
...
@@ -102,8 +88,10 @@
...
@@ -102,8 +88,10 @@
<
script
>
<
script
>
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
{
getPubdatumList
}
from
"
@/api/libray
"
;
import
{
getPubdatumList
}
from
"
@/api/libray
"
;
import
{
createMatter
}
from
"
@/api/matter
"
;
import
{
addPubdatum
}
from
"
@/api/materials
"
;
import
local
from
"
@/utils/local
"
;
export
default
{
export
default
{
components
:
{
components
:
{
TableHeader
,
TableHeader
,
...
@@ -114,19 +102,21 @@ export default {
...
@@ -114,19 +102,21 @@ export default {
required
:
true
,
required
:
true
,
default
:
false
,
default
:
false
,
},
},
depList
:
{
matterId
:
{
type
:
Array
,
type
:
Number
,
required
:
true
,
required
:
false
,
default
:
()
=>
{
default
:
0
,
return
[];
}
,
},
},
},
},
created
()
{
created
()
{
this
.
getPbuList
();
this
.
getPbuList
();
},
},
data
()
{
data
()
{
return
{
return
{
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
:
""
,
department
:
""
,
department
:
""
,
searchVal
:
""
,
searchVal
:
""
,
tableData
:
[],
tableData
:
[],
...
@@ -134,7 +124,7 @@ export default {
...
@@ -134,7 +124,7 @@ export default {
current
:
1
,
current
:
1
,
total
:
10
,
total
:
10
,
size
:
10
,
size
:
10
,
selectedRowKeys
:
[],
selectedRowKeys
:
[],
};
};
},
},
computed
:
{
computed
:
{
...
@@ -146,7 +136,7 @@ export default {
...
@@ -146,7 +136,7 @@ export default {
this
.
$emit
(
"
update:libVisible
"
,
val
);
this
.
$emit
(
"
update:libVisible
"
,
val
);
},
},
},
},
// ...mapGetters(["deptList"]),
// ...mapGetters(["deptList"]),
},
},
methods
:
{
methods
:
{
// 系统事项列表
// 系统事项列表
...
@@ -155,32 +145,28 @@ export default {
...
@@ -155,32 +145,28 @@ export default {
let
res
=
await
getPubdatumList
({
let
res
=
await
getPubdatumList
({
page
:
this
.
current
,
page
:
this
.
current
,
size
:
this
.
size
,
size
:
this
.
size
,
materialName
:
this
.
searchVal
materialName
:
this
.
searchVal
});
});
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
let
{
data
,
total
}
=
res
.
data
.
data
;
let
{
data
,
total
}
=
res
.
data
.
data
;
this
.
tableData
=
data
;
this
.
tableData
=
data
;
this
.
total
=
total
;
this
.
total
=
total
;
}
}
},
},
async
handleOk
()
{
async
handleOk
()
{
let
res
=
await
addPubdatum
({
ids
:
this
.
selectedRowKeys
.
join
(
"
,
"
),
matterId
:
this
.
matterId
,
siteId
:
this
.
siteId
});
console
.
log
(
"
select
"
,
this
.
selectedRowKeys
)
let
{
code
,
msg
}
=
res
.
data
;
let
res
=
await
addMatter
({
ids
:
this
.
selectedRowKeys
,
siteId
:
this
.
siteId
}
);
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$message
.
success
(
msg
);
this
.
rightSelectedRowKeys
=
[];
this
.
$refs
.
multipleTable
.
clearSelection
()
this
.
$refs
.
rightTable
.
clearSelection
()
;
this
.
Visible
=
false
;
this
.
getWriteMatterList
(
);
this
.
$emit
(
"
ok
"
);
}
}
console
.
log
(
11
);
},
},
handleSarch
()
{
handleSarch
()
{
this
.
current
=
1
this
.
current
=
1
this
.
getPbuList
()
this
.
getPbuList
()
},
},
resetSearch
()
{
resetSearch
()
{
...
@@ -193,8 +179,8 @@ export default {
...
@@ -193,8 +179,8 @@ export default {
this
.
size
=
size
;
this
.
size
=
size
;
},
},
handleSelectionChange
(
select
)
{
handleSelectionChange
(
select
)
{
this
.
selectedRowKeys
=
select
.
map
(
i
=>
i
.
id
);
this
.
selectedRowKeys
=
select
.
map
(
i
=>
i
.
id
);
// console.log(select);
// console.log(select);
},
},
},
},
};
};
...
@@ -206,6 +192,7 @@ export default {
...
@@ -206,6 +192,7 @@ export default {
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
}
}
.full-name {
.full-name {
color: rgb(172, 170, 170);
color: rgb(172, 170, 170);
overflow: hidden;
overflow: hidden;
...
...
sample-form-manager/src/main/java/com/mortals/xhx/base/framework/aspect/WebLogAspect.java
View file @
1df7c5c3
...
@@ -31,7 +31,7 @@ import java.util.Map;
...
@@ -31,7 +31,7 @@ import java.util.Map;
@Component
@Component
@Slf4j
@Slf4j
@Order
(
1
)
@Order
(
1
)
@Profile
({
"default"
,
"develop"
,
"test"
})
@Profile
({
"default"
,
"develop"
,
"test
1
"
})
public
class
WebLogAspect
{
public
class
WebLogAspect
{
@Pointcut
(
"execution(public * com.mortals..*Controller.*(..))"
)
@Pointcut
(
"execution(public * com.mortals..*Controller.*(..))"
)
public
void
webLog
()
{
public
void
webLog
()
{
...
...
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