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
8d29037a
Commit
8d29037a
authored
Jan 22, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试样检测查看原始记录和查看项目报告批量删除按钮
parent
4c541135
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
4 deletions
+66
-4
soil-test.js
api/soil/soil-test.js
+2
-0
ItemReportView.vue
pages/soil-test-manage/test-input/ItemReportView.vue
+32
-2
OriginalRecordView.vue
pages/soil-test-manage/test-input/OriginalRecordView.vue
+32
-2
No files found.
api/soil/soil-test.js
View file @
8d29037a
...
...
@@ -216,6 +216,8 @@ export default {
http
.
post
(
'soil/v1/exp_report/page'
,
data
).
then
(
res
=>
res
),
deleteReport
:
data
=>
http
.
delete
(
'soil/v1/exp_report/?ids='
+
data
).
then
(
res
=>
res
),
batchDeleteReport
:
data
=>
http
.
delete
(
'soil/v1/exp_report/?ids='
+
data
).
then
(
res
=>
res
),
reportPage
:
data
=>
http
.
post
(
'soil/v1/report/page'
,
data
).
then
(
res
=>
res
),
pageSummaryCheck
:
data
=>
http
.
post
(
'soil/v1/report/page_summary_check'
,
data
).
then
(
res
=>
res
),
...
...
pages/soil-test-manage/test-input/ItemReportView.vue
View file @
8d29037a
...
...
@@ -15,7 +15,7 @@
</Col>
<!--操作-->
<Col
span=
"24"
>
<btn-list
:open=
"searchOpen"
:showSearchBtn=
"true"
@
on-result-change=
"_btnClick"
<btn-list
:open=
"searchOpen"
:
msg=
"btn"
:
showSearchBtn=
"true"
@
on-result-change=
"_btnClick"
class=
"contHide"
></btn-list>
</Col>
<!-- 表格 -->
...
...
@@ -61,7 +61,13 @@ export default {
return
{
currentComponent
:
''
,
getPage
:
{},
btn
:
[],
btn
:
[
{
type
:
'error'
,
id
:
''
,
name
:
'批量删除'
}
],
selectIds
:
[],
iconMsg
:
[
{
...
...
@@ -128,12 +134,35 @@ export default {
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
case
'批量删除'
:
this
.
_batchDelete
()
break
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
break
}
})
},
_batchDelete
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
}
else
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除?'
,
onOk
:
()
=>
{
this
.
_delete
()
}
})
}
},
_delete
:
async
function
()
{
const
result
=
await
soilTest
.
batchDeleteReport
(
this
.
selectIds
.
join
(
','
))
if
(
result
)
{
this
.
$Message
.
success
(
'删除成功'
)
this
.
_page
()
}
},
_iconClick
(
res
,
data
,
currentComponent
)
{
this
.
currentComponent
=
currentComponent
this
.
$nextTick
(()
=>
{
...
...
@@ -236,6 +265,7 @@ export default {
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
_page
:
async
function
()
{
this
.
selectIds
=
[]
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilTest
.
expReportPage
(
this
.
$serializeForm
(
this
.
formObj
)
...
...
pages/soil-test-manage/test-input/OriginalRecordView.vue
View file @
8d29037a
...
...
@@ -18,7 +18,7 @@
</Col>
<!--操作-->
<Col
span=
"24"
>
<btn-list
:open=
"searchOpen"
:showSearchBtn=
"true"
@
on-result-change=
"_btnClick"
<btn-list
:open=
"searchOpen"
:
msg=
"btn"
:
showSearchBtn=
"true"
@
on-result-change=
"_btnClick"
class=
"contHide"
></btn-list>
</Col>
<!-- 表格 -->
...
...
@@ -64,7 +64,13 @@ export default {
return
{
currentComponent
:
''
,
getPage
:
{},
btn
:
[],
btn
:
[
{
type
:
'error'
,
id
:
''
,
name
:
'批量删除'
}
],
selectIds
:
[],
iconMsg
:
[
{
...
...
@@ -135,12 +141,35 @@ export default {
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
switch
(
msg
)
{
case
'批量删除'
:
this
.
_batchDelete
()
break
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
break
}
})
},
_batchDelete
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据'
)
}
else
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
'确定删除?'
,
onOk
:
()
=>
{
this
.
_delete
()
}
})
}
},
_delete
:
async
function
()
{
const
result
=
await
soilTest
.
deleteRecord
(
this
.
selectIds
.
join
(
','
))
if
(
result
)
{
this
.
$Message
.
success
(
'删除成功'
)
this
.
_page
()
}
},
_iconClick
(
res
,
data
,
currentComponent
)
{
this
.
currentComponent
=
currentComponent
this
.
$nextTick
(()
=>
{
...
...
@@ -248,6 +277,7 @@ export default {
this
.
$refs
.
pageTable
.
_pageChange
(
1
)
},
_page
:
async
function
()
{
this
.
selectIds
=
[]
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
const
result
=
await
soilTest
.
recordPage
(
this
.
$serializeForm
(
this
.
formObj
)
...
...
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