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
f1a0df9a
Commit
f1a0df9a
authored
Jan 20, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了历史记录删除按钮
parent
3b8d80fd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
185 additions
and
27 deletions
+185
-27
ExpReportCheckHis.vue
...s/soil-exp-report/report-check/tabs/ExpReportCheckHis.vue
+37
-8
ExpReportIssueHis.vue
...s/soil-exp-report/report-issue/tabs/ExpReportIssueHis.vue
+37
-8
ExpReportMakeHis.vue
pages/soil-exp-report/report-make/tabs/ExpReportMakeHis.vue
+36
-8
DataAuditHis.vue
pages/soil-test-manage/test-data-audit/DataAuditHis.vue
+25
-1
DataCheckHis.vue
pages/soil-test-manage/test-data-check/DataCheckHis.vue
+25
-1
TestInputHis.vue
pages/soil-test-manage/test-input/TestInputHis.vue
+25
-1
No files found.
pages/soil-exp-report/report-check/tabs/ExpReportCheckHis.vue
View file @
f1a0df9a
...
...
@@ -87,7 +87,12 @@
<
script
>
// eslint-disable-next-line import/named
import
{
soilReport
,
soilStatistics
}
from
'../../../../api'
import
{
soilEntrust
,
soilReport
,
soilSample
,
soilStatistics
}
from
'../../../../api'
import
global
from
'../../../../api/config'
import
OperationModal
from
'../../../../components/operation/Operation'
export
default
{
...
...
@@ -124,10 +129,11 @@ export default {
selectIds
:
[],
selectData
:
[],
iconMsg
:
[
{
id
:
''
,
type
:
'pt-a-view'
,
name
:
'预览报告'
},
// { id: '', type: 'pt-a-view', name: '预览PDF' },
{
id
:
''
,
type
:
'pt-a-cloud'
,
name
:
'附件'
},
{
id
:
''
,
type
:
'pt-a-clock'
,
name
:
'操作日志'
}
{
id
:
''
,
type
:
'md-image'
,
name
:
'预览报告'
},
// { id: '', type: 'ios-cloud', name: '项目报告' },
{
id
:
''
,
type
:
'ios-cloud'
,
name
:
'附件'
},
{
id
:
''
,
type
:
'ios-clock'
,
name
:
'操作日志'
},
{
id
:
''
,
type
:
'md-trash'
,
name
:
'删除'
}
]
}
},
...
...
@@ -283,6 +289,25 @@ export default {
case
'操作日志'
:
this
.
_record
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
}
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
},
// 没有生成pdf先生成在预览
...
...
@@ -311,12 +336,13 @@ export default {
this
.
$refs
.
operationModal
.
_open
(
id
)
},
_getObjectKey
:
async
function
(
data
)
{
const
result
=
await
soilS
tatistics
.
getObjectKey
(
data
.
id
)
const
result
=
await
soilS
ample
.
getReport
(
data
.
id
)
if
(
result
)
{
this
.
$openWindowModeless
({
objectKey
:
result
,
objectKey
:
result
.
objectKey
,
id
:
data
.
id
,
isReport
:
0
isReport
:
4
,
idType
:
11
})
}
},
...
...
@@ -359,6 +385,9 @@ export default {
this
.
selectIds
.
push
(
this
.
selectData
[
i
].
id
)
}
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
default
:
this
.
_page
()
}
...
...
pages/soil-exp-report/report-issue/tabs/ExpReportIssueHis.vue
View file @
f1a0df9a
...
...
@@ -87,7 +87,12 @@
<
script
>
// eslint-disable-next-line import/named
import
{
soilReport
,
soilStatistics
}
from
'../../../../api'
import
{
soilEntrust
,
soilReport
,
soilSample
,
soilStatistics
}
from
'../../../../api'
import
global
from
'../../../../api/config'
import
OperationModal
from
'../../../../components/operation/Operation'
export
default
{
...
...
@@ -124,10 +129,11 @@ export default {
selectIds
:
[],
selectData
:
[],
iconMsg
:
[
{
id
:
''
,
type
:
'pt-a-view'
,
name
:
'预览报告'
},
// { id: '', type: 'pt-a-view', name: '预览PDF' },
{
id
:
''
,
type
:
'pt-a-cloud'
,
name
:
'附件'
},
{
id
:
''
,
type
:
'pt-a-clock'
,
name
:
'操作日志'
}
{
id
:
''
,
type
:
'md-image'
,
name
:
'预览报告'
},
// { id: '', type: 'ios-cloud', name: '项目报告' },
{
id
:
''
,
type
:
'ios-cloud'
,
name
:
'附件'
},
{
id
:
''
,
type
:
'ios-clock'
,
name
:
'操作日志'
},
{
id
:
''
,
type
:
'md-trash'
,
name
:
'删除'
}
]
}
},
...
...
@@ -283,6 +289,25 @@ export default {
case
'操作日志'
:
this
.
_record
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
}
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
},
// 没有生成pdf先生成在预览
...
...
@@ -311,12 +336,13 @@ export default {
this
.
$refs
.
operationModal
.
_open
(
id
)
},
_getObjectKey
:
async
function
(
data
)
{
const
result
=
await
soilS
tatistics
.
getObjectKey
(
data
.
id
)
const
result
=
await
soilS
ample
.
getReport
(
data
.
id
)
if
(
result
)
{
this
.
$openWindowModeless
({
objectKey
:
result
,
objectKey
:
result
.
objectKey
,
id
:
data
.
id
,
isReport
:
0
isReport
:
4
,
idType
:
11
})
}
},
...
...
@@ -359,6 +385,9 @@ export default {
this
.
selectIds
.
push
(
this
.
selectData
[
i
].
id
)
}
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
default
:
this
.
_page
()
}
...
...
pages/soil-exp-report/report-make/tabs/ExpReportMakeHis.vue
View file @
f1a0df9a
...
...
@@ -87,7 +87,12 @@
<
script
>
// eslint-disable-next-line import/named
import
{
soilReport
,
soilStatistics
}
from
'../../../../api'
import
{
soilEntrust
,
soilReport
,
soilSample
,
soilStatistics
}
from
'../../../../api'
import
global
from
'../../../../api/config'
import
OperationModal
from
'../../../../components/operation/Operation'
export
default
{
...
...
@@ -124,10 +129,10 @@ export default {
selectIds
:
[],
selectData
:
[],
iconMsg
:
[
{
id
:
''
,
type
:
'
pt-a-view
'
,
name
:
'预览报告'
},
// { id: '', type: 'pt-a-view', name: '预览PDF
' },
{
id
:
''
,
type
:
'
pt-a-cloud'
,
name
:
'附件
'
},
{
id
:
''
,
type
:
'
pt-a-clock'
,
name
:
'操作日志
'
}
{
id
:
''
,
type
:
'
md-image
'
,
name
:
'预览报告'
},
{
id
:
''
,
type
:
'ios-cloud'
,
name
:
'附件
'
},
{
id
:
''
,
type
:
'
ios-clock'
,
name
:
'操作日志
'
},
{
id
:
''
,
type
:
'
md-trash'
,
name
:
'删除
'
}
]
}
},
...
...
@@ -283,6 +288,25 @@ export default {
case
'操作日志'
:
this
.
_record
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
}
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
},
// 没有生成pdf先生成在预览
...
...
@@ -311,12 +335,13 @@ export default {
this
.
$refs
.
operationModal
.
_open
(
id
)
},
_getObjectKey
:
async
function
(
data
)
{
const
result
=
await
soilS
tatistics
.
getObjectKey
(
data
.
id
)
const
result
=
await
soilS
ample
.
getReport
(
data
.
id
)
if
(
result
)
{
this
.
$openWindowModeless
({
objectKey
:
result
,
objectKey
:
result
.
objectKey
,
id
:
data
.
id
,
isReport
:
0
isReport
:
4
,
idType
:
11
})
}
},
...
...
@@ -359,6 +384,9 @@ export default {
this
.
selectIds
.
push
(
this
.
selectData
[
i
].
id
)
}
break
case
'iconClick'
:
this
.
_iconClick
(
data
.
name
,
data
.
rowData
,
data
.
componentName
)
break
default
:
this
.
_page
()
}
...
...
pages/soil-test-manage/test-data-audit/DataAuditHis.vue
View file @
f1a0df9a
...
...
@@ -69,7 +69,7 @@
</template>
<
script
>
import
UserInfo
from
'../../../components/user-info-single/assignPerson'
import
{
soilTest
}
from
'../../../api'
import
{
soil
Entrust
,
soil
Test
}
from
'../../../api'
import
Operation
from
'../../../components/operation/Operation'
import
SoilSampleManageHis
from
'./SoilSampleManageHis'
export
default
{
...
...
@@ -93,6 +93,11 @@ export default {
type
:
'ios-clock'
,
id
:
''
,
name
:
'操作日志'
},
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
],
getPage
:
{},
...
...
@@ -357,9 +362,28 @@ export default {
case
'操作日志'
:
this
.
_operationRecord
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
}
})
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
},
_editModal
(
id
,
type
,
name
)
{
this
.
currentComponent
=
'SoilSampleManageHis'
this
.
$nextTick
(()
=>
{
...
...
pages/soil-test-manage/test-data-check/DataCheckHis.vue
View file @
f1a0df9a
...
...
@@ -69,7 +69,7 @@
</template>
<
script
>
import
UserInfo
from
'../../../components/user-info-single/assignPerson'
import
{
soilTest
}
from
'../../../api'
import
{
soil
Entrust
,
soil
Test
}
from
'../../../api'
import
Operation
from
'../../../components/operation/Operation'
import
SoilSampleManageHis
from
'./SoilSampleManageHis'
export
default
{
...
...
@@ -93,6 +93,11 @@ export default {
type
:
'ios-clock'
,
id
:
''
,
name
:
'操作日志'
},
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
],
getPage
:
{},
...
...
@@ -353,9 +358,28 @@ export default {
case
'操作日志'
:
this
.
_operationRecord
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
}
})
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
},
_editModal
(
id
,
type
,
name
)
{
this
.
currentComponent
=
'SoilSampleManageHis'
this
.
$nextTick
(()
=>
{
...
...
pages/soil-test-manage/test-input/TestInputHis.vue
View file @
f1a0df9a
...
...
@@ -69,7 +69,7 @@
</template>
<
script
>
import
UserInfo
from
'../../../components/user-info-single/assignPerson'
import
{
soilTest
}
from
'../../../api'
import
{
soil
Entrust
,
soil
Test
}
from
'../../../api'
import
Operation
from
'../../../components/operation/Operation'
import
SoilSampleManageHis
from
'./SoilSampleManageHis'
export
default
{
...
...
@@ -93,6 +93,11 @@ export default {
type
:
'ios-clock'
,
id
:
''
,
name
:
'操作日志'
},
{
type
:
'md-trash'
,
id
:
''
,
name
:
'删除'
}
],
getPage
:
{},
...
...
@@ -357,9 +362,28 @@ export default {
case
'操作日志'
:
this
.
_operationRecord
(
data
.
id
)
break
case
'删除'
:
this
.
_deleteByIds
([
data
.
id
])
break
}
})
},
_deleteByIds
(
ids
,
content
)
{
this
.
$Modal
.
confirm
({
title
:
'提示'
,
content
:
content
||
'确定删除该记录?'
,
onOk
:
()
=>
{
this
.
_delete
(
ids
)
}
})
},
_delete
:
async
function
(
ids
)
{
const
result
=
await
soilEntrust
.
deleteById
(
ids
)
if
(
result
)
{
this
.
_formSearch
()
this
.
$Message
.
success
(
'删除成功!'
)
}
},
_editModal
(
id
,
type
,
name
)
{
this
.
currentComponent
=
'SoilSampleManageHis'
this
.
$nextTick
(()
=>
{
...
...
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