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
97d3efd5
Commit
97d3efd5
authored
Dec 15, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
土工试验Lims
parent
0417f9ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
soil-sample.js
api/soil/soil-sample.js
+10
-1
ItemRightList.vue
...s/soil-test-manage/test-input/item-tabs/ItemRightList.vue
+11
-9
No files found.
api/soil/soil-sample.js
View file @
97d3efd5
...
@@ -200,5 +200,14 @@ export default {
...
@@ -200,5 +200,14 @@ export default {
deleteBox
:
data
=>
http
.
delete
(
'soil/v1/box/?ids='
+
data
).
then
(
res
=>
res
),
deleteBox
:
data
=>
http
.
delete
(
'soil/v1/box/?ids='
+
data
).
then
(
res
=>
res
),
editBox
:
data
=>
editBox
:
data
=>
http
.
put
(
'soil/v1/box/'
+
data
.
id
,
data
.
obj
).
then
(
res
=>
res
),
http
.
put
(
'soil/v1/box/'
+
data
.
id
,
data
.
obj
).
then
(
res
=>
res
),
getByIdBox
:
data
=>
http
.
get
(
'soil/v1/box/'
+
data
).
then
(
res
=>
res
)
getByIdBox
:
data
=>
http
.
get
(
'soil/v1/box/'
+
data
).
then
(
res
=>
res
),
saveExcelOriginalRecord
:
data
=>
http
.
post
(
'soil/v1/experiment/save_excel_original_record?ids='
+
data
.
ids
+
'&templateId='
+
data
.
id
)
.
then
(
res
=>
res
)
}
}
pages/soil-test-manage/test-input/item-tabs/ItemRightList.vue
View file @
97d3efd5
...
@@ -6,21 +6,21 @@
...
@@ -6,21 +6,21 @@
<Form
id=
"task-assign-item-right"
:label-width=
"70"
inline
onsubmit=
"return false"
>
<Form
id=
"task-assign-item-right"
:label-width=
"70"
inline
onsubmit=
"return false"
>
<label
class=
"label-sign"
></label>
<label
class=
"label-sign"
></label>
<Form-item
class=
"search-item"
label=
"试样编号:"
>
<Form-item
class=
"search-item"
label=
"试样编号:"
>
<Input
@
on-enter=
"_formSearch"
v-model=
"formObj.sampleCode"
name=
"sampleCode"
placeholder=
"请输入试样编号"
clearable
></Input>
<Input
v-model=
"formObj.sampleCode"
name=
"sampleCode"
placeholder=
"请输入试样编号"
clearable
@
on-enter=
"_formSearch"
></Input>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_formSearch"
type=
"primary
"
>
搜索
</Button>
<Button
type=
"primary"
@
click=
"_formSearch
"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
<!--操作-->
<!--操作-->
<Col
span=
"24"
>
<Col
span=
"24"
>
<btn-list
:msg=
"envPro?btnPro:btn"
@
on-result-change=
"_btnClick"
class=
"contHide
"
></btn-list>
<btn-list
:msg=
"envPro?btnPro:btn"
class=
"contHide"
@
on-result-change=
"_btnClick
"
></btn-list>
</Col>
</Col>
<!-- 表格 -->
<!-- 表格 -->
<Col
span=
"24"
>
<Col
span=
"24"
>
<PTVXETable
ref=
"pageTable"
:page
Columns=
"pageColumns"
:tableH
eight=
"tableHeight"
<PTVXETable
ref=
"pageTable"
:page
-columns=
"pageColumns"
:table-h
eight=
"tableHeight"
@
on-result-change=
"_tableResultChange"
:getPage=
"getPage"
:icon-msg=
"iconMsg"
:table-name=
"tableName"
is-task
select-data
>
:get-page=
"getPage"
:icon-msg=
"iconMsg"
:table-name=
"tableName"
is-task
select-data
@
on-result-change=
"_tableResultChange"
>
<vxe-table-column
<vxe-table-column
v-for=
"item in userColumns.length > 0 ?userColumns:pageColumns"
v-for=
"item in userColumns.length > 0 ?userColumns:pageColumns"
:key=
"item.key"
:key=
"item.key"
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
<VXESettingCol
slot=
"setting"
:page
Columns=
"pageColumns"
:userC
olumns=
"userColumns"
<VXESettingCol
slot=
"setting"
:page
-columns=
"pageColumns"
:user-c
olumns=
"userColumns"
@
on-result-change=
"_resetColumn"
:table-name=
"tableName
"
></VXESettingCol>
:table-name=
"tableName"
@
on-result-change=
"_resetColumn
"
></VXESettingCol>
</PTVXETable>
</PTVXETable>
</Col>
</Col>
</Row>
</Row>
...
@@ -252,9 +252,11 @@ export default {
...
@@ -252,9 +252,11 @@ export default {
},
},
_makeCodeExcel
:
async
function
(
data
)
{
_makeCodeExcel
:
async
function
(
data
)
{
console
.
log
(
this
.
selectIds
)
console
.
log
(
this
.
selectIds
)
console
.
log
(
'----dddd---'
,
data
)
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
const
result
=
await
soilSample
.
generateExcelReport
(
data
)
const
result
=
await
soilSample
.
saveExcelOriginalRecord
({
ids
:
this
.
selectIds
,
id
:
data
.
id
})
if
(
result
)
{
if
(
result
)
{
await
this
.
_page
()
await
this
.
_page
()
if
(
result
===
null
||
result
===
undefined
)
{
if
(
result
===
null
||
result
===
undefined
)
{
...
...
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