Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
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
wangweidong
patzn-cloud-web-back-soil
Commits
22c5fa4d
Commit
22c5fa4d
authored
Mar 26, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报告编制生成报告
parent
d43f0059
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
31 deletions
+34
-31
FilesList.vue
components/file/instock-file-manage/FilesList.vue
+31
-2
FilesList.vue
components/file/sample-file-manage/FilesList.vue
+1
-27
EntrustRegisterEdit.vue
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
+1
-1
SoilSampleSplit.vue
pages/soil-sample-manage/SoilSampleSplit.vue
+1
-1
No files found.
components/file/instock-file-manage/FilesList.vue
View file @
22c5fa4d
...
...
@@ -62,7 +62,7 @@
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'jpeg'||scope.row.type === 'pdf'||scope.row.type === 'png'||scope.row.type === 'xlsx'||scope.row.type === 'docx'||scope.row.type === 'bmp' ?iconMsgJpg:iconMsg"
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'jpeg'||scope.row.type === 'pdf'||scope.row.type === 'png'||scope.row.type === 'xlsx'||scope.row.type === 'docx'||scope.row.type === 'bmp'
||scope.row.type === 'webp'
?iconMsgJpg:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
></VXEIconList>
</
template
>
</vxe-table-column>
...
...
@@ -180,7 +180,29 @@ export default {
contractId
:
undefined
,
entrustId
:
undefined
},
format
:
[
'jpg'
,
'bmp'
,
'jpeg'
,
'png'
],
format
:
[
'jpg'
,
'bmp'
,
'jpeg'
,
'png'
,
'tif'
,
'gif'
,
'pcx'
,
'tga'
,
'exif'
,
'fpx'
,
'svg'
,
'psd'
,
'cdr'
,
'pcd'
,
'dxf'
,
'ufo'
,
'eps'
,
'ai'
,
'raw'
,
'WMF'
,
'webp'
],
viewVal
:
1
,
viewStyle
:
1
,
menusList
:
[
...
...
@@ -271,6 +293,7 @@ export default {
fileList
[
i
].
type
===
'jpg'
||
fileList
[
i
].
type
===
'jpeg'
||
fileList
[
i
].
type
===
'bmp'
||
fileList
[
i
].
type
===
'webp'
||
fileList
[
i
].
type
===
'png'
)
{
list
.
push
(
result
.
records
[
i
])
...
...
@@ -355,6 +378,12 @@ export default {
this
.
imgViewList
=
jpegViewList
this
.
imgViewIndex
=
0
break
case
'webp'
:
const
webpViewList
=
[]
webpViewList
.
push
(
global
.
baseURL
+
this
.
downloadFileUrlFile
+
data
.
id
)
this
.
imgViewList
=
webpViewList
this
.
imgViewIndex
=
0
break
case
'pdf'
:
this
.
$pdfView
(
data
.
objectKey
)
break
...
...
components/file/sample-file-manage/FilesList.vue
View file @
22c5fa4d
...
...
@@ -15,11 +15,9 @@
:on-success=
"_handelsuccess"
:before-upload=
"_beupload"
:on-progress=
"_handelprogress"
:on-format-error=
"_formatError"
:data=
"dataObj"
:with-credentials=
"true"
:show-upload-list=
"false"
:format=
"format"
style=
"float: left"
>
<Button>
上传
</Button>
</Upload>
...
...
@@ -62,7 +60,7 @@
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<VXEIconList
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'jpeg'||scope.row.type === 'pdf'||scope.row.type === 'png'||scope.row.type === 'xlsx'||scope.row.type === 'docx'||scope.row.type === 'bmp' ?iconMsgJpg:iconMsg"
:msg=
"scope.row.type === 'jpg'||scope.row.type === 'jpeg'||scope.row.type === 'pdf'||scope.row.type === 'png'||scope.row.type === 'xlsx'||scope.row.type === 'docx'||scope.row.type === 'bmp'
||scope.row.type === 'webp'
?iconMsgJpg:iconMsg"
@
on-result-change=
"_iconClick"
:rowData=
"scope.row"
></VXEIconList>
</
template
>
</vxe-table-column>
...
...
@@ -180,7 +178,6 @@ export default {
contractId
:
undefined
,
entrustId
:
undefined
},
format
:
[
'xls'
,
'xlsx'
,
'xlsm'
,
'doc'
,
'docx'
,
'pdf'
,
'txt'
],
viewVal
:
1
,
viewStyle
:
1
,
menusList
:
[
...
...
@@ -222,13 +219,6 @@ export default {
this
.
$refs
.
batchUpload
.
_open
(
this
.
id
)
}
},
_formatError
(
file
)
{
this
.
$Notice
.
error
({
title
:
'文件格式不正确'
,
duration
:
10
,
desc
:
'文件格式不正确,请上传格式为jpg, bmp, jpeg, png的文件!'
})
},
_setUploadData
(
data
,
idsObj
,
idKey
)
{
this
.
selectIds
=
[]
this
.
imgViewIndex
=
null
...
...
@@ -263,23 +253,7 @@ export default {
)
if
(
result
)
{
this
.
$refs
.
pageTable
.
_hideLoading
()
const
list
=
[]
const
fileList
=
result
.
records
for
(
let
i
=
0
;
i
<
fileList
.
length
;
i
++
)
{
if
(
fileList
[
i
].
type
===
'xlsx'
||
fileList
[
i
].
type
===
'xlsm'
||
fileList
[
i
].
type
===
'xls'
||
fileList
[
i
].
type
===
'doc'
||
fileList
[
i
].
type
===
'docx'
||
fileList
[
i
].
type
===
'txt'
||
fileList
[
i
].
type
===
'pdf'
)
{
list
.
push
(
result
.
records
[
i
])
}
}
this
.
getPage
=
result
this
.
getPage
.
records
=
list
}
},
// _page: async function() {
...
...
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
View file @
22c5fa4d
...
...
@@ -36,7 +36,7 @@
<Input
v-model=
"formObj.latitude"
name=
"latitude"
placeholder=
"请输入纬度"
/>
</Form-item>
<Form-item
label=
"水深(米)"
prop=
"waterDepth"
class=
"width-48"
>
<Input
v-model=
"formObj.waterDepth"
@
keydown
.
native=
"channelInputLimit"
type=
"number"
name=
"waterDepth"
placeholder=
"请输入深度"
/>
<Input
v-model=
"formObj.waterDepth"
name=
"waterDepth"
placeholder=
"请输入深度"
/>
</Form-item>
<Form-item
label=
"平均容重"
prop=
"projectNo"
class=
"width-48"
>
<Input
v-model=
"formObj.projectNo"
name=
"projectNo"
placeholder=
"请输入平均容重"
/>
...
...
pages/soil-sample-manage/SoilSampleSplit.vue
View file @
22c5fa4d
...
...
@@ -39,7 +39,7 @@
></Input>
</div>
<div
v-else-if=
"item.key==='sampleCode'"
>
{{
scope
.
row
[
item
.
key
]
+
'-
-
'
}}{{
Number
(
scope
.
row
.
index
)
+
1
}}
{{
scope
.
row
[
item
.
key
]
+
'-'
}}{{
Number
(
scope
.
row
.
index
)
+
1
}}
</div>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
...
...
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