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
52a8e41c
Commit
52a8e41c
authored
Mar 18, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了导出样品抽样单
parent
8f335267
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
WaitReceive.vue
...e/sample-alone-keep/entrust-sample-manage/WaitReceive.vue
+18
-13
No files found.
pages/soil-sample-manage/sample-alone-keep/entrust-sample-manage/WaitReceive.vue
View file @
52a8e41c
...
...
@@ -29,7 +29,7 @@
<Input
v-model=
"formObj.experimentNames"
@
on-enter=
"_formSearch"
style=
"width: 150px;"
placeholder=
"请输入试验项目或试验项目简写"
clearable
/>
</Form-item>
<Form-item
class=
"search-btn"
style=
"margin-left: 10px;"
>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
</Form-item>
</Form>
</Col>
...
...
@@ -324,19 +324,24 @@ export default {
})
},
_exportTemplate
()
{
const
data
=
{
downloadUrl
:
'/soil/v1/sample/export_sampling_list?ids='
+
this
.
selectIds
.
join
(
','
)
// downloadUrl: '/soil/v1/sample/export_sampling_list'
}
console
.
log
(
data
)
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要导出该模板?'
,
onOk
:
()
=>
{
this
.
_download
(
data
)
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
}
else
{
const
data
=
{
downloadUrl
:
'/soil/v1/sample/export_sampling_list?ids='
+
this
.
selectIds
.
join
(
','
)
// downloadUrl: '/soil/v1/sample/export_sampling_list'
}
})
console
.
log
(
data
)
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定要导出该模板?'
,
onOk
:
()
=>
{
this
.
_download
(
data
)
}
})
}
},
_download
(
data
)
{
window
.
open
(
global
.
baseURL
+
data
.
downloadUrl
,
'_blank'
)
...
...
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