Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zxtb_to_ssfwpt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Bugzilla
Bugzilla
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
卢世豪
zxtb_to_ssfwpt
Commits
2d99544a
Commit
2d99544a
authored
Jul 07, 2020
by
于广洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第一次进入后边如果有错误的 话,切换月份好用
parent
4e983808
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
declare_grid.js
static/biz/declare_grid.js
+1
-1
encapsulation.js
static/tools/js/encapsulation.js
+6
-1
No files found.
static/biz/declare_grid.js
View file @
2d99544a
...
@@ -290,7 +290,7 @@ function initPage(companyInfo) {
...
@@ -290,7 +290,7 @@ function initPage(companyInfo) {
//TODO 调用备案接口
//TODO 调用备案接口
});
});
// 格式化后台返回的时间
// 格式化后台返回的时间
if
(
companyInfo
){
if
(
companyInfo
.
config
.
return
){
$
(
"#getInputValue"
).
val
(
tool
.
formatDate
(
companyInfo
.
sbsq
));
$
(
"#getInputValue"
).
val
(
tool
.
formatDate
(
companyInfo
.
sbsq
));
nowdate
=
companyInfo
.
sbsq
;
nowdate
=
companyInfo
.
sbsq
;
drawGrid
(
companyInfo
);
drawGrid
(
companyInfo
);
...
...
static/tools/js/encapsulation.js
View file @
2d99544a
...
@@ -824,7 +824,12 @@ var JSTOOL = function() {
...
@@ -824,7 +824,12 @@ var JSTOOL = function() {
* 将000000格式化为0000-00-00
* 将000000格式化为0000-00-00
*/
*/
this
.
formatDate
=
function
(
date
)
{
this
.
formatDate
=
function
(
date
)
{
return
date
.
replace
(
/^
(\d{4})(\d{2})(\d{2})
$/
,
"$1-$2-$3"
);
if
(
date
){
return
date
.
replace
(
/^
(\d{4})(\d{2})(\d{2})
$/
,
"$1-$2-$3"
);
}
else
{
return
""
}
}
}
//字符串时间转时间戳用比较大小
//字符串时间转时间戳用比较大小
this
.
bijiaodata
=
function
(
data
,
data1
)
{
this
.
bijiaodata
=
function
(
data
,
data1
)
{
...
...
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