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
4129bcc3
Commit
4129bcc3
authored
2 years ago
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ae720304
20f939e3
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
332 additions
and
207 deletions
+332
-207
sample-form-client-ui/admin/src/components/MateralsList.vue
sample-form-client-ui/admin/src/components/MateralsList.vue
+22
-9
sample-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
...-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
+4
-1
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
...form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
+14
-1
sample-form-client-ui/admin/src/pages/showpage/components/LeftMenus.vue
...ient-ui/admin/src/pages/showpage/components/LeftMenus.vue
+13
-0
sample-form-manager-ui/admin/src/App.vue
sample-form-manager-ui/admin/src/App.vue
+2
-1
sample-form-manager-ui/admin/src/assets/css/common.css
sample-form-manager-ui/admin/src/assets/css/common.css
+8
-2
sample-form-manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
...manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
+13
-7
sample-form-manager-ui/admin/src/pages/layouts/Layouts.vue
sample-form-manager-ui/admin/src/pages/layouts/Layouts.vue
+7
-10
sample-form-manager-ui/admin/src/pages/software/librarymanage/LibraryManage.vue
.../admin/src/pages/software/librarymanage/LibraryManage.vue
+20
-15
sample-form-manager-ui/admin/src/pages/software/librarymanage/modal/PreviewMaterals.vue
...rc/pages/software/librarymanage/modal/PreviewMaterals.vue
+4
-4
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
...ui/admin/src/pages/software/materials/MaterialsManage.vue
+54
-30
sample-form-manager-ui/admin/src/pages/software/materials/modal/AddMaterials.vue
...admin/src/pages/software/materials/modal/AddMaterials.vue
+8
-4
sample-form-manager-ui/admin/src/pages/software/materials/modal/CommonLib.vue
...ui/admin/src/pages/software/materials/modal/CommonLib.vue
+76
-64
sample-form-manager-ui/admin/src/pages/software/materials/modal/PreviewMaterials.vue
...n/src/pages/software/materials/modal/PreviewMaterials.vue
+24
-12
sample-form-manager-ui/admin/src/pages/software/matter/MatterManage.vue
...nager-ui/admin/src/pages/software/matter/MatterManage.vue
+35
-20
sample-form-manager-ui/admin/src/pages/software/matter/modal/AddMatter.vue
...er-ui/admin/src/pages/software/matter/modal/AddMatter.vue
+28
-27
No files found.
sample-form-client-ui/admin/src/components/MateralsList.vue
View file @
4129bcc3
<
template
>
<
template
>
<div>
<div>
<el-drawer
size=
"70%"
:visible.sync=
"drawer"
direction=
"rtl"
>
<el-drawer
size=
"70%"
:visible.sync=
"drawer"
direction=
"rtl"
>
<div
slot=
"title"
class=
"title flex
aic
"
>
<div
slot=
"title"
class=
"title flex"
>
<span
<span
>
材料列表(共
{{
>
材料列表(共
{{
matterInfo
.
matterDatumList
?
matterInfo
.
matterDatumList
.
length
:
0
matterInfo
.
matterDatumList
?
matterInfo
.
matterDatumList
.
length
:
0
}}
个)
</span
}}
个)
</span
>
>
<span
class=
"matter-name"
<span
class=
"matter-name
flex1 flexwrap
"
>
事项名称:
<span
v-html=
"matterInfo.matterName"
></span
>
事项名称:
<span
v-html=
"matterInfo.matterName"
></span
>
>
</span>
</span>
</div>
</div>
<!-- 列表 -->
<!-- 列表 -->
<div
<div
...
@@ -110,14 +110,14 @@ export default {
...
@@ -110,14 +110,14 @@ export default {
color: #333333;
color: #333333;
.matter-name {
.matter-name {
display: inline-block;
display: inline-block;
width: 1000px;
//
width: 1000px;
font-size: 20px;
font-size: 20px;
font-family: Source Han Sans CN;
font-family: Source Han Sans CN;
font-weight: 400
;
line-height: 34px
;
color: #777777;
color: #777777;
overflow: hidden;
//
overflow: hidden;
text-overflow: ellipsis;
//
text-overflow: ellipsis;
white-space: nowrap;
//
white-space: nowrap;
}
}
}
}
.matterDatumList-list {
.matterDatumList-list {
...
@@ -125,6 +125,19 @@ export default {
...
@@ -125,6 +125,19 @@ export default {
height: 100%;
height: 100%;
align-content: flex-start;
align-content: flex-start;
overflow-y: auto;
overflow-y: auto;
&::-webkit-scrollbar {
width: 12px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius: 6px;
background: #fff;
}
.list {
.list {
content: "";
content: "";
width: 19%;
width: 19%;
...
...
This diff is collapsed.
Click to expand it.
sample-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
View file @
4129bcc3
...
@@ -39,7 +39,9 @@
...
@@ -39,7 +39,9 @@
<i
class=
"iconfont icon-dot"
></i>
<i
class=
"iconfont icon-dot"
></i>
<span
<span
class=
"material-name"
class=
"material-name"
:class=
"
{ isMore: index === 2
&&
v.matterDatumList.length > 3 }"
:class=
"
{
isMore: index === 2
&&
matter.matterDatumList.length > 3,
}"
>
>
{{
item
.
materiaFullName
}}
{{
item
.
materiaFullName
}}
</span>
</span>
...
@@ -140,6 +142,7 @@ export default {
...
@@ -140,6 +142,7 @@ export default {
this
.
matterList
=
data
;
this
.
matterList
=
data
;
this
.
matterTotal
=
total
;
this
.
matterTotal
=
total
;
this
.
matterDatumTotal
=
matterDatumTotal
;
this
.
matterDatumTotal
=
matterDatumTotal
;
console
.
log
(
data
);
}
,
}
,
// 搜索
// 搜索
handleSearch
()
{
handleSearch
()
{
...
...
This diff is collapsed.
Click to expand it.
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
View file @
4129bcc3
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
active
:
0
,
active
:
0
,
scale
:
100
,
scale
:
100
,
showSidebar
:
false
,
// 切换侧边弹窗显示
showSidebar
:
false
,
// 切换侧边弹窗显示
width
:
6
00
,
width
:
8
00
,
};
};
},
},
created
()
{
created
()
{
...
@@ -185,6 +185,19 @@ export default {
...
@@ -185,6 +185,19 @@ export default {
width: 100%;
width: 100%;
position: relative;
position: relative;
overflow: auto;
overflow: auto;
&::-webkit-scrollbar {
width: 12px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius: 6px;
background: #fff;
}
.sidebar-box {
.sidebar-box {
width: 360px;
width: 360px;
min-height: 340px;
min-height: 340px;
...
...
This diff is collapsed.
Click to expand it.
sample-form-client-ui/admin/src/pages/showpage/components/LeftMenus.vue
View file @
4129bcc3
...
@@ -57,6 +57,19 @@ export default {
...
@@ -57,6 +57,19 @@ export default {
height: calc(100vh - 110px);
height: calc(100vh - 110px);
padding: 15px 0px;
padding: 15px 0px;
overflow-y: auto;
overflow-y: auto;
&::-webkit-scrollbar {
width: 6px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius: 6px;
background: #fff;
}
}
}
.dept-item {
.dept-item {
text-align: center;
text-align: center;
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/App.vue
View file @
4129bcc3
...
@@ -36,7 +36,8 @@ export default {
...
@@ -36,7 +36,8 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.app {
.app {
width: 100%;
width: 100%;
height: 100%;
min-
height: 100%;
background-color: #f0f2f5;
background-color: #f0f2f5;
display: flex;
}
}
</
style
>
</
style
>
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/assets/css/common.css
View file @
4129bcc3
...
@@ -322,11 +322,14 @@
...
@@ -322,11 +322,14 @@
.el-card
{
.el-card
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
}
.el-card__body
{
.el-card__body
{
height
:
100%
;
width
:
100%
;
width
:
100%
;
flex
:
1
;
padding-bottom
:
10px
!important
;
}
}
.gutter
{
.gutter
{
...
@@ -364,4 +367,7 @@
...
@@ -364,4 +367,7 @@
.autoWidth
.el-input__inner
{
.autoWidth
.el-input__inner
{
padding-left
:
15px
!important
;
padding-left
:
15px
!important
;
position
:
absolute
;
position
:
absolute
;
}
}
\ No newline at end of file
.el-tooltip__popper
{
max-width
:
20%
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/hardware/NumberWriteDevice.vue
View file @
4129bcc3
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
class=
"ml10 mr10"
class=
"ml10 mr10"
placeholder=
"请输入设备名称搜索"
placeholder=
"请输入设备名称搜索"
></el-input>
></el-input>
<el-button
size=
"small"
type=
"primary"
@
click=
"
getDeviceList
"
<el-button
size=
"small"
type=
"primary"
@
click=
"
handleSearch
"
>
搜 索
</el-button
>
搜 索
</el-button
>
>
<el-button
size=
"small"
@
click=
"searchReset"
>
重 置
</el-button>
<el-button
size=
"small"
@
click=
"searchReset"
>
重 置
</el-button>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
size=
"small"
size=
"small"
tooltip-effect=
"dark"
tooltip-effect=
"dark"
style=
"width: 100%"
style=
"width: 100%"
max-height=
"
550
px"
max-height=
"
676
px"
:row-key=
"(row) => row.id"
:row-key=
"(row) => row.id"
>
>
<el-table-column
<el-table-column
...
@@ -59,7 +59,6 @@
...
@@ -59,7 +59,6 @@
label=
"设备名称"
label=
"设备名称"
align=
"center"
align=
"center"
prop=
"deviceName"
prop=
"deviceName"
width=
"200"
>
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"deviceMac"
label=
"mac地址"
>
<el-table-column
align=
"center"
prop=
"deviceMac"
label=
"mac地址"
>
...
@@ -213,9 +212,10 @@ export default {
...
@@ -213,9 +212,10 @@ export default {
size
:
this
.
size
,
size
:
this
.
size
,
deviceName
:
this
.
searchVal
,
deviceName
:
this
.
searchVal
,
}
);
}
);
this
.
loading
=
false
;
let
{
data
}
=
res
.
data
.
data
;
let
{
data
}
=
res
.
data
.
data
;
this
.
tableData
=
data
;
this
.
tableData
=
data
;
this
.
loading
=
false
;
this
.
$refs
.
multipleTable
.
bodyWrapper
.
scrollTop
=
0
;
}
,
}
,
// 新增
// 新增
handleAdd
()
{
handleAdd
()
{
...
@@ -223,10 +223,16 @@ export default {
...
@@ -223,10 +223,16 @@ export default {
this
.
$refs
.
AddDevice
.
onAdd
();
this
.
$refs
.
AddDevice
.
onAdd
();
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
}
,
}
,
// 搜索
handleSearch
()
{
this
.
current
=
1
;
this
.
getDeviceList
();
}
,
// 重置
// 重置
searchReset
()
{
searchReset
()
{
this
.
searchVal
=
""
;
this
.
searchVal
=
""
;
this
.
current
=
1
;
this
.
getDeviceList
();
this
.
getDeviceList
();
}
,
}
,
// 翻页
// 翻页
...
@@ -292,9 +298,9 @@ export default {
...
@@ -292,9 +298,9 @@ export default {
width
:
100
%
;
width
:
100
%
;
height
:
100
%
;
height
:
100
%
;
}
}
.
table
-
content
{
//
.table-content
{
height
:
550
px
;
//
height: 550px;
}
//
}
/deep/
.
tableScopeSwitch
.
el
-
switch__label
{
/deep/
.
tableScopeSwitch
.
el
-
switch__label
{
position
:
absolute
;
position
:
absolute
;
display
:
none
;
display
:
none
;
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/layouts/Layouts.vue
View file @
4129bcc3
<
template
>
<
template
>
<div
class=
"layouts flex flexc aic"
>
<div
class=
"layouts flex flexc aic"
>
<Header></Header>
<Header></Header>
<div
class=
"crumbs"
>
<
!--
<
div
class=
"crumbs"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item
<el-breadcrumb-item
><a
:href=
"portalUrl + '/#/home/dataManagement/dataAdmin'"
><a
:href=
"portalUrl + '/#/home/dataManagement/dataAdmin'"
...
@@ -20,11 +20,10 @@
...
@@ -20,11 +20,10 @@
>
{{
bread
.
title
}}
</el-breadcrumb-item
>
{{
bread
.
title
}}
</el-breadcrumb-item
>
>
</el-breadcrumb>
</el-breadcrumb>
</div>
</div>
-->
<div
class=
"out-box flex1"
>
<div
class=
"out-box flex1"
>
<router-view></router-view>
<router-view></router-view>
</div>
</div>
<div
class=
"footer tac"
>
Copyright
©
2021 ICZER 信宏翔科技有限公司
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -74,6 +73,8 @@ export default {
...
@@ -74,6 +73,8 @@ export default {
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
:
""
,
:
""
,
page
:
1
,
size
:
-
1
,
});
});
let
{
code
,
data
}
=
res
.
data
;
let
{
code
,
data
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
...
@@ -87,22 +88,18 @@ export default {
...
@@ -87,22 +88,18 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.layouts {
.layouts {
width: 100%;
width: 100%;
height: 100%;
height: auto;
padding-bottom: 10px;
.crumbs {
.crumbs {
margin: 10px 0px;
margin: 10px 0px;
width: 98%;
width: 98%;
}
}
.out-box {
.out-box {
width: 98%;
width: 98%;
margin-top: 10px;
border-radius: 4px;
border-radius: 4px;
background-color: #fff;
background-color: #fff;
overflow-y: auto;
overflow-y: auto;
}
}
.footer {
height: 50px;
line-height: 50px;
font-size: 14px;
color: rgba(0, 0, 0, 0.45);
}
}
}
</
style
>
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/librarymanage/LibraryManage.vue
View file @
4129bcc3
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</div>
</div>
<TableHeader>
<TableHeader>
<div
slot=
"left"
>
<div
slot=
"left"
>
<!--
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAddMaterials"
<!--
<el-button
size=
"small"
type=
"primary"
@
click=
"handleAddMaterials"
>
加入材料
</el-button
>
加入材料
</el-button
>
-->
>
-->
<el-button
size=
"small"
type=
"danger"
@
click=
"handleDelAll"
<el-button
size=
"small"
type=
"danger"
@
click=
"handleDelAll"
...
@@ -21,7 +21,9 @@
...
@@ -21,7 +21,9 @@
placeholder=
"选择部门"
placeholder=
"选择部门"
>
>
<template
slot=
"prefix"
>
<template
slot=
"prefix"
>
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
department
)
||
{
}
).
name
}}
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
department
)
||
{
}
).
name
}}
<
/template
>
<
/template
>
<
el
-
option
<
el
-
option
v
-
for
=
"
item in deptList
"
v
-
for
=
"
item in deptList
"
...
@@ -54,7 +56,7 @@
...
@@ -54,7 +56,7 @@
border
border
tooltip
-
effect
=
"
dark
"
tooltip
-
effect
=
"
dark
"
style
=
"
width: 100%
"
style
=
"
width: 100%
"
max
-
height
=
"
550
px
"
max
-
height
=
"
676
px
"
:
row
-
key
=
"
(row) => row.id
"
:
row
-
key
=
"
(row) => row.id
"
@
selection
-
change
=
"
handleSelectionChange
"
@
selection
-
change
=
"
handleSelectionChange
"
>
>
...
@@ -73,7 +75,7 @@
...
@@ -73,7 +75,7 @@
label
=
"
部门名称
"
label
=
"
部门名称
"
align
=
"
center
"
align
=
"
center
"
prop
=
"
deptName
"
prop
=
"
deptName
"
width
=
"
16
0
"
width
=
"
20
0
"
>
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"
name
"
show
-
overflow
-
tooltip
label
=
"
材料名称
"
>
<
el
-
table
-
column
prop
=
"
name
"
show
-
overflow
-
tooltip
label
=
"
材料名称
"
>
...
@@ -119,7 +121,7 @@
...
@@ -119,7 +121,7 @@
<
/div
>
<
/div
>
<
/el-card
>
<
/el-card
>
<!--
添加材料
-->
<!--
添加材料
-->
<!--
<
AddMaterals
<!--
<
AddMaterals
ref
=
"
AddMaterals
"
ref
=
"
AddMaterals
"
:
depList
=
"
depList
"
:
depList
=
"
depList
"
:
libVisible
.
sync
=
"
libVisible
"
:
libVisible
.
sync
=
"
libVisible
"
...
@@ -135,12 +137,12 @@
...
@@ -135,12 +137,12 @@
<
script
>
<
script
>
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
TableHeader
from
"
@/components/TableHeader.vue
"
;
import
PreviewMaterals
from
"
./modal/PreviewMaterals.vue
"
;
import
PreviewMaterals
from
"
./modal/PreviewMaterals.vue
"
;
import
{
getPubdatumList
,
delPubdatum
}
from
"
@/api/libray
"
;
import
{
getPubdatumList
,
delPubdatum
}
from
"
@/api/libray
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
{
mapGetters
}
from
"
vuex
"
;
export
default
{
export
default
{
components
:
{
components
:
{
TableHeader
,
TableHeader
,
PreviewMaterals
PreviewMaterals
,
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -172,7 +174,7 @@ export default {
...
@@ -172,7 +174,7 @@ 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
,
deptCode
:
this
.
department
,
deptCode
:
this
.
department
,
}
);
}
);
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -180,7 +182,7 @@ export default {
...
@@ -180,7 +182,7 @@ export default {
let
{
data
,
total
}
=
res
.
data
.
data
;
let
{
data
,
total
}
=
res
.
data
.
data
;
this
.
tableData
=
data
;
this
.
tableData
=
data
;
this
.
total
=
total
;
this
.
total
=
total
;
this
.
$refs
.
multipleTable
.
bodyWrapper
.
scrollTop
=
0
;
}
}
}
,
}
,
...
@@ -200,13 +202,14 @@ export default {
...
@@ -200,13 +202,14 @@ export default {
}
,
}
,
// 搜索
// 搜索
handleSearch
()
{
handleSearch
()
{
this
.
current
=
1
this
.
current
=
1
;
this
.
getPbuList
()
this
.
getPbuList
()
;
}
,
}
,
// 重置
// 重置
handleReset
()
{
handleReset
()
{
this
.
department
=
""
;
this
.
department
=
""
;
this
.
searchVal
=
""
;
this
.
searchVal
=
""
;
this
.
getPbuList
();
}
,
}
,
// 选中
// 选中
handleSelectionChange
(
select
)
{
handleSelectionChange
(
select
)
{
...
@@ -215,14 +218,16 @@ export default {
...
@@ -215,14 +218,16 @@ export default {
// 翻页
// 翻页
changePagination
(
cur
)
{
changePagination
(
cur
)
{
this
.
current
=
cur
;
this
.
current
=
cur
;
this
.
getPbuList
();
}
,
}
,
// 改变没有显示数量
// 改变没有显示数量
changeSize
(
size
)
{
changeSize
(
size
)
{
this
.
size
=
size
;
this
.
size
=
size
;
this
.
getPbuList
();
}
,
}
,
// 预览
// 预览
handlePreview
(
row
)
{
handlePreview
(
row
)
{
console
.
log
(
"
row
"
,
row
)
this
.
materalsInfo
=
row
;
this
.
materalsInfo
=
row
;
this
.
previewVisible
=
true
;
this
.
previewVisible
=
true
;
}
,
}
,
...
@@ -271,8 +276,8 @@ export default {
...
@@ -271,8 +276,8 @@ export default {
text
-
overflow
:
ellipsis
;
text
-
overflow
:
ellipsis
;
white
-
space
:
nowrap
;
white
-
space
:
nowrap
;
}
}
.
table
-
content
{
//
.table-content
{
height
:
550
px
;
//
height: 550px;
}
//
}
}
}
<
/style>
<
/style>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/librarymanage/modal/PreviewMaterals.vue
View file @
4129bcc3
...
@@ -4,13 +4,14 @@
...
@@ -4,13 +4,14 @@
<div
class=
"main flex flexc aic"
>
<div
class=
"main flex flexc aic"
>
<div
class=
"header tac mb20"
>
<div
class=
"header tac mb20"
>
<div
class=
"materals-name mb10"
>
{{
materialsInfo
.
materialName
}}
</div>
<div
class=
"materals-name mb10"
>
{{
materialsInfo
.
materialName
}}
</div>
<p
class=
"abbreviation"
>
材料全称:
{{
materialsInfo
.
materiaFullName
}}
</p>
<p
class=
"abbreviation"
>
材料全称:
{{
materialsInfo
.
materiaFullName
}}
</p>
</div>
</div>
<div
class=
"preview-box"
>
<div
class=
"preview-box"
>
<img
class=
"sample-sheet-img"
:src=
"api + materialsPreview"
/>
<img
class=
"sample-sheet-img"
:src=
"api + materialsPreview"
/>
</div>
</div>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -46,7 +47,7 @@ export default {
...
@@ -46,7 +47,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
api
:
process
.
env
.
VUE_APP_API_BASE_URL
,
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
val
:
""
,
val
:
""
,
};
};
},
},
...
@@ -87,7 +88,6 @@ export default {
...
@@ -87,7 +88,6 @@ export default {
// box-shadow: 2px 2px 8px 8px #ccc;
// box-shadow: 2px 2px 8px 8px #ccc;
.sample-sheet-img {
.sample-sheet-img {
width: 100%;
width: 100%;
object-fit: contain;
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/materials/MaterialsManage.vue
View file @
4129bcc3
...
@@ -19,7 +19,10 @@
...
@@ -19,7 +19,10 @@
class=
"autoWidth"
class=
"autoWidth"
>
>
<template
slot=
"prefix"
>
<template
slot=
"prefix"
>
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentLeft
)
||
{
}
).
name
}}
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentLeft
)
||
{
}
)
.
name
}}
<
/template
>
<
/template
>
<
el
-
option
<
el
-
option
v
-
for
=
"
item in deptList
"
v
-
for
=
"
item in deptList
"
...
@@ -36,7 +39,7 @@
...
@@ -36,7 +39,7 @@
class
=
"
ml10 mr10
"
class
=
"
ml10 mr10
"
placeholder
=
"
请输入事项名称搜索
"
placeholder
=
"
请输入事项名称搜索
"
><
/el-input
>
><
/el-input
>
<
el
-
button
size
=
"
small
"
type
=
"
primary
"
@
click
=
"
getWriteMatterLis
t
"
<
el
-
button
size
=
"
small
"
type
=
"
primary
"
@
click
=
"
handleSearchLef
t
"
>
搜索
<
/el-butto
n
>
搜索
<
/el-butto
n
>
>
<
el
-
button
size
=
"
small
"
@
click
=
"
leftReset
"
>
重置
<
/el-button
>
<
el
-
button
size
=
"
small
"
@
click
=
"
leftReset
"
>
重置
<
/el-button
>
...
@@ -46,13 +49,13 @@
...
@@ -46,13 +49,13 @@
<
div
class
=
"
table-content
"
>
<
div
class
=
"
table-content
"
>
<
div
@
click
.
stop
>
<
div
@
click
.
stop
>
<
el
-
table
<
el
-
table
ref
=
"
single
Table
"
ref
=
"
left
Table
"
v
-
loading
=
"
loadingLeft
"
v
-
loading
=
"
loadingLeft
"
:
data
=
"
LeftTableData
"
:
data
=
"
LeftTableData
"
size
=
"
small
"
size
=
"
small
"
tooltip
-
effect
=
"
dark
"
tooltip
-
effect
=
"
dark
"
style
=
"
width: 100%
"
style
=
"
width: 100%
"
max
-
height
=
"
550
px
"
max
-
height
=
"
676
px
"
highlight
-
current
-
row
highlight
-
current
-
row
reserve
-
selection
reserve
-
selection
:
row
-
key
=
"
(row) => row.id
"
:
row
-
key
=
"
(row) => row.id
"
...
@@ -78,12 +81,12 @@
...
@@ -78,12 +81,12 @@
show
-
overflow
-
tooltip
show
-
overflow
-
tooltip
label
=
"
事项名称
"
label
=
"
事项名称
"
>
>
<!--
<
template
slot
-
scope
=
"
scope
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
p
class
=
"
short
"
>
{{
scope
.
row
.
matterName
}}
<
/p
>
<
p
class
=
"
short
"
>
{{
scope
.
row
.
matterName
}}
<
/p
>
<
p
class
=
"
full-name
"
>
<
p
class
=
"
full-name
"
>
事项全称:
{{
scope
.
row
.
matterFullName
}}
事项全称:
{{
scope
.
row
.
matterFullName
}}
<
/p
>
<
/p
>
<
/template>
--
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
prop
=
"
datumCount
"
prop
=
"
datumCount
"
...
@@ -138,7 +141,8 @@
...
@@ -138,7 +141,8 @@
>
>
<
template
slot
=
"
prefix
"
>
<
template
slot
=
"
prefix
"
>
{{
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentRight
)
||
{
}
).
name
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentRight
)
||
{
}
)
.
name
}}
}}
<
/template
>
<
/template
>
<
el
-
option
<
el
-
option
...
@@ -156,7 +160,7 @@
...
@@ -156,7 +160,7 @@
class
=
"
ml10 mr10
"
class
=
"
ml10 mr10
"
placeholder
=
"
请输入材料名称搜索
"
placeholder
=
"
请输入材料名称搜索
"
><
/el-input
>
><
/el-input
>
<
el
-
button
size
=
"
small
"
type
=
"
primary
"
@
click
=
"
getMaterialsLis
t
"
<
el
-
button
size
=
"
small
"
type
=
"
primary
"
@
click
=
"
handleSearchRigh
t
"
>
搜索
<
/el-butto
n
>
搜索
<
/el-butto
n
>
>
<
el
-
button
size
=
"
small
"
@
click
=
"
rightReset
"
>
重置
<
/el-button
>
<
el
-
button
size
=
"
small
"
@
click
=
"
rightReset
"
>
重置
<
/el-button
>
...
@@ -165,7 +169,7 @@
...
@@ -165,7 +169,7 @@
<!--
表格
-->
<!--
表格
-->
<
div
class
=
"
table-content
"
>
<
div
class
=
"
table-content
"
>
<
el
-
table
<
el
-
table
ref
=
"
multiple
Table
"
ref
=
"
right
Table
"
size
=
"
small
"
size
=
"
small
"
v
-
loading
=
"
loadingRight
"
v
-
loading
=
"
loadingRight
"
:
data
=
"
rightTableData
"
:
data
=
"
rightTableData
"
...
@@ -173,7 +177,7 @@
...
@@ -173,7 +177,7 @@
border
border
tooltip
-
effect
=
"
dark
"
tooltip
-
effect
=
"
dark
"
style
=
"
width: 100%
"
style
=
"
width: 100%
"
max
-
height
=
"
550
px
"
max
-
height
=
"
676
px
"
:
row
-
key
=
"
(row) => row.id
"
:
row
-
key
=
"
(row) => row.id
"
@
selection
-
change
=
"
handleSelectionChangeRight
"
@
selection
-
change
=
"
handleSelectionChangeRight
"
>
>
...
@@ -222,8 +226,7 @@
...
@@ -222,8 +226,7 @@
<
span
<
span
@
click
=
"
handleRecommend(scope.row.id)
"
@
click
=
"
handleRecommend(scope.row.id)
"
v
-
else
v
-
else
class
=
"
pointer
"
class
=
"
pointer primary
"
:
class
=
"
{ primary: recommendCount < 5
}
"
>
推荐
<
/spa
n
>
推荐
<
/spa
n
>
>
<
/div
>
<
/div
>
...
@@ -264,7 +267,7 @@
...
@@ -264,7 +267,7 @@
ref
=
"
AddMaterials
"
ref
=
"
AddMaterials
"
:
addMaterialsVisible
.
sync
=
"
addMaterialsVisible
"
:
addMaterialsVisible
.
sync
=
"
addMaterialsVisible
"
:
title
=
"
title
"
:
title
=
"
title
"
@
addSuccess
=
"
getMaterialsList
"
@
addSuccess
=
"
addSuccess
"
><
/AddMaterials
>
><
/AddMaterials
>
<!--
预览材料
-->
<!--
预览材料
-->
<
PreviewMaterials
<
PreviewMaterials
...
@@ -273,7 +276,12 @@
...
@@ -273,7 +276,12 @@
><
/PreviewMaterials
>
><
/PreviewMaterials
>
<!--
公共库
-->
<!--
公共库
-->
<
CommonLib
:
matterId
=
"
matterId
"
@
ok
=
"
getMaterialsList
"
:
libVisible
.
sync
=
"
libVisible
"
><
/CommonLib
>
<
CommonLib
ref
=
"
CommonLib
"
:
matterId
=
"
activeDep.id
"
@
ok
=
"
addSuccess
"
:
libVisible
.
sync
=
"
libVisible
"
><
/CommonLib
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -325,7 +333,7 @@ export default {
...
@@ -325,7 +333,7 @@ export default {
activeDep
:
{
}
,
activeDep
:
{
}
,
libVisible
:
false
,
libVisible
:
false
,
depList
:
[],
depList
:
[],
matterId
:
null
,
matterId
:
null
,
recommendCount
:
""
,
// 推荐次数
recommendCount
:
""
,
// 推荐次数
}
;
}
;
}
,
}
,
...
@@ -347,11 +355,12 @@ export default {
...
@@ -347,11 +355,12 @@ export default {
deptCode
:
this
.
departmentLeft
,
deptCode
:
this
.
departmentLeft
,
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
}
);
}
);
this
.
loadingLeft
=
false
;
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
let
{
data
,
total
}
=
res
.
data
.
data
;
let
{
data
,
total
}
=
res
.
data
.
data
;
this
.
LeftTableData
=
data
;
this
.
LeftTableData
=
data
;
this
.
leftTotal
=
total
;
this
.
leftTotal
=
total
;
this
.
loadingLeft
=
false
;
this
.
$refs
.
leftTable
.
bodyWrapper
.
scrollTop
=
0
;
}
}
}
,
}
,
...
@@ -366,6 +375,7 @@ export default {
...
@@ -366,6 +375,7 @@ export default {
deptCode
:
this
.
departmentRight
,
deptCode
:
this
.
departmentRight
,
siteId
:
parseInt
(
this
.
siteId
),
siteId
:
parseInt
(
this
.
siteId
),
}
);
}
);
this
.
loadingRight
=
false
;
let
{
data
,
total
,
recommendCount
}
=
res
.
data
.
data
;
let
{
data
,
total
,
recommendCount
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
rightCurrent
>
1
)
{
if
(
!
data
.
length
&&
this
.
rightCurrent
>
1
)
{
this
.
rightCurrent
-=
1
;
this
.
rightCurrent
-=
1
;
...
@@ -374,30 +384,34 @@ export default {
...
@@ -374,30 +384,34 @@ export default {
this
.
rightTotal
=
total
;
this
.
rightTotal
=
total
;
this
.
rightTableData
=
data
;
this
.
rightTableData
=
data
;
this
.
recommendCount
=
recommendCount
;
this
.
recommendCount
=
recommendCount
;
console
.
log
(
data
);
this
.
$refs
.
rightTable
.
bodyWrapper
.
scrollTop
=
0
;
this
.
loadingRight
=
false
;
}
,
// 左边搜索
handleSearchLeft
()
{
this
.
leftCurrent
=
1
;
this
.
getWriteMatterList
();
}
,
}
,
// 左边重置
// 左边重置
leftReset
()
{
leftReset
()
{
this
.
departmentLeft
=
""
;
this
.
departmentLeft
=
""
;
this
.
leftSearch
=
""
;
this
.
leftSearch
=
""
;
this
.
leftCurrent
=
1
;
this
.
getWriteMatterList
();
this
.
getWriteMatterList
();
}
,
}
,
// 左边选择表格行
// 左边选择表格行
handleCurrentChange
(
currentRow
)
{
handleCurrentChange
(
currentRow
)
{
this
.
activeDep
=
currentRow
;
if
(
currentRow
)
{
this
.
getMaterialsList
();
this
.
activeDep
=
currentRow
;
this
.
getMaterialsList
();
}
}
,
}
,
// 取消材料全选
// 取消材料全选
setCurrent
()
{
setCurrent
()
{
this
.
$refs
.
single
Table
.
setCurrentRow
();
this
.
$refs
.
left
Table
.
setCurrentRow
();
this
.
activeDep
=
{
}
;
this
.
activeDep
=
{
}
;
this
.
getMaterialsList
();
this
.
getMaterialsList
();
}
,
}
,
// 左边翻页
// 左边翻页
leftChangePagination
(
cur
)
{
leftChangePagination
(
cur
)
{
this
.
leftCurrent
=
cur
;
this
.
leftCurrent
=
cur
;
...
@@ -425,7 +439,7 @@ export default {
...
@@ -425,7 +439,7 @@ export default {
this
.
$message
.
warning
(
"
请先选择事项
"
);
this
.
$message
.
warning
(
"
请先选择事项
"
);
return
;
return
;
}
}
this
.
matterId
=
this
.
activeDep
.
id
this
.
$refs
.
CommonLib
.
getPbuList
();
this
.
libVisible
=
true
;
this
.
libVisible
=
true
;
}
,
}
,
// 右边勾选
// 右边勾选
...
@@ -441,16 +455,21 @@ export default {
...
@@ -441,16 +455,21 @@ export default {
let
ids
=
this
.
rightSelectedRowKeys
.
map
((
v
)
=>
v
.
id
).
join
(
"
,
"
);
let
ids
=
this
.
rightSelectedRowKeys
.
map
((
v
)
=>
v
.
id
).
join
(
"
,
"
);
this
.
handleDel
(
ids
);
this
.
handleDel
(
ids
);
}
,
}
,
// 右边搜索
handleSearchRight
()
{
this
.
rightCurrent
=
1
;
this
.
getMaterialsList
();
}
,
// 右边重置
// 右边重置
rightReset
()
{
rightReset
()
{
this
.
departmentRight
=
""
;
this
.
departmentRight
=
""
;
this
.
rightSearch
=
""
;
this
.
rightSearch
=
""
;
this
.
rightCurrent
=
1
;
this
.
getMaterialsList
();
this
.
getMaterialsList
();
}
,
}
,
// 推荐
// 推荐
async
handleRecommend
(
id
)
{
async
handleRecommend
(
id
)
{
let
res
=
await
recommendMaterials
({
id
:
id
,
siteId
:
this
.
siteId
}
);
let
res
=
await
recommendMaterials
({
id
:
id
,
siteId
:
this
.
siteId
}
);
let
{
code
,
msg
}
=
res
.
data
;
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$message
.
success
(
msg
);
...
@@ -499,6 +518,11 @@ export default {
...
@@ -499,6 +518,11 @@ export default {
this
.
rightSize
=
size
;
this
.
rightSize
=
size
;
this
.
getMaterialsList
();
this
.
getMaterialsList
();
}
,
}
,
// 新增材料成功
addSuccess
()
{
this
.
getWriteMatterList
();
this
.
getMaterialsList
();
}
,
}
,
}
,
}
;
}
;
<
/script
>
<
/script
>
...
@@ -518,9 +542,9 @@ export default {
...
@@ -518,9 +542,9 @@ export default {
text
-
overflow
:
ellipsis
;
text
-
overflow
:
ellipsis
;
white
-
space
:
nowrap
;
white
-
space
:
nowrap
;
}
}
.
table
-
content
{
//
.table-content
{
height
:
550
px
;
//
height: 550px;
}
//
}
}
}
/deep/
.
current
-
row
td
:
first
-
child
{
/deep/
.
current
-
row
td
:
first
-
child
{
border
-
left
:
3
px
solid
#
1890
ff
;
border
-
left
:
3
px
solid
#
1890
ff
;
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/materials/modal/AddMaterials.vue
View file @
4129bcc3
...
@@ -79,9 +79,10 @@
...
@@ -79,9 +79,10 @@
:on-success=
"OnsuccessSamplePath"
:on-success=
"OnsuccessSamplePath"
:headers=
"headers"
:headers=
"headers"
:before-upload=
"beforeUpload"
:before-upload=
"beforeUpload"
accept=
"application/
msword,application/
vnd.openxmlformats-officedocument.wordprocessingml.document"
accept=
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
>
>
<el-button
size=
"small"
type=
"primary"
>
上传Word文件
</el-button>
<el-button
size=
"small"
type=
"primary"
>
上传Word文件
</el-button>
<span
class=
"tips"
>
提示:请上传.docx格式
</span>
</el-upload>
</el-upload>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -124,8 +125,8 @@ export default {
...
@@ -124,8 +125,8 @@ export default {
source
:
1
,
// 来源
source
:
1
,
// 来源
matterId
:
""
,
// 事项id
matterId
:
""
,
// 事项id
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
:
""
,
:
""
,
matterNo
:
""
,
// 事项编号
matterNo
:
""
,
// 事项编号
fileName
:
""
,
// 附件名称
fileName
:
""
,
// 附件名称
fileUrl
:
""
,
// 附件地址
fileUrl
:
""
,
// 附件地址
...
@@ -282,7 +283,10 @@ export default {
...
@@ -282,7 +283,10 @@ export default {
/deep/.el-select {
/deep/.el-select {
width: 100%;
width: 100%;
}
}
.tips {
margin-left: 10px;
color: #ccc;
}
/deep/.tableScopeSwitch .el-switch__label {
/deep/.tableScopeSwitch .el-switch__label {
position: absolute;
position: absolute;
display: none;
display: none;
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/materials/modal/CommonLib.vue
View file @
4129bcc3
...
@@ -3,49 +3,48 @@
...
@@ -3,49 +3,48 @@
<el-dialog
title=
"从公共库中选择"
:visible.sync=
"Visible"
width=
"70%"
>
<el-dialog
title=
"从公共库中选择"
:visible.sync=
"Visible"
width=
"70%"
>
<TableHeader>
<TableHeader>
<div
slot=
"right"
class=
"flex"
>
<div
slot=
"right"
class=
"flex"
>
<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-button
</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"
v-loading=
"loading"
:data=
"tableData"
size=
"small"
reserve-selection
: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=
"deptName"
prop=
"deptName"
width=
"8
0"
width=
"30
0"
>
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"name"
show-overflow-tooltip
label=
"材料名称"
>
<el-table-column
prop=
"name"
show-overflow-tooltip
label=
"材料名称"
>
...
@@ -55,30 +54,34 @@
...
@@ -55,30 +54,34 @@
</
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
>
确 定
</el-button
:loading=
"loading"
size=
"small"
type=
"primary"
@
click=
"handleOk"
>
确 定
</el-button
>
>
<el-button
size=
"small"
@
click=
"Visible = false"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"Visible = false"
>
取 消
</el-button>
</span>
</span>
...
@@ -88,8 +91,8 @@
...
@@ -88,8 +91,8 @@
<
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
{
addPubdatum
}
from
"
@/api/materials
"
;
import
{
addPubdatum
}
from
"
@/api/materials
"
;
import
local
from
"
@/utils/local
"
;
import
local
from
"
@/utils/local
"
;
import
{
mapGetters
}
from
"
vuex
"
;
import
{
mapGetters
}
from
"
vuex
"
;
...
@@ -104,20 +107,16 @@ export default {
...
@@ -104,20 +107,16 @@ export default {
default
:
false
,
default
:
false
,
},
},
matterId
:
{
matterId
:
{
type
:
Number
,
required
:
false
,
required
:
false
,
default
:
0
,
default
:
0
,
},
},
},
created
()
{
this
.
getPbuList
();
},
},
created
()
{},
data
()
{
data
()
{
return
{
return
{
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
siteId
:
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
?
local
.
getLocal
(
"
sampleSiteId
"
)
:
""
,
:
""
,
department
:
""
,
department
:
""
,
searchVal
:
""
,
searchVal
:
""
,
tableData
:
[],
tableData
:
[],
...
@@ -126,6 +125,8 @@ export default {
...
@@ -126,6 +125,8 @@ export default {
total
:
10
,
total
:
10
,
size
:
10
,
size
:
10
,
selectedRowKeys
:
[],
selectedRowKeys
:
[],
loading
:
false
,
addLoading
:
false
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -137,50 +138,61 @@ export default {
...
@@ -137,50 +138,61 @@ export default {
this
.
$emit
(
"
update:libVisible
"
,
val
);
this
.
$emit
(
"
update:libVisible
"
,
val
);
},
},
},
},
...
mapGetters
([
"
deptList
"
]),
...
mapGetters
([
"
deptList
"
]),
},
},
methods
:
{
methods
:
{
//
系统事项
列表
//
公共库材料
列表
async
getPbuList
()
{
async
getPbuList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
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
;
this
.
$refs
.
multipleTable
.
bodyWrapper
.
scrollTop
=
0
;
}
}
},
},
async
handleOk
()
{
async
handleOk
()
{
let
res
=
await
addPubdatum
({
ids
:
this
.
selectedRowKeys
.
join
(
"
,
"
),
matterId
:
this
.
matterId
,
siteId
:
this
.
siteId
});
this
.
addLoading
=
true
;
let
{
code
,
msg
}
=
res
.
data
;
let
res
=
await
addPubdatum
({
ids
:
this
.
selectedRowKeys
.
join
(
"
,
"
),
matterId
:
this
.
matterId
,
siteId
:
this
.
siteId
,
});
let
{
code
,
msg
}
=
res
.
data
;
this
.
addLoading
=
false
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$message
.
success
(
msg
);
this
.
$refs
.
multipleTable
.
clearSelection
()
this
.
$refs
.
multipleTable
.
clearSelection
()
;
this
.
Visible
=
false
;
this
.
Visible
=
false
;
this
.
$emit
(
"
ok
"
);
this
.
$emit
(
"
ok
"
);
}
}
},
},
handleSarch
()
{
handleSarch
()
{
this
.
current
=
1
this
.
current
=
1
;
this
.
getPbuList
()
this
.
getPbuList
()
;
},
},
resetSearch
()
{
resetSearch
()
{
this
.
current
=
1
;
this
.
searchVal
=
""
;
this
.
searchVal
=
""
;
this
.
getPbuList
();
},
},
changePagination
(
cur
)
{
changePagination
(
cur
)
{
this
.
current
=
cur
;
this
.
current
=
cur
;
this
.
getPbuList
();
},
},
changeSize
(
size
)
{
changeSize
(
size
)
{
this
.
size
=
size
;
this
.
size
=
size
;
this
.
getPbuList
();
},
},
handleSelectionChange
(
select
)
{
handleSelectionChange
(
select
)
{
this
.
selectedRowKeys
=
select
.
map
(
i
=>
i
.
id
);
this
.
selectedRowKeys
=
select
.
map
(
(
i
)
=>
i
.
id
);
// console.log(select);
// console.log(select);
},
},
},
},
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/materials/modal/PreviewMaterials.vue
View file @
4129bcc3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-drawer
<el-drawer
title=
"材料预览"
title=
"材料预览"
:visible.sync=
"Visible"
:visible.sync=
"Visible"
size=
"
6
0%"
size=
"
5
0%"
@
close=
"handleClose"
@
close=
"handleClose"
>
>
<div
class=
"main flex"
>
<div
class=
"main flex"
>
...
@@ -19,13 +19,13 @@
...
@@ -19,13 +19,13 @@
<img
class=
"sample-sheet-img"
:src=
"api + materialsPreview"
/>
<img
class=
"sample-sheet-img"
:src=
"api + materialsPreview"
/>
</div>
</div>
</div>
</div>
<!--
<div
class=
"right"
>
-->
<!--
<div
class=
"right"
>
-->
<!--
<formBuilder-->
<!--
<formBuilder-->
<!-- ref="formBuilder"-->
<!-- ref="formBuilder"-->
<!-- :buildData="materialsJsonList"-->
<!-- :buildData="materialsJsonList"-->
<!-- v-model="val"-->
<!-- v-model="val"-->
<!-- >
</formBuilder>
-->
<!-- >
</formBuilder>
-->
<!--
</div>
-->
<!--
</div>
-->
</div>
</div>
</el-drawer>
</el-drawer>
</div>
</div>
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
api
:
process
.
env
.
VUE_APP_API_BASE_URL
,
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
val
:
""
,
val
:
""
,
};
};
},
},
...
@@ -108,10 +108,24 @@ export default {
...
@@ -108,10 +108,24 @@ export default {
height: 100%;
height: 100%;
}
}
.left {
.left {
width:
5
0%;
width:
10
0%;
height: 100%;
height: 100%;
background-color: #e8e8e8;
background-color: #e8e8e8;
overflow-y: auto;
overflow-y: auto;
&::-webkit-scrollbar {
width: 10px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius: 6px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius: 6px;
background: #fff;
}
.left-header {
.left-header {
height: 80px;
height: 80px;
...
@@ -130,8 +144,6 @@ export default {
...
@@ -130,8 +144,6 @@ export default {
}
}
.sample-sheet-img {
.sample-sheet-img {
width: 100%;
width: 100%;
height: 100%;
object-fit: contain;
}
}
}
}
.right {
.right {
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/matter/MatterManage.vue
View file @
4129bcc3
...
@@ -23,7 +23,10 @@
...
@@ -23,7 +23,10 @@
class=
"autoWidth"
class=
"autoWidth"
>
>
<template
slot=
"prefix"
>
<template
slot=
"prefix"
>
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentLeft
)
||
{
}
).
name
}}
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentLeft
)
||
{
}
)
.
name
}}
<
/template
>
<
/template
>
<
el
-
option
<
el
-
option
v
-
for
=
"
item in deptList
"
v
-
for
=
"
item in deptList
"
...
@@ -55,10 +58,10 @@
...
@@ -55,10 +58,10 @@
v
-
loading
=
"
loadingLeft
"
v
-
loading
=
"
loadingLeft
"
tooltip
-
effect
=
"
dark
"
tooltip
-
effect
=
"
dark
"
style
=
"
width: 100%
"
style
=
"
width: 100%
"
max
-
height
=
"
550
px
"
max
-
height
=
"
676
px
"
:
row
-
key
=
"
(row) => row.id
"
:
row
-
key
=
"
(row) => row.id
"
@
selection
-
change
=
"
handleSelectionChange
"
@
selection
-
change
=
"
handleSelectionChange
"
ref
=
"
righ
tTable
"
ref
=
"
lef
tTable
"
>
>
<
el
-
table
-
column
type
=
"
selection
"
width
=
"
55
"
align
=
"
center
"
>
<
el
-
table
-
column
type
=
"
selection
"
width
=
"
55
"
align
=
"
center
"
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -77,13 +80,17 @@
...
@@ -77,13 +80,17 @@
prop
=
"
deptName
"
prop
=
"
deptName
"
>
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"
matterName
"
show
-
overflow
-
tooltip
label
=
"
事项名称
"
>
<
el
-
table
-
column
<!--
<
template
slot
-
scope
=
"
scope
"
>
prop
=
"
matterName
"
show
-
overflow
-
tooltip
label
=
"
事项名称
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
p
class
=
"
short
"
>
{{
scope
.
row
.
matterName
}}
<
/p
>
<
p
class
=
"
short
"
>
{{
scope
.
row
.
matterName
}}
<
/p
>
<
p
class
=
"
full-name
"
>
<
p
class
=
"
full-name
"
>
事项全称:
{{
scope
.
row
.
matterFullName
}}
事项全称:
{{
scope
.
row
.
matterFullName
}}
<
/p
>
<
/p
>
<
/template>
--
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
prop
=
"
tid
"
prop
=
"
tid
"
...
@@ -115,8 +122,7 @@
...
@@ -115,8 +122,7 @@
<
span
<
span
@
click
=
"
handleRecommend(scope.row.id)
"
@
click
=
"
handleRecommend(scope.row.id)
"
v
-
else
v
-
else
class
=
"
pointer
"
class
=
"
pointer primary
"
:
class
=
"
{ primary: recommendCount < 5
}
"
>
推荐
<
/spa
n
>
推荐
<
/spa
n
>
>
<
/div
>
<
/div
>
...
@@ -161,7 +167,7 @@
...
@@ -161,7 +167,7 @@
>
>
<
/div
>
<
/div
>
<
div
slot
=
"
right
"
class
=
"
flex
"
>
<
div
slot
=
"
right
"
class
=
"
flex
"
>
<
el
-
select
<
el
-
select
v
-
model
=
"
departmentRight
"
v
-
model
=
"
departmentRight
"
size
=
"
small
"
size
=
"
small
"
placeholder
=
"
选择部门
"
placeholder
=
"
选择部门
"
...
@@ -169,7 +175,8 @@
...
@@ -169,7 +175,8 @@
>
>
<
template
slot
=
"
prefix
"
>
<
template
slot
=
"
prefix
"
>
{{
{{
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentRight
)
||
{
}
).
name
(
deptList
.
find
((
v
)
=>
v
.
deptNumber
===
departmentRight
)
||
{
}
)
.
name
}}
}}
<
/template
>
<
/template
>
<
el
-
option
<
el
-
option
...
@@ -187,7 +194,7 @@
...
@@ -187,7 +194,7 @@
class
=
"
ml10 mr10
"
class
=
"
ml10 mr10
"
placeholder
=
"
请输入事项名称搜索
"
placeholder
=
"
请输入事项名称搜索
"
><
/el-input
>
><
/el-input
>
<
el
-
button
size
=
"
small
"
type
=
"
primary
"
@
click
=
"
getMatterLis
t
"
<
el
-
button
size
=
"
small
"
type
=
"
primary
"
@
click
=
"
handleSearchRigh
t
"
>
搜索
<
/el-butto
n
>
搜索
<
/el-butto
n
>
>
<
el
-
button
size
=
"
small
"
@
click
=
"
rightReset
"
>
重置
<
/el-button
>
<
el
-
button
size
=
"
small
"
@
click
=
"
rightReset
"
>
重置
<
/el-button
>
...
@@ -197,12 +204,13 @@
...
@@ -197,12 +204,13 @@
<
div
class
=
"
table-content
"
>
<
div
class
=
"
table-content
"
>
<
el
-
table
<
el
-
table
size
=
"
small
"
size
=
"
small
"
ref
=
"
rightTable
"
:
data
=
"
rightTableData
"
:
data
=
"
rightTableData
"
border
border
v
-
loading
=
"
loadingRight
"
v
-
loading
=
"
loadingRight
"
tooltip
-
effect
=
"
dark
"
tooltip
-
effect
=
"
dark
"
style
=
"
width: 100%
"
style
=
"
width: 100%
"
max
-
height
=
"
550
px
"
max
-
height
=
"
676
px
"
:
row
-
key
=
"
(row) => row.id
"
:
row
-
key
=
"
(row) => row.id
"
@
selection
-
change
=
"
handleSelectionChangeRight
"
@
selection
-
change
=
"
handleSelectionChangeRight
"
>
>
...
@@ -317,7 +325,6 @@ export default {
...
@@ -317,7 +325,6 @@ export default {
created
()
{
created
()
{
this
.
getMatterList
();
this
.
getMatterList
();
this
.
getWriteMatterList
();
this
.
getWriteMatterList
();
console
.
log
(
this
.
deptList
);
}
,
}
,
computed
:
{
computed
:
{
...
mapGetters
([
"
deptList
"
]),
...
mapGetters
([
"
deptList
"
]),
...
@@ -333,11 +340,12 @@ export default {
...
@@ -333,11 +340,12 @@ export default {
deptCode
:
this
.
departmentRight
,
deptCode
:
this
.
departmentRight
,
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
}
);
}
);
this
.
loadingRight
=
false
;
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
let
{
total
,
data
}
=
res
.
data
.
data
;
let
{
total
,
data
}
=
res
.
data
.
data
;
this
.
rightTableData
=
data
;
this
.
rightTableData
=
data
;
this
.
rightTotal
=
total
;
this
.
rightTotal
=
total
;
this
.
loadingRight
=
false
;
this
.
$refs
.
rightTable
.
bodyWrapper
.
scrollTop
=
0
;
}
}
}
,
}
,
...
@@ -351,6 +359,7 @@ export default {
...
@@ -351,6 +359,7 @@ export default {
deptCode
:
this
.
departmentLeft
,
deptCode
:
this
.
departmentLeft
,
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
}
);
}
);
this
.
loadingLeft
=
false
;
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
let
{
data
,
total
,
recommendCount
}
=
res
.
data
.
data
;
let
{
data
,
total
,
recommendCount
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
leftCurrent
>
1
)
{
if
(
!
data
.
length
&&
this
.
leftCurrent
>
1
)
{
...
@@ -360,8 +369,7 @@ export default {
...
@@ -360,8 +369,7 @@ export default {
this
.
LeftTableData
=
data
;
this
.
LeftTableData
=
data
;
this
.
leftTotal
=
total
;
this
.
leftTotal
=
total
;
this
.
recommendCount
=
recommendCount
;
this
.
recommendCount
=
recommendCount
;
this
.
loadingLeft
=
false
;
this
.
$refs
.
leftTable
.
bodyWrapper
.
scrollTop
=
0
;
console
.
log
(
res
.
data
,
this
.
recommendCount
);
}
}
}
,
}
,
// 新增事项
// 新增事项
...
@@ -400,13 +408,14 @@ export default {
...
@@ -400,13 +408,14 @@ export default {
}
,
}
,
// 左边搜索
// 左边搜索
searchLeft
()
{
searchLeft
()
{
this
.
leftCurrent
=
1
this
.
leftCurrent
=
1
;
this
.
getWriteMatterList
();
this
.
getWriteMatterList
();
}
,
}
,
// 左边重置
// 左边重置
leftReset
()
{
leftReset
()
{
this
.
departmentLeft
=
""
;
this
.
departmentLeft
=
""
;
this
.
leftSearch
=
""
;
this
.
leftSearch
=
""
;
this
.
leftCurrent
=
1
;
this
.
getWriteMatterList
();
this
.
getWriteMatterList
();
}
,
}
,
// 左边勾选
// 左边勾选
...
@@ -447,10 +456,16 @@ export default {
...
@@ -447,10 +456,16 @@ export default {
console
.
log
(
"
取消成功!
"
);
console
.
log
(
"
取消成功!
"
);
}
);
}
);
}
,
}
,
// 右边搜索
handleSearchRight
()
{
this
.
rightCurrent
=
1
;
this
.
getMatterList
();
}
,
// 右边重置
// 右边重置
rightReset
()
{
rightReset
()
{
this
.
rightSearch
=
""
;
this
.
rightSearch
=
""
;
this
.
departmentRight
=
""
;
this
.
departmentRight
=
""
;
this
.
rightCurrent
=
1
;
this
.
getMatterList
();
this
.
getMatterList
();
}
,
}
,
// 右边勾选
// 右边勾选
...
@@ -510,9 +525,9 @@ export default {
...
@@ -510,9 +525,9 @@ export default {
/deep/
.
el
-
card
{
/deep/
.
el
-
card
{
height
:
100
%
;
height
:
100
%
;
}
}
.
table
-
content
{
//
.table-content
{
height
:
550
px
;
//
height: 550px;
}
//
}
.
left
{
.
left
{
width
:
50
%
;
width
:
50
%
;
height
:
100
%
;
height
:
100
%
;
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/software/matter/modal/AddMatter.vue
View file @
4129bcc3
<
template
>
<
template
>
<div>
<div>
<el-dialog
<el-dialog
:title=
"title"
:title=
"title"
:visible.sync=
"Visible"
:visible.sync=
"Visible"
width=
"30%"
width=
"30%"
@
close=
"handleClose"
@
close=
"handleClose"
>
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"事项简称"
prop=
"matterName"
>
<el-form-item
label=
"事项简称"
prop=
"matterName"
>
<el-input
<el-input
size=
"small"
size=
"small"
v-model=
"form.matterName"
v-model=
"form.matterName"
placeholder=
"请输入事项简称"
placeholder=
"请输入事项简称"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"事项全称"
prop=
"matterFullName"
>
<el-form-item
label=
"事项全称"
prop=
"matterFullName"
>
<el-input
<el-input
size=
"small"
size=
"small"
v-model=
"form.matterFullName"
v-model=
"form.matterFullName"
placeholder=
"请输入事项全称"
placeholder=
"请输入事项全称"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"事项编号"
prop=
"matterNo"
>
<el-form-item
label=
"事项编号"
prop=
"matterNo"
>
<el-input
<el-input
size=
"small"
size=
"small"
v-model=
"form.matterNo"
v-model=
"form.matterNo"
placeholder=
"请输入事项编号"
placeholder=
"请输入事项编号"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"选择部门"
prop=
"dept
Id
"
>
<el-form-item
label=
"选择部门"
prop=
"dept
Code
"
>
<el-select
<el-select
size=
"small"
size=
"small"
ref=
"myselected"
ref=
"myselected"
v-model=
"form.deptCode"
v-model=
"form.deptCode"
placeholder=
"请选择部门"
placeholder=
"请选择部门"
@
change=
"handleChange"
@
change=
"handleChange"
>
>
<el-option
<el-option
v-for=
"v in departmentList"
v-for=
"v in departmentList"
:key=
"v.deptNumber"
:key=
"v.deptNumber"
:label=
"v.name"
:label=
"v.name"
:value=
"v.deptNumber"
:value=
"v.deptNumber"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<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-button
>
确 定
</el-button
>
>
<el-button
size=
"small"
@
click=
"handleRest"
>
重 置
</el-button>
<el-button
size=
"small"
@
click=
"handleRest"
>
重 置
</el-button>
</span>
</span>
...
@@ -84,10 +84,11 @@ export default {
...
@@ -84,10 +84,11 @@ export default {
matterFullName
:
""
,
// 事项全称
matterFullName
:
""
,
// 事项全称
matterName
:
""
,
// 事项简称
matterName
:
""
,
// 事项简称
deptId
:
""
,
// 部门id
deptId
:
""
,
// 部门id
deptCode
:
""
,
// 部门编号
matterNo
:
""
,
// 事项编号
matterNo
:
""
,
// 事项编号
siteId
:
local
.
getLocal
(
"
writeSiteId
"
)
siteId
:
local
.
getLocal
(
"
writeSiteId
"
)
?
local
.
getLocal
(
"
writeSiteId
"
)
?
local
.
getLocal
(
"
writeSiteId
"
)
:
""
,
:
""
,
source
:
0
,
source
:
0
,
deptName
:
""
,
deptName
:
""
,
},
},
...
@@ -98,7 +99,7 @@ export default {
...
@@ -98,7 +99,7 @@ export default {
matterName
:
[
matterName
:
[
{
required
:
true
,
message
:
"
请输入事项简称
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入事项简称
"
,
trigger
:
"
blur
"
},
],
],
dept
Id
:
[
dept
Code
:
[
{
required
:
true
,
message
:
"
请输选择部门
"
,
trigger
:
"
change
"
},
{
required
:
true
,
message
:
"
请输选择部门
"
,
trigger
:
"
change
"
},
],
],
matterNo
:
[
matterNo
:
[
...
...
This diff is collapsed.
Click to expand it.
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