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
c6363264
Commit
c6363264
authored
Jul 25, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了合同登记历史记录委托日期显示
parent
7219688c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
3 deletions
+37
-3
MeterContractRegisterHis.vue
...r-contract/contract-register/MeterContractRegisterHis.vue
+3
-1
MeterSendTestEdit.vue
pages/meter-entrust/send-test/MeterSendTestEdit.vue
+34
-2
No files found.
pages/meter-contract/contract-register/MeterContractRegisterHis.vue
View file @
c6363264
...
@@ -37,7 +37,9 @@
...
@@ -37,7 +37,9 @@
:min-width=
"item.width?item.width:200"
:min-width=
"item.width?item.width:200"
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
:fixed=
"item.fixed?item.fixed:undefined"
sortable
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
[
item
.
key
]
}}
</span>
<span
v-if=
"item.key==='edate'"
>
{{
scope
.
row
[
item
.
key
]?
$dateformat
(
scope
.
row
[
item
.
key
],
'yyyy-mm-dd'
):
''
}}
</span>
<span
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</span>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
</PTVXETable>
</PTVXETable>
...
...
pages/meter-entrust/send-test/MeterSendTestEdit.vue
View file @
c6363264
...
@@ -404,9 +404,34 @@ export default {
...
@@ -404,9 +404,34 @@ export default {
})
})
},
},
_inputBack
(
data
)
{
_inputBack
(
data
)
{
console
.
log
(
data
)
if
(
undefined
!==
data
)
{
if
(
undefined
!==
data
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
this
.
getPage
.
records
.
length
>
0
)
{
this
.
getPage
.
records
.
push
(
data
[
i
])
const
j
=
this
.
getPage
.
records
.
length
for
(
let
i
=
j
;
i
<
data
.
length
+
j
;
i
++
)
{
console
.
log
(
i
)
this
.
getPage
.
records
.
push
(
data
[
i
-
j
])
if
(
data
[
i
-
j
].
lastTime
!==
undefined
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
data
[
i
-
j
].
lastTime
)
}
console
.
log
(
this
.
getPage
.
records
)
// this.getPage.records[i].lastTime = new Date(data[0].lastTime)
}
}
else
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
// if (this.getPage.records[i].lastTime !== undefined) {
// const t = this.getPage.records[i].lastTime
// const d = t.valueOf(t)
// console.log('时间戳', d)
// this.getPage.records[i].lastTime = d
// this.getPage.records = []
// }
this
.
getPage
.
records
.
push
(
data
[
i
])
if
(
data
[
i
].
lastTime
!==
undefined
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
data
[
i
].
lastTime
)
}
console
.
log
(
data
[
i
].
lastTime
)
}
}
}
}
}
},
},
...
@@ -718,6 +743,13 @@ export default {
...
@@ -718,6 +743,13 @@ export default {
this
.
_showAddress
(
formObj
)
this
.
_showAddress
(
formObj
)
this
.
_showTime
(
formObj
)
this
.
_showTime
(
formObj
)
this
.
getPage
.
records
=
formObj
.
sampleList
this
.
getPage
.
records
=
formObj
.
sampleList
for
(
let
i
=
0
;
i
<
formObj
.
sampleList
.
length
;
i
++
)
{
if
(
formObj
.
sampleList
[
i
].
lastTime
!==
undefined
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
formObj
.
sampleList
[
i
].
lastTime
)
}
}
},
},
_showTime
(
formObj
)
{
_showTime
(
formObj
)
{
...
...
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