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
Show 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 @@
style
=
"
width: 100%
"
max
-
height
=
"
550px
"
highlight
-
current
-
row
reserve
-
selection
:
row
-
key
=
"
(row) => row.id
"
@
current
-
change
=
"
handleCurrentChange
"
>
...
...
@@ -168,6 +169,7 @@
size
=
"
small
"
v
-
loading
=
"
loadingRight
"
:
data
=
"
rightTableData
"
reserve
-
selection
border
tooltip
-
effect
=
"
dark
"
style
=
"
width: 100%
"
...
...
@@ -271,7 +273,7 @@
><
/PreviewMaterials
>
<!--
公共库
-->
<
CommonLib
:
depList
=
"
dep
List
"
:
libVisible
.
sync
=
"
libVisible
"
><
/CommonLib
>
<
CommonLib
:
matterId
=
"
matterId
"
@
ok
=
"
getMaterials
List
"
:
libVisible
.
sync
=
"
libVisible
"
><
/CommonLib
>
<
/div
>
<
/template
>
...
...
@@ -287,7 +289,6 @@ import {
recommendMaterials
,
}
from
"
@/api/materials
"
;
import
local
from
"
@/utils/local
"
;
import
{
mapGetters
}
from
"
vuex
"
;
export
default
{
components
:
{
TableHeader
,
...
...
@@ -323,6 +324,7 @@ export default {
activeDep
:
{
}
,
libVisible
:
false
,
depList
:
[],
matterId
:
null
,
recommendCount
:
""
,
// 推荐次数
}
;
}
,
...
...
@@ -422,6 +424,7 @@ export default {
this
.
$message
.
warning
(
"
请先选择事项
"
);
return
;
}
this
.
matterId
=
this
.
activeDep
.
id
this
.
libVisible
=
true
;
}
,
// 右边勾选
...
...
sample-form-manager-ui/admin/src/pages/software/materials/modal/CommonLib.vue
View file @
1df7c5c3
<
template
>
<div>
<el-dialog
title=
"从公共库中选择"
:visible.sync=
"Visible"
width=
"
5
0%"
>
<el-dialog
title=
"从公共库中选择"
:visible.sync=
"Visible"
width=
"
7
0%"
>
<TableHeader>
<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
size=
"small"
style=
"width: 200px"
...
...
@@ -28,7 +12,8 @@
placeholder=
"请输入事项名称搜索"
></el-input>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSarch"
>
搜索
<
/el-butto
n
>
搜索
</el-button
>
<el-button
size=
"small"
@
click=
"resetSearch"
>
重置
</el-button>
</div>
...
...
@@ -37,6 +22,7 @@
ref=
"multipleTable"
size=
"small"
:data=
"tableData"
reserve-selection
border
tooltip-effect=
"dark"
style=
"width: 100%"
...
...
@@ -102,8 +88,10 @@
<
script
>
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
{
getPubdatumList
}
from
"
@/api/libray
"
;
import
{
createMatter
}
from
"
@/api/matter
"
;
import
{
getPubdatumList
}
from
"
@/api/libray
"
;
import
{
addPubdatum
}
from
"
@/api/materials
"
;
import
local
from
"
@/utils/local
"
;
export
default
{
components
:
{
TableHeader
,
...
...
@@ -114,19 +102,21 @@ export default {
required
:
true
,
default
:
false
,
},
depList
:
{
type
:
Array
,
required
:
true
,
default
:
()
=>
{
return
[];
}
,
matterId
:
{
type
:
Number
,
required
:
false
,
default
:
0
,
},
},
created
()
{
this
.
getPbuList
();
},
data
()
{
return
{
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
:
""
,
department
:
""
,
searchVal
:
""
,
tableData
:
[],
...
...
@@ -134,7 +124,7 @@ export default {
current
:
1
,
total
:
10
,
size
:
10
,
selectedRowKeys
:
[],
selectedRowKeys
:
[],
};
},
computed
:
{
...
...
@@ -155,32 +145,28 @@ export default {
let
res
=
await
getPubdatumList
({
page
:
this
.
current
,
size
:
this
.
size
,
materialName
:
this
.
searchVal
materialName
:
this
.
searchVal
});
this
.
loading
=
false
;
if
(
res
.
data
.
code
===
1
)
{
let
{
data
,
total
}
=
res
.
data
.
data
;
let
{
data
,
total
}
=
res
.
data
.
data
;
this
.
tableData
=
data
;
this
.
total
=
total
;
}
},
async
handleOk
()
{
console
.
log
(
"
select
"
,
this
.
selectedRowKeys
)
let
res
=
await
addMatter
({
ids
:
this
.
selectedRowKeys
,
siteId
:
this
.
siteId
}
);
let
{
code
,
msg
}
=
res
.
data
;
let
res
=
await
addPubdatum
({
ids
:
this
.
selectedRowKeys
.
join
(
"
,
"
),
matterId
:
this
.
matterId
,
siteId
:
this
.
siteId
});
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
rightSelectedRowKeys
=
[];
this
.
$refs
.
rightTable
.
clearSelection
()
;
this
.
getWriteMatterList
(
);
this
.
$refs
.
multipleTable
.
clearSelection
()
this
.
Visible
=
false
;
this
.
$emit
(
"
ok
"
);
}
console
.
log
(
11
);
},
handleSarch
()
{
this
.
current
=
1
this
.
current
=
1
this
.
getPbuList
()
},
resetSearch
()
{
...
...
@@ -193,7 +179,7 @@ export default {
this
.
size
=
size
;
},
handleSelectionChange
(
select
)
{
this
.
selectedRowKeys
=
select
.
map
(
i
=>
i
.
id
);
this
.
selectedRowKeys
=
select
.
map
(
i
=>
i
.
id
);
// console.log(select);
},
},
...
...
@@ -206,6 +192,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
}
.full-name {
color: rgb(172, 170, 170);
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;
@Component
@Slf4j
@Order
(
1
)
@Profile
({
"default"
,
"develop"
,
"test"
})
@Profile
({
"default"
,
"develop"
,
"test
1
"
})
public
class
WebLogAspect
{
@Pointcut
(
"execution(public * com.mortals..*Controller.*(..))"
)
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