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
63bfb045
Commit
63bfb045
authored
May 12, 2021
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了开土制备制备页面删除功能
parent
8dfdc1ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
12 deletions
+33
-12
nuxt.config.js
nuxt.config.js
+9
-0
Preparation.vue
pages/soil-sample-manage/sample-preparation/Preparation.vue
+24
-12
No files found.
nuxt.config.js
View file @
63bfb045
...
@@ -139,6 +139,15 @@ module.exports = {
...
@@ -139,6 +139,15 @@ module.exports = {
/*
/*
** You can extend webpack config here
** You can extend webpack config here
*/
*/
optimization
:
{
splitChunks
:
{
minSize
:
10000
,
maxSize
:
250000
}
},
productionSourceMap
:
false
,
productionGzip
:
false
,
productionGzipExtensions
:
[
'js'
,
'css'
],
extend
(
config
,
ctx
)
{
extend
(
config
,
ctx
)
{
// Run ESLint on save
// Run ESLint on save
if
(
ctx
.
isDev
&&
ctx
.
isClient
)
{
if
(
ctx
.
isDev
&&
ctx
.
isClient
)
{
...
...
pages/soil-sample-manage/sample-preparation/Preparation.vue
View file @
63bfb045
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</Select>
</Select>
</Form-item>
</Form-item>
<Form-item
class=
"search-btn"
>
<Form-item
class=
"search-btn"
>
<Button
@
click=
"_
formS
earch"
type=
"primary"
>
搜索
</Button>
<Button
@
click=
"_
s
earch"
type=
"primary"
>
搜索
</Button>
</Form-item>
</Form-item>
</Form>
</Form>
</Col>
</Col>
...
@@ -154,6 +154,7 @@ export default {
...
@@ -154,6 +154,7 @@ export default {
formObj
:
{},
formObj
:
{},
tableHeight
:
document
.
documentElement
.
clientHeight
-
215
,
tableHeight
:
document
.
documentElement
.
clientHeight
-
215
,
footerList
:
[],
footerList
:
[],
sampleList
:
[],
typeData
:
[
typeData
:
[
{
{
name
:
'检样'
,
name
:
'检样'
,
...
@@ -359,6 +360,20 @@ export default {
...
@@ -359,6 +360,20 @@ export default {
this
.
_getkeepContainerList
()
this
.
_getkeepContainerList
()
this
.
_getUserList
()
this
.
_getUserList
()
},
},
_search
()
{
this
.
getPage
.
records
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
sampleList
))
console
.
log
(
this
.
getPage
.
records
,
'this.getPage.records'
)
if
(
this
.
formObj
.
type
!==
undefined
&&
this
.
formObj
.
type
!==
''
)
{
console
.
log
(
'调了'
)
const
arr
=
[]
for
(
let
i
=
0
;
i
<
this
.
getPage
.
records
.
length
;
i
++
)
{
if
(
this
.
getPage
.
records
[
i
].
type
===
Number
(
this
.
formObj
.
type
))
{
arr
.
push
(
this
.
getPage
.
records
[
i
])
}
}
this
.
getPage
.
records
=
arr
}
},
_page
:
async
function
()
{
_page
:
async
function
()
{
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
Object
.
assign
(
this
.
formObj
,
this
.
$refs
.
pageTable
.
_searchParams
())
this
.
formObj
.
ids
=
this
.
sampleIds
this
.
formObj
.
ids
=
this
.
sampleIds
...
@@ -371,19 +386,11 @@ export default {
...
@@ -371,19 +386,11 @@ export default {
for
(
let
j
=
0
;
j
<
result
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
result
.
length
;
j
++
)
{
this
.
getPage
.
records
[
j
].
prepareDate
=
new
Date
(
result
[
j
].
prepareDate
)
this
.
getPage
.
records
[
j
].
prepareDate
=
new
Date
(
result
[
j
].
prepareDate
)
this
.
getPage
.
records
[
j
].
printNum
=
1
this
.
getPage
.
records
[
j
].
printNum
=
1
this
.
getPage
.
records
[
j
].
signboard
=
j
}
}
this
.
sampleList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
getPage
.
records
))
this
.
$refs
.
pageTable
.
_hideLoading
()
this
.
$refs
.
pageTable
.
_hideLoading
()
console
.
log
(
'this.formObj.type'
,
this
.
formObj
.
type
)
console
.
log
(
'this.getPage.records'
,
this
.
getPage
.
records
)
if
(
this
.
formObj
.
type
!==
undefined
&&
this
.
formObj
.
type
!==
''
)
{
console
.
log
(
'调了'
)
const
arr
=
[]
for
(
let
i
=
0
;
i
<
this
.
getPage
.
records
.
length
;
i
++
)
{
if
(
this
.
getPage
.
records
[
i
].
type
===
Number
(
this
.
formObj
.
type
))
{
arr
.
push
(
this
.
getPage
.
records
[
i
])
}
}
this
.
getPage
.
records
=
arr
}
}
}
},
},
_getPrepareWay
:
async
function
()
{
_getPrepareWay
:
async
function
()
{
...
@@ -704,6 +711,11 @@ export default {
...
@@ -704,6 +711,11 @@ export default {
onOk
:
()
=>
{
onOk
:
()
=>
{
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
const
index
=
this
.
getPage
.
records
.
indexOf
(
rows
[
i
])
const
index
=
this
.
getPage
.
records
.
indexOf
(
rows
[
i
])
const
sampleData
=
this
.
sampleList
.
filter
(
item
=>
{
return
item
.
signboard
===
rows
[
i
].
signboard
})
const
arrayIndex
=
this
.
sampleList
.
indexOf
(
sampleData
[
0
])
this
.
sampleList
.
splice
(
arrayIndex
,
1
)
this
.
getPage
.
records
.
splice
(
index
,
1
)
this
.
getPage
.
records
.
splice
(
index
,
1
)
}
}
this
.
$Message
.
success
(
'操作成功'
)
this
.
$Message
.
success
(
'操作成功'
)
...
...
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