Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
memberTag
memberTag-web
Commits
7a3c7d08
Commit
7a3c7d08
authored
Oct 29, 2021
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: update
parent
07f45c74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
tag-config-options.vue
src/components/tag/tag-config-options.vue
+13
-3
index.js
src/components/tagDetail/mixin/index.js
+1
-1
No files found.
src/components/tag/tag-config-options.vue
View file @
7a3c7d08
...
...
@@ -528,9 +528,16 @@
<label
class=
"inline-block w-98 label-unit"
>
时间精度
<el-tooltip
popper-class=
"edit-tag-tooltip"
placement=
"top"
open-delay=
"100"
effect=
"light"
>
<div
slot=
"content"
>
<span
style=
"font-weight: 600"
>
选择【天】:
</span><br
/>
选择相对时段为“最近2天”,那么系统在5号凌晨统计3-4号的数据;系统在6号凌晨统计时,统计的是4-5号的数据;
<br
/>
<span
style=
"font-weight: 600"
>
选择【月】:
</span><br
/>
当月:选择相对时间段为“当月”,那么系统在8月5号凌晨进行统计时,统计的是在8.1-8.4号的数据;系统在6号凌晨统计时,统计的是在8.1-8.5号的数据;
<br
/>
最近X月:选择相对时间段为“最近2月”,那么系统在8月5号凌晨进行统计时,统计的是6.1-7.31号的数据;系统在6号凌晨统计时,统计的还是6.1-7.31号的数据;
<br
/>
<span
style=
"font-weight: 600"
>
选择【年】:
</span><br
/>
当年:选择相对时间段为“当年”,那么系统在8月5号凌晨进行统计时,统计的是在当年1.1-8.4号的数据;系统在6号凌晨统计时,统计的是在当年1.1-8.5号的数据;
<br
/>
最近X年:选择相对时间段为“最近1年”,那么系统在8月5号凌晨进行统计时,统计的是在去年1.1-12.31号的数据;系统在6号凌晨统计时,统计的还是在去年1.1-12.31号的数据。
<template
v-if=
"tagData.isActive == 1 "
>
<span
style=
"font-weight: 600"
>
选择【天】:
</span><br
/>
当天:选择相对时段为“当天”,那么统计的是当天凌晨至当前时间内的数据;
<br
/>
最近X天:选择相对时间段为“最近2天”,那么系统在8月1号统计的是7.30-7.31号的数据;系统在8月5号统计的是8.3-8.4号的数据;
<br/>
<span
style=
"font-weight: 600"
>
选择【月】:
</span><br
/>
当月:选择相对时段为“当月”,那么统计的是当月1号至当前时间的数据;
<br
/>
最近X月:选择相对时间段为“最近2月”,那么系统在8月统计的是6.1-7.31号的数据;系统在9月统计的是7.1-8.31号的数据;
<br
/>
<span
style=
"font-weight: 600"
>
选择【年】:
</span><br
/>
当年:选择相对时段为“当年”,那么统计的是当年1号至当前时间的数据;
<br
/>
最近X年:选择相对时间段为“最近1年”,那么系统统计的是去年1.1-12.31号的数据。
</
template
>
<
template
v-else
>
<span
style=
"font-weight: 600"
>
选择【天】:
</span><br
/>
最近X天:选择相对时段为“最近2天”,那么系统在5号凌晨统计3-4号的数据;系统在6号凌晨统计时,统计的是4-5号的数据;
<br
/>
<span
style=
"font-weight: 600"
>
选择【月】:
</span><br
/>
当月:选择相对时间段为“当月”,那么系统在8月5号凌晨进行统计时,统计的是在8.1-8.4号的数据;系统在6号凌晨统计时,统计的是在8.1-8.5号的数据;
<br
/>
最近X月:选择相对时间段为“最近2月”,那么系统在8月5号凌晨进行统计时,统计的是6.1-7.31号的数据;系统在6号凌晨统计时,统计的还是6.1-7.31号的数据;
<br
/>
<span
style=
"font-weight: 600"
>
选择【年】:
</span><br
/>
当年:选择相对时间段为“当年”,那么系统在8月5号凌晨进行统计时,统计的是在当年1.1-8.4号的数据;系统在6号凌晨统计时,统计的是在当年1.1-8.5号的数据;
<br
/>
最近X年:选择相对时间段为“最近1年”,那么系统在8月5号凌晨进行统计时,统计的是在去年1.1-12.31号的数据;系统在6号凌晨统计时,统计的还是在去年1.1-12.31号的数据。
</
template
>
</div>
<i
class=
"iconfont icon-tishi"
style=
"color: #909399"
></i>
</el-tooltip>
...
...
@@ -1733,8 +1740,11 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
templateData
.
length
;
i
++
)
{
if
(
this
.
templateData
[
i
].
templateCode
===
'tag008'
)
{
// 这里有多个value
console
.
log
(
this
.
templateData
[
i
].
addSelectTags
);
value
=
tagValue
.
val
[
0
].
data
.
value
.
split
(
' '
);
selectVal
=
tagParams
.
selectedVal
[
1
].
split
(
','
);
console
.
log
(
tagValue
.
val
[
0
].
data
.
value
);
console
.
log
(
selectVal
);
selectVal
.
forEach
((
el
,
inx
)
=>
{
let
item
=
this
.
templateData
[
i
].
addSelectTags
.
find
(
val
=>
val
.
value
===
el
);
if
(
!
item
)
{
...
...
src/components/tagDetail/mixin/index.js
View file @
7a3c7d08
...
...
@@ -930,7 +930,7 @@ export default {
if
([
'mainClerkId'
,
'clerkId'
,
'openClerkId'
].
includes
(
this
.
currentKey
)
&&
tagValue
.
val
[
0
].
data
.
compute
===
'isEmpty'
)
{
tagValue
.
val
[
0
].
data
.
value
=
''
;
}
else
{
tagValue
.
val
[
0
].
data
.
value
=
ele
.
addSelectTags
.
map
(
item
=>
item
.
key
).
join
(
' '
);
tagValue
.
val
[
0
].
data
.
value
=
ele
.
addSelectTags
.
map
(
item
=>
item
.
key
||
item
.
id
).
join
(
' '
);
that
.
postTemplateData
.
selectedVal
.
push
(
ele
.
addSelectTags
.
map
(
item
=>
item
.
value
).
join
(
','
));
}
}
...
...
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