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
38bed85a
Commit
38bed85a
authored
Oct 28, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了数据录入添加设备
parent
fd08629f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
soil-test.js
api/soil/soil-test.js
+6
-0
SelEquip.vue
components/select-equip/SelEquip.vue
+1
-1
ItemRightList.vue
...s/soil-test-manage/test-input/item-tabs/ItemRightList.vue
+23
-1
No files found.
api/soil/soil-test.js
View file @
38bed85a
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
*/
*/
import
http
from
'../http'
import
http
from
'../http'
import
{
https
}
from
'../https'
// import { https } from '../https'
// import { https } from '../https'
export
default
{
export
default
{
...
@@ -97,5 +98,10 @@ export default {
...
@@ -97,5 +98,10 @@ export default {
'&remark='
+
'&remark='
+
data
.
remark
data
.
remark
)
)
.
then
(
res
=>
res
),
// 添加设备信息
addExpEquip
:
data
=>
https
.
post
(
'soil/v1/experiment_rel_equip/add_exp_equip'
,
JSON
.
stringify
(
data
))
.
then
(
res
=>
res
)
.
then
(
res
=>
res
)
}
}
components/select-equip/SelEquip.vue
View file @
38bed85a
...
@@ -204,7 +204,7 @@ export default {
...
@@ -204,7 +204,7 @@ export default {
}
}
},
},
_ok
()
{
_ok
()
{
if
(
this
.
tempData
.
length
===
0
)
{
if
(
this
.
delIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
this
.
_hideLoading
()
this
.
_hideLoading
()
}
else
{
}
else
{
...
...
pages/soil-test-manage/test-input/item-tabs/ItemRightList.vue
View file @
38bed85a
...
@@ -215,8 +215,30 @@ export default {
...
@@ -215,8 +215,30 @@ export default {
this
.
userColumns
=
colList
this
.
userColumns
=
colList
this
.
$refs
.
pageTable
.
_loadColumn
(
colList
)
this
.
$refs
.
pageTable
.
_loadColumn
(
colList
)
},
},
_equipResult
(
res
)
{
_equipResult
:
async
function
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
const
tempData
=
{}
tempData
.
equipList
=
[]
res
.
map
((
item
,
index
)
=>
{
tempData
.
equipList
.
push
({
equipId
:
item
.
id
,
equipName
:
item
.
name
,
acquisitionCommand
:
item
.
acquisitionCommand
,
brand
:
item
.
brand
,
collectionAddress
:
item
.
acquisitionAddress
,
collectionType
:
item
.
acquisitionType
,
equipNum
:
item
.
labNum
,
ipAddress
:
item
.
ipAddress
,
labNum
:
item
.
classId
,
spec
:
item
.
spec
})
})
tempData
.
expIds
=
this
.
selectIds
const
result
=
await
soilTest
.
addExpEquip
(
tempData
)
if
(
result
)
{
this
.
$Message
.
success
(
'添加成功'
)
}
// let equipIds = []
// let equipIds = []
// for (let i = 0; i
<
res
.
length
;
i
++
)
{
// for (let i = 0; i
<
res
.
length
;
i
++
)
{
// equipIds.push(res[i].id)
// equipIds.push(res[i].id)
...
...
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