Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
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
李苏
lxyl-vue
Commits
e1c84297
Commit
e1c84297
authored
Jan 15, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
D=>FORMATTER
parent
a724e055
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
index.vue
src/views/ccgl/cxfx/pcxxcx/index.vue
+23
-1
No files found.
src/views/ccgl/cxfx/pcxxcx/index.vue
View file @
e1c84297
...
@@ -40,6 +40,11 @@
...
@@ -40,6 +40,11 @@
field
:
"wlxxCode"
,
field
:
"wlxxCode"
,
width
:
140
width
:
140
},
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
{
title
:
"物料名称"
,
title
:
"物料名称"
,
field
:
"wlxxName"
,
field
:
"wlxxName"
,
...
@@ -85,11 +90,28 @@
...
@@ -85,11 +90,28 @@
}
else
{
}
else
{
show
=
false
show
=
false
}
}
let
formatter
=
(
a
,
b
,
value
)
=>
value
if
(
item
.
type
==
'D'
){
formatter
=
(
a
,
b
,
value
)
=>
{
if
(
value
==
undefined
||
value
==
''
||
value
===
'undefined'
){
return
""
;
}
else
if
(
!
isNaN
(
value
)){
var
date
=
new
Date
(
parseInt
(
value
));
if
(
isNaN
(
date
)
){
return
""
}
return
date
.
Format
(
"yyyy-MM-dd"
);
}
else
{
return
value
}
}
}
let
pitem
=
{
let
pitem
=
{
prop
:
item
.
field
,
prop
:
item
.
field
,
width
:
item
.
width
||
200
,
width
:
item
.
width
||
200
,
label
:
item
.
name
,
label
:
item
.
name
,
show
:
show
show
:
show
,
formatter
:
formatter
}
}
/* 解决页面复杂渲染过长导致偶尔Dom获取不到 */
/* 解决页面复杂渲染过长导致偶尔Dom获取不到 */
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
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