Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wfs_export
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yexing
wfs_export
Commits
958cd851
Commit
958cd851
authored
Dec 10, 2025
by
yexing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[yx]update
parent
8163427c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
13 deletions
+7
-13
plugin/.version
+2
-2
plugin/dist/popup.html
+2
-2
plugin/src/popup.js
+2
-3
plugin/src/timezone.js
+1
-6
No files found.
plugin/.version
View file @
958cd851
3.2.5
\ No newline at end of file
3.4.4
\ No newline at end of file
plugin/dist/popup.html
View file @
958cd851
...
...
@@ -20,7 +20,7 @@
<!-- <input type="text" name="fromDate">-<input type="text" name="toDate"> -->
</div>
<div
class=
"form-row"
>
<label><input
type=
"checkbox"
value=
"GQL"
name=
"option"
checked
/>
营销表
</label>
<label><input
type=
"checkbox"
value=
"GQL"
name=
"option"
/>
营销表
</label>
<!-- <input type="text" name="fromDate">-<input type="text" name="toDate"> -->
</div>
<!-- <div class="form-row">
...
...
@@ -28,7 +28,7 @@
<input type="text" name="fromDate">-<input type="text" name="toDate">
</div> -->
<div
class=
"form-row"
>
<label><input
type=
"checkbox"
value=
"Advert"
name=
"option"
checked
/>
广告表
</label>
<label><input
type=
"checkbox"
value=
"Advert"
name=
"option"
/>
广告表
</label>
<!-- <input type="text" name="fromDate">-<input type="text" name="toDate"> -->
</div>
<div
class=
"form-row"
>
...
...
plugin/src/popup.js
View file @
958cd851
import
{
TABLE
}
from
"./conf.js"
;
import
{
Plan
,
addLog
}
from
"./util.js"
;
import
{
getTimeDiff
,
getLocalTime
}
from
"./timezone.js"
;
import
{
Plan
,
addLog
,
getTimeDiff
}
from
"./timezone.js"
;
function
showModal
()
{
document
.
querySelector
(
'.modal'
).
style
.
display
=
'flex'
;
...
...
@@ -27,7 +26,7 @@ function onclick(e) {
// const period = [fromInput.value, toInput.value];
// const period = ['2025-01-01', '2025-02-01'];
const
period
=
new
Plan
(
getLocalTime
(),
params
).
get
()?.
period
;
const
period
=
new
Plan
(
null
,
params
).
get
()
;
if
(
period
===
undefined
)
{
addLog
(
`
${
name
}
未到指定时间`
,
true
);
return
;
...
...
plugin/src/timezone.js
View file @
958cd851
...
...
@@ -87,15 +87,10 @@ export const addLog = (message, push) => chrome.runtime.sendMessage({ type: "add
const
checkTime
=
(
time
)
=>
{
if
(
!
time
.
isValid
())
throw
new
Error
(
"无效时间"
);
}
export
function
getLocalTime
(
dt
)
{
const
time
=
dayjs
.
tz
(
dt
??
new
Date
(),
CST
);
checkTime
(
time
);
return
time
.
toDate
();
}
export
function
getMouth
(
dt
,
offset
=
0
)
{
let
time
=
dayjs
.
tz
(
dt
??
new
Date
(),
CST
).
add
(
offset
,
"month"
);
checkTime
(
time
);
return
time
.
toDate
(
);
return
time
.
format
(
"YYYY-MM"
);
}
export
function
cutDate
(
period
,
date
)
{
const
d1
=
dayjs
(
period
[
0
]);
...
...
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