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
4fa146cd
Commit
4fa146cd
authored
Dec 25, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了开土制备查看指标
parent
535797d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
IndexManage.vue
pages/soil-sample-manage/sample-preparation/IndexManage.vue
+3
-3
IndexManageEdit.vue
...soil-sample-manage/sample-preparation/IndexManageEdit.vue
+4
-3
No files found.
pages/soil-sample-manage/sample-preparation/IndexManage.vue
View file @
4fa146cd
...
...
@@ -34,7 +34,7 @@
</template>
<
script
>
import
{
soil
Aptitude
,
soil
Test
}
from
'../../../api'
import
{
soilTest
}
from
'../../../api'
import
IndexManageEdit
from
'./IndexManageEdit'
export
default
{
...
...
@@ -151,9 +151,9 @@ export default {
}
},
_delOk
:
async
function
(
ids
)
{
const
result
=
await
soil
Aptitude
.
expItemDeleteByIds
(
ids
)
const
result
=
await
soil
Test
.
itemDelete
(
ids
)
if
(
result
)
{
this
.
$
m
essage
.
success
(
'删除成功'
)
this
.
$
M
essage
.
success
(
'删除成功'
)
this
.
_page
()
}
}
...
...
pages/soil-sample-manage/sample-preparation/IndexManageEdit.vue
View file @
4fa146cd
...
...
@@ -159,7 +159,7 @@ export default {
this
.
$refs
.
footerModal
.
_hideLoading
()
},
_open
(
id
,
formObj
)
{
this
.
formId
=
'edit-form'
this
.
formId
=
'edit-form
-prepare
'
this
.
_hideLoading
()
this
.
$refs
.
formObj
.
resetFields
()
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
...
...
@@ -318,7 +318,8 @@ export default {
_ok
()
{
this
.
$refs
.
formObj
.
validate
(
valid
=>
{
if
(
valid
)
{
const
data
=
this
.
$serialize
(
'edit-form'
)
const
data
=
this
.
$serialize
(
'edit-form-prepare'
)
console
.
log
(
'data'
,
data
)
if
(
this
.
$string
(
this
.
id
).
isEmpty
())
{
data
.
experimentId
=
this
.
expId
// 添加
...
...
@@ -334,7 +335,7 @@ export default {
})
},
_save
:
async
function
(
data
)
{
console
.
log
(
data
)
console
.
log
(
'data'
,
data
)
const
result
=
await
soilTest
.
itemSave
(
data
)
console
.
log
(
result
)
if
(
result
)
{
...
...
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