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
4968ca2b
Commit
4968ca2b
authored
Dec 18, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试验项目报告模板配置
parent
45ac3337
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
soil-aptitude.js
api/soil/soil-aptitude.js
+7
-1
ConfigTemplate.vue
...eport-manage/soil-item-report-template/ConfigTemplate.vue
+1
-1
ConfigTemplateEdit.vue
...t-manage/soil-item-report-template/ConfigTemplateEdit.vue
+1
-1
No files found.
api/soil/soil-aptitude.js
View file @
4968ca2b
...
@@ -68,6 +68,10 @@ export default {
...
@@ -68,6 +68,10 @@ export default {
http
.
post
(
'soil/v1/exp_report_template_config/page'
,
data
).
then
(
res
=>
res
),
http
.
post
(
'soil/v1/exp_report_template_config/page'
,
data
).
then
(
res
=>
res
),
saveReportTemplateConfig
:
data
=>
saveReportTemplateConfig
:
data
=>
http
.
post
(
'soil/v1/exp_report_template_config/'
,
data
).
then
(
res
=>
res
),
http
.
post
(
'soil/v1/exp_report_template_config/'
,
data
).
then
(
res
=>
res
),
expReportTemplateConfigEdit
:
data
=>
http
.
put
(
'soil/v1/exp_report_template_config/'
+
data
.
id
,
data
.
obj
)
.
then
(
res
=>
res
),
deleteReportTemplateConfig
:
data
=>
deleteReportTemplateConfig
:
data
=>
http
http
.
delete
(
'soil/v1/exp_report_template_config/?ids='
+
data
)
.
delete
(
'soil/v1/exp_report_template_config/?ids='
+
data
)
...
@@ -85,5 +89,7 @@ export default {
...
@@ -85,5 +89,7 @@ export default {
deleteOriginalTemplateConfig
:
data
=>
deleteOriginalTemplateConfig
:
data
=>
http
http
.
delete
(
'soil/v1/original_template_config/?ids='
+
data
)
.
delete
(
'soil/v1/original_template_config/?ids='
+
data
)
.
then
(
res
=>
res
)
.
then
(
res
=>
res
),
expReportTemplateConfig
:
data
=>
http
.
get
(
'soil/v1/exp_report_template_config/'
+
data
).
then
(
res
=>
res
)
}
}
pages/soil-report-manage/soil-item-report-template/ConfigTemplate.vue
View file @
4968ca2b
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
}
}
},
},
_getById
:
async
function
(
data
)
{
_getById
:
async
function
(
data
)
{
const
result
=
await
soilAptitude
.
exp
ItemGetById
(
data
.
id
)
const
result
=
await
soilAptitude
.
exp
ReportTemplateConfig
(
data
.
id
)
console
.
log
(
result
)
console
.
log
(
result
)
if
(
result
)
{
if
(
result
)
{
this
.
$refs
.
indexEdit
.
_open
(
''
,
result
)
this
.
$refs
.
indexEdit
.
_open
(
''
,
result
)
...
...
pages/soil-report-manage/soil-item-report-template/ConfigTemplateEdit.vue
View file @
4968ca2b
...
@@ -306,7 +306,7 @@ export default {
...
@@ -306,7 +306,7 @@ export default {
}
}
},
},
_edit
:
async
function
(
data
)
{
_edit
:
async
function
(
data
)
{
const
result
=
await
soilAptitude
.
exp
Item
Edit
(
data
)
const
result
=
await
soilAptitude
.
exp
ReportTemplateConfig
Edit
(
data
)
if
(
result
)
{
if
(
result
)
{
this
.
_resultChange
(
'编辑成功!'
)
this
.
_resultChange
(
'编辑成功!'
)
}
}
...
...
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