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
6c360395
Commit
6c360395
authored
Oct 09, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试验项目
parent
32ba4be5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
5 deletions
+46
-5
soil-aptitude.js
api/soil/soil-aptitude.js
+5
-1
ItemManageEdit.vue
pages/meter-aptitude/item-manage/ItemManageEdit.vue
+41
-4
No files found.
api/soil/soil-aptitude.js
View file @
6c360395
...
...
@@ -34,5 +34,9 @@ export default {
expItemSave
:
data
=>
http
.
post
(
'soil/v1/exp_item/'
,
data
).
then
(
res
=>
res
),
expItemEdit
:
data
=>
http
.
put
(
'soil/v1/exp_item/'
+
data
.
id
,
data
.
obj
).
then
(
res
=>
res
),
expItemGetById
:
data
=>
http
.
get
(
'soil/v1/exp_item/'
+
data
).
then
(
res
=>
res
)
expItemGetById
:
data
=>
http
.
get
(
'soil/v1/exp_item/'
+
data
).
then
(
res
=>
res
),
getStandardList
:
data
=>
http
.
post
(
'soil/v1/standard/list'
,
data
).
then
(
res
=>
res
),
getGroupList
:
data
=>
http
.
post
(
'/res/v1/user_group/list'
,
data
).
then
(
res
=>
res
)
}
pages/meter-aptitude/item-manage/ItemManageEdit.vue
View file @
6c360395
...
...
@@ -8,11 +8,31 @@
<Form-item
label=
"试验名称"
prop=
"name"
class=
"width-48"
>
<Input
v-model=
"formObj.name"
name=
"name"
placeholder=
"请输入试验名称"
/>
</Form-item>
<Form-item
label=
"检测科室"
prop=
"groupName"
class=
"width-48"
>
<Input
v-model=
"formObj.groupName"
name=
"groupName"
placeholder=
"请输入试验名称"
/>
<!--
<Form-item
label=
"检测科室"
prop=
"groupName"
class=
"width-48"
>
-->
<!--
<Input
v-model=
"formObj.groupName"
name=
"groupName"
placeholder=
"请输入试验名称"
/>
-->
<!--
</Form-item>
-->
<Form-item
label=
"检测科室:"
prop=
"groupName"
class=
"width-48"
>
<el-select
v-model=
"formObj.groupName"
placeholder=
"请选择"
name=
"groupName"
style=
"width: 100%"
>
<el-option
v-for=
"(item,index) in groupoptions"
:key=
"index"
:label=
"item.name"
:value=
"item.name"
/>
</el-select>
</Form-item>
<Form-item
label=
"检测依据"
prop=
"testBasis"
class=
"width-48"
>
<Input
v-model=
"formObj.testBasis"
name=
"testBasis"
placeholder=
"请输入试验名称"
/>
<!--
<Form-item
label=
"检测依据"
prop=
"testBasis"
class=
"width-48"
>
-->
<!--
<Input
v-model=
"formObj.testBasis"
name=
"testBasis"
placeholder=
"请输入试验名称"
/>
-->
<!--
</Form-item>
-->
<Form-item
label=
"检测依据:"
prop=
"testBasis"
class=
"width-48"
>
<el-select
v-model=
"formObj.testBasis"
placeholder=
"请选择"
name=
"testBasis"
style=
"width: 100%"
>
<el-option
v-for=
"(item,index) in options"
:key=
"index"
:label=
"item.name"
:value=
"item.name"
/>
</el-select>
</Form-item>
<Form-item
label=
"英文名称"
prop=
"elName"
class=
"width-48"
>
<Input
v-model=
"formObj.elName"
name=
"elName"
...
...
@@ -70,6 +90,8 @@ export default {
ruleValidate
:
{
name
:
[{
required
:
true
,
message
:
'项目名称不能为空'
,
trigger
:
'blur'
}]
},
options
:
[],
groupoptions
:
[],
showModal
:
false
,
footerList
:
[
{
name
:
'取消'
,
type
:
''
},
...
...
@@ -168,6 +190,8 @@ export default {
_open
(
formObj
)
{
this
.
formId
=
'index-edit-form'
this
.
_hideLoading
()
this
.
_getStandardList
()
this
.
_getGroupList
()
this
.
$refs
.
formObj
.
resetFields
()
if
(
this
.
$string
(
formObj
).
isEmpty
())
{
this
.
id
=
''
...
...
@@ -180,6 +204,19 @@ export default {
}
this
.
showModal
=
true
},
// 获取检测依据
_getStandardList
:
async
function
()
{
const
result
=
await
soilAptitude
.
getStandardList
()
if
(
result
)
{
this
.
options
=
result
}
},
_getGroupList
:
async
function
()
{
const
result
=
await
soilAptitude
.
getGroupList
()
if
(
result
)
{
this
.
groupoptions
=
result
}
},
// 获取检测项目
_getItemList
(
value
)
{
const
data
=
{}
...
...
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