Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
7ffe5514
提交
7ffe5514
authored
12月 30, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of github.com:dataease/dataease into dev
上级
47f9ca83
57d7a2b9
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
132 行增加
和
58 行删除
+132
-58
EmailTaskHandler.java
...ataease/job/sechedule/strategy/impl/EmailTaskHandler.java
+3
-6
DorisQueryProvider.java
.../io/dataease/provider/query/doris/DorisQueryProvider.java
+1
-1
HiveQueryProvider.java
...va/io/dataease/provider/query/hive/HiveQueryProvider.java
+1
-1
MysqlQueryProvider.java
.../io/dataease/provider/query/mysql/MysqlQueryProvider.java
+1
-1
index.vue
frontend/src/components/DeDrag/index.vue
+1
-1
ComponentWrapper.vue
.../components/canvas/components/Editor/ComponentWrapper.vue
+1
-1
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+14
-1
DeVideo.vue
frontend/src/components/canvas/custom-component/DeVideo.vue
+10
-2
UserView.vue
frontend/src/components/canvas/custom-component/UserView.vue
+4
-0
Group.vue
frontend/src/views/chart/group/Group.vue
+2
-1
Group.vue
frontend/src/views/dataset/group/Group.vue
+2
-2
index.vue
frontend/src/views/link/generate/index.vue
+86
-39
ComponentWaitItem.vue
frontend/src/views/panel/edit/ComponentWaitItem.vue
+6
-2
没有找到文件。
backend/src/main/java/io/dataease/job/sechedule/strategy/impl/EmailTaskHandler.java
浏览文件 @
7ffe5514
...
@@ -20,7 +20,6 @@ import io.dataease.service.system.EmailService;
...
@@ -20,7 +20,6 @@ import io.dataease.service.system.EmailService;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.quartz.*
;
import
org.quartz.*
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -67,13 +66,10 @@ public class EmailTaskHandler extends TaskHandler implements Job {
...
@@ -67,13 +66,10 @@ public class EmailTaskHandler extends TaskHandler implements Job {
XpackEmailTemplateDTO
emailTemplate
=
(
XpackEmailTemplateDTO
)
jobDataMap
.
get
(
"emailTemplate"
);
XpackEmailTemplateDTO
emailTemplate
=
(
XpackEmailTemplateDTO
)
jobDataMap
.
get
(
"emailTemplate"
);
SysUserEntity
creator
=
(
SysUserEntity
)
jobDataMap
.
get
(
"creator"
);
SysUserEntity
creator
=
(
SysUserEntity
)
jobDataMap
.
get
(
"creator"
);
proxy
().
sendReport
(
taskInstance
,
emailTemplate
,
creator
);
sendReport
(
taskInstance
,
emailTemplate
,
creator
);
}
}
public
EmailTaskHandler
proxy
()
{
return
CommonBeanFactory
.
getBean
(
EmailTaskHandler
.
class
);
}
public
Long
saveInstance
(
GlobalTaskInstance
taskInstance
)
{
public
Long
saveInstance
(
GlobalTaskInstance
taskInstance
)
{
EmailXpackService
emailXpackService
=
SpringContextUtil
.
getBean
(
EmailXpackService
.
class
);
EmailXpackService
emailXpackService
=
SpringContextUtil
.
getBean
(
EmailXpackService
.
class
);
...
@@ -102,7 +98,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
...
@@ -102,7 +98,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
emailXpackService
.
saveInstance
(
taskInstance
);
emailXpackService
.
saveInstance
(
taskInstance
);
}
}
@Async
public
void
sendReport
(
GlobalTaskInstance
taskInstance
,
XpackEmailTemplateDTO
emailTemplateDTO
,
public
void
sendReport
(
GlobalTaskInstance
taskInstance
,
XpackEmailTemplateDTO
emailTemplateDTO
,
SysUserEntity
user
)
{
SysUserEntity
user
)
{
EmailXpackService
emailXpackService
=
SpringContextUtil
.
getBean
(
EmailXpackService
.
class
);
EmailXpackService
emailXpackService
=
SpringContextUtil
.
getBean
(
EmailXpackService
.
class
);
...
@@ -122,6 +118,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
...
@@ -122,6 +118,7 @@ public class EmailTaskHandler extends TaskHandler implements Job {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
error
(
taskInstance
,
e
);
error
(
taskInstance
,
e
);
LogUtil
.
error
(
e
.
getMessage
(),
e
);
LogUtil
.
error
(
e
.
getMessage
(),
e
);
e
.
printStackTrace
();
}
}
}
}
...
...
backend/src/main/java/io/dataease/provider/query/doris/DorisQueryProvider.java
浏览文件 @
7ffe5514
...
@@ -114,7 +114,7 @@ public class DorisQueryProvider extends QueryProvider {
...
@@ -114,7 +114,7 @@ public class DorisQueryProvider extends QueryProvider {
}
else
if
(
f
.
getDeType
()
==
3
)
{
}
else
if
(
f
.
getDeType
()
==
3
)
{
fieldName
=
String
.
format
(
DorisConstants
.
CAST
,
originField
,
DorisConstants
.
DEFAULT_FLOAT_FORMAT
);
fieldName
=
String
.
format
(
DorisConstants
.
CAST
,
originField
,
DorisConstants
.
DEFAULT_FLOAT_FORMAT
);
}
else
if
(
f
.
getDeType
()
==
1
)
{
}
else
if
(
f
.
getDeType
()
==
1
)
{
fieldName
=
String
.
format
(
DorisConstants
.
DATE_FORMAT
,
originField
,
DorisConstants
.
DEFAULT_DATE_FORMAT
);
fieldName
=
String
.
format
(
DorisConstants
.
STR_TO_DATE
,
originField
,
DorisConstants
.
DEFAULT_DATE_FORMAT
);
}
else
{
}
else
{
fieldName
=
originField
;
fieldName
=
originField
;
}
}
...
...
backend/src/main/java/io/dataease/provider/query/hive/HiveQueryProvider.java
浏览文件 @
7ffe5514
...
@@ -106,7 +106,7 @@ public class HiveQueryProvider extends QueryProvider {
...
@@ -106,7 +106,7 @@ public class HiveQueryProvider extends QueryProvider {
}
else
if
(
f
.
getDeType
()
==
DeTypeConstants
.
DE_FLOAT
)
{
}
else
if
(
f
.
getDeType
()
==
DeTypeConstants
.
DE_FLOAT
)
{
fieldName
=
String
.
format
(
HiveConstants
.
CAST
,
originField
,
HiveConstants
.
DEFAULT_FLOAT_FORMAT
);
fieldName
=
String
.
format
(
HiveConstants
.
CAST
,
originField
,
HiveConstants
.
DEFAULT_FLOAT_FORMAT
);
}
else
if
(
f
.
getDeType
()
==
DeTypeConstants
.
DE_TIME
)
{
}
else
if
(
f
.
getDeType
()
==
DeTypeConstants
.
DE_TIME
)
{
fieldName
=
String
.
format
(
HiveConstants
.
DATE_FORMAT
,
originField
,
HiveConstants
.
DEFAULT_DATE_FORMAT
);
fieldName
=
String
.
format
(
HiveConstants
.
STR_TO_DATE
,
originField
,
HiveConstants
.
DEFAULT_DATE_FORMAT
);
}
else
{
}
else
{
fieldName
=
originField
;
fieldName
=
originField
;
}
}
...
...
backend/src/main/java/io/dataease/provider/query/mysql/MysqlQueryProvider.java
浏览文件 @
7ffe5514
...
@@ -113,7 +113,7 @@ public class MysqlQueryProvider extends QueryProvider {
...
@@ -113,7 +113,7 @@ public class MysqlQueryProvider extends QueryProvider {
}
else
if
(
f
.
getDeType
()
==
3
)
{
}
else
if
(
f
.
getDeType
()
==
3
)
{
fieldName
=
String
.
format
(
MySQLConstants
.
CAST
,
originField
,
MySQLConstants
.
DEFAULT_FLOAT_FORMAT
);
fieldName
=
String
.
format
(
MySQLConstants
.
CAST
,
originField
,
MySQLConstants
.
DEFAULT_FLOAT_FORMAT
);
}
else
if
(
f
.
getDeType
()
==
1
)
{
}
else
if
(
f
.
getDeType
()
==
1
)
{
fieldName
=
String
.
format
(
MySQLConstants
.
DATE_FORMAT
,
originField
,
MySQLConstants
.
DEFAULT_DATE_FORMAT
);
fieldName
=
String
.
format
(
MySQLConstants
.
STR_TO_DATE
,
originField
,
MySQLConstants
.
DEFAULT_DATE_FORMAT
);
}
else
{
}
else
{
fieldName
=
originField
;
fieldName
=
originField
;
}
}
...
...
frontend/src/components/DeDrag/index.vue
浏览文件 @
7ffe5514
...
@@ -535,7 +535,7 @@ export default {
...
@@ -535,7 +535,7 @@ export default {
return
this
.
$store
.
state
.
curComponent
return
this
.
$store
.
state
.
curComponent
},
},
curGap
()
{
curGap
()
{
return
this
.
element
.
auxiliaryMatrix
&&
this
.
element
.
type
!==
'custom'
?
this
.
componentGap
:
0
return
(
this
.
canvasStyleData
.
panel
.
gap
===
'yes'
&&
this
.
element
.
auxiliaryMatrix
&&
this
.
element
.
type
!==
'custom'
)
?
this
.
componentGap
:
0
},
},
...
mapState
([
...
mapState
([
'editor'
,
'editor'
,
...
...
frontend/src/components/canvas/components/Editor/ComponentWrapper.vue
浏览文件 @
7ffe5514
...
@@ -85,7 +85,7 @@ export default {
...
@@ -85,7 +85,7 @@ export default {
return
(
this
.
curComponent
&&
this
.
config
===
this
.
curComponent
)
&&
!
this
.
previewVisible
return
(
this
.
curComponent
&&
this
.
config
===
this
.
curComponent
)
&&
!
this
.
previewVisible
},
},
curGap
()
{
curGap
()
{
return
this
.
config
.
auxiliaryMatrix
?
this
.
componentGap
:
0
return
(
this
.
canvasStyleData
.
panel
.
gap
===
'yes'
&&
this
.
config
.
auxiliaryMatrix
)
?
this
.
componentGap
:
0
},
},
...
mapState
([
...
mapState
([
'mobileLayoutStatus'
,
'mobileLayoutStatus'
,
...
...
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
7ffe5514
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
<div
id=
"canvasInfoTemp"
id=
"canvasInfoTemp"
ref=
"canvasInfoTemp"
ref=
"canvasInfoTemp"
:style=
"[
{height:mainHeight}
,screenShotStyle]"
:style=
"[
canvasInfoTempStyle
,screenShotStyle]"
class=
"main-class"
class=
"main-class"
@
mouseup=
"deselectCurComponent"
@
mouseup=
"deselectCurComponent"
@
mousedown=
"handleMouseDown"
@
mousedown=
"handleMouseDown"
...
@@ -144,6 +144,19 @@ export default {
...
@@ -144,6 +144,19 @@ export default {
}
}
}
}
},
},
canvasInfoTempStyle
()
{
if
(
this
.
screenShot
)
{
return
{
width
:
'100%'
,
height
:
this
.
mainHeight
}
}
else
{
return
{
width
:
'100%'
,
height
:
'100%'
}
}
},
customStyle
()
{
customStyle
()
{
let
style
=
{
let
style
=
{
width
:
'100%'
width
:
'100%'
...
...
frontend/src/components/canvas/custom-component/DeVideo.vue
浏览文件 @
7ffe5514
...
@@ -84,12 +84,20 @@ export default {
...
@@ -84,12 +84,20 @@ export default {
])
])
},
},
created
()
{
created
()
{
this
.
pOption
=
this
.
element
.
videoLinks
[
this
.
element
.
videoLinks
.
videoType
]
this
.
initOption
()
this
.
pOption
.
height
=
this
.
h
-
(
this
.
curGap
*
2
)
},
watch
:
{
h
(
newVal
,
oldVla
)
{
this
.
initOption
()
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
initOption
()
{
this
.
pOption
=
this
.
element
.
videoLinks
[
this
.
element
.
videoLinks
.
videoType
]
this
.
pOption
.
height
=
this
.
h
-
(
this
.
curGap
*
2
)
},
// listen event
// listen event
onPlayerPlay
(
player
)
{
onPlayerPlay
(
player
)
{
// console.log('player play!', player)
// console.log('player play!', player)
...
...
frontend/src/components/canvas/custom-component/UserView.vue
浏览文件 @
7ffe5514
...
@@ -261,6 +261,10 @@ export default {
...
@@ -261,6 +261,10 @@ export default {
if
(
!
this
.
preCanvasPanel
||
this
.
preCanvasPanel
.
resultCount
!==
newVal
.
panel
.
resultCount
||
this
.
preCanvasPanel
.
resultMode
!==
newVal
.
panel
.
resultMode
)
{
if
(
!
this
.
preCanvasPanel
||
this
.
preCanvasPanel
.
resultCount
!==
newVal
.
panel
.
resultCount
||
this
.
preCanvasPanel
.
resultMode
!==
newVal
.
panel
.
resultMode
)
{
this
.
getData
(
this
.
element
.
propValue
.
viewId
,
false
)
this
.
getData
(
this
.
element
.
propValue
.
viewId
,
false
)
}
}
// 如果gap有变化刷新
if
(
this
.
preCanvasPanel
&&
this
.
preCanvasPanel
.
gap
!==
newVal
.
panel
.
gap
)
{
this
.
$refs
[
this
.
element
.
propValue
.
id
].
chartResize
()
}
this
.
preCanvasPanel
=
deepCopy
(
newVal
.
panel
)
this
.
preCanvasPanel
=
deepCopy
(
newVal
.
panel
)
},
},
deep
:
true
deep
:
true
...
...
frontend/src/views/chart/group/Group.vue
浏览文件 @
7ffe5514
...
@@ -145,6 +145,7 @@
...
@@ -145,6 +145,7 @@
:model=
"groupForm"
:model=
"groupForm"
:rules=
"groupFormRules"
:rules=
"groupFormRules"
@
keypress
.
enter
.
native=
"saveGroup(groupForm)"
@
keypress
.
enter
.
native=
"saveGroup(groupForm)"
@
submit
.
native
.
prevent
>
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-input
v-model=
"groupForm.name"
/>
<el-input
v-model=
"groupForm.name"
/>
...
@@ -159,7 +160,7 @@
...
@@ -159,7 +160,7 @@
<!--rename chart-->
<!--rename chart-->
<el-dialog
v-dialogDrag
:title=
"$t('chart.chart')"
:visible=
"editTable"
:show-close=
"false"
width=
"30%"
>
<el-dialog
v-dialogDrag
:title=
"$t('chart.chart')"
:visible=
"editTable"
:show-close=
"false"
width=
"30%"
>
<el-form
ref=
"tableForm"
:model=
"tableForm"
:rules=
"tableFormRules"
@
keypress
.
enter
.
native=
"saveTable(tableForm)"
>
<el-form
ref=
"tableForm"
:model=
"tableForm"
:rules=
"tableFormRules"
@
submit
.
native
.
prevent
@
keypress
.
enter
.
native=
"saveTable(tableForm)"
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-input
v-model=
"tableForm.name"
/>
<el-input
v-model=
"tableForm.name"
/>
</el-form-item>
</el-form-item>
...
...
frontend/src/views/dataset/group/Group.vue
浏览文件 @
7ffe5514
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
</el-col>
</el-col>
<el-dialog
v-dialogDrag
:title=
"dialogTitle"
:visible=
"editGroup"
:show-close=
"false"
width=
"30%"
>
<el-dialog
v-dialogDrag
:title=
"dialogTitle"
:visible=
"editGroup"
:show-close=
"false"
width=
"30%"
>
<el-form
ref=
"groupForm"
:model=
"groupForm"
:rules=
"groupFormRules"
@
keypress
.
enter
.
native=
"saveGroup(groupForm)"
>
<el-form
ref=
"groupForm"
:model=
"groupForm"
:rules=
"groupFormRules"
@
submit
.
native
.
prevent
@
keypress
.
enter
.
native=
"saveGroup(groupForm)"
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-input
v-model=
"groupForm.name"
/>
<el-input
v-model=
"groupForm.name"
/>
</el-form-item>
</el-form-item>
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
</el-col>
</el-col>
<el-dialog
v-dialogDrag
:title=
"$t('dataset.table')"
:visible=
"editTable"
:show-close=
"false"
width=
"30%"
>
<el-dialog
v-dialogDrag
:title=
"$t('dataset.table')"
:visible=
"editTable"
:show-close=
"false"
width=
"30%"
>
<el-form
ref=
"tableForm"
:model=
"tableForm"
:rules=
"tableFormRules"
@
keypress
.
enter
.
native=
"saveTable(tableForm)"
>
<el-form
ref=
"tableForm"
:model=
"tableForm"
:rules=
"tableFormRules"
@
submit
.
native
.
prevent
@
keypress
.
enter
.
native=
"saveTable(tableForm)"
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-form-item
:label=
"$t('commons.name')"
prop=
"name"
>
<el-input
v-model=
"tableForm.name"
/>
<el-input
v-model=
"tableForm.name"
/>
</el-form-item>
</el-form-item>
...
...
frontend/src/views/link/generate/index.vue
浏览文件 @
7ffe5514
...
@@ -15,11 +15,7 @@
...
@@ -15,11 +15,7 @@
<el-link
class=
"de-link"
style=
"width: 370px;"
disabled
>
{{
$t
(
'panel.link_share_desc'
)
}}
</el-link>
<el-link
class=
"de-link"
style=
"width: 370px;"
disabled
>
{{
$t
(
'panel.link_share_desc'
)
}}
</el-link>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"valid"
:label=
"$t('panel.link')"
>
<el-form-item
v-if=
"valid"
:label=
"$t('panel.link')"
>
<el-input
<el-input
v-model
.
number=
"form.uri"
disabled
style=
"width: 370px;"
/>
v-model
.
number=
"form.uri"
disabled
style=
"width: 370px;"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"valid"
:label=
"$t('panel.over_time')"
prop=
"overTime"
>
<el-form-item
v-if=
"valid"
:label=
"$t('panel.over_time')"
prop=
"overTime"
>
...
@@ -37,17 +33,34 @@
...
@@ -37,17 +33,34 @@
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"valid"
label=
" "
>
<el-form-item
v-if=
"valid"
label=
" "
>
<el-checkbox
v-model=
"form.enablePwd"
@
change=
"resetEnablePwd"
>
{{
$t
(
'panel.passwd_protect'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"form.enablePwd"
@
change=
"resetEnablePwd"
>
{{
$t
(
'panel.passwd_protect'
)
}}
</el-checkbox>
<span
v-if=
"form.enablePwd"
class=
"de-span"
>
{{
form
.
pwd
}}
</span>
<span
v-if=
"form.enablePwd"
class=
"de-span"
>
{{
form
.
pwd
}}
</span>
<span
v-if=
"form.enablePwd"
class=
"de-span"
@
click=
"resetPwd"
><el-link
:underline=
"false"
type=
"primary"
>
{{
$t
(
'commons.reset'
)
}}
</el-link></span>
<span
v-if=
"form.enablePwd"
class=
"de-span"
@
click=
"resetPwd"
>
<el-link
:underline=
"false"
type=
"primary"
>
{{
$t
(
'commons.reset'
)
}}
</el-link>
</span>
</el-form-item>
</el-form-item>
<div
v-if=
"valid"
class=
"auth-root-class"
>
<div
v-if=
"valid"
class=
"auth-root-class"
>
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<el-button
v-if=
"!form.enablePwd"
v-clipboard:copy=
"form.uri"
v-clipboard:success=
"onCopy"
v-clipboard:error=
"onError"
size=
"mini"
type=
"primary"
>
{{
$t
(
'panel.copy_link'
)
}}
</el-button>
<el-button
<el-button
v-if=
"form.enablePwd"
v-clipboard:copy=
"form.uri + ' Password: '+ form.pwd"
v-clipboard:success=
"onCopy"
v-clipboard:error=
"onError"
size=
"mini"
type=
"primary"
>
{{
$t
(
'panel.copy_link_passwd'
)
}}
</el-button>
v-if=
"!form.enablePwd"
v-clipboard:copy=
"form.uri"
v-clipboard:success=
"onCopy"
v-clipboard:error=
"onError"
size=
"mini"
type=
"primary"
>
{{
$t
(
'panel.copy_link'
)
}}
</el-button>
<el-button
v-if=
"form.enablePwd"
v-clipboard:copy=
"form.uri + ' Password: '+ form.pwd"
v-clipboard:success=
"onCopy"
v-clipboard:error=
"onError"
size=
"mini"
type=
"primary"
>
{{
$t
(
'panel.copy_link_passwd'
)
}}
</el-button>
</span>
</span>
</div>
</div>
...
@@ -56,8 +69,14 @@
...
@@ -56,8 +69,14 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
loadGenerate
,
setPwd
,
switchValid
,
switchEnablePwd
,
shortUrl
,
setOverTime
}
from
'@/api/link'
loadGenerate
,
setPwd
,
switchValid
,
switchEnablePwd
,
shortUrl
,
setOverTime
}
from
'@/api/link'
export
default
{
export
default
{
name
:
'LinkGenerate'
,
name
:
'LinkGenerate'
,
...
@@ -75,7 +94,11 @@ export default {
...
@@ -75,7 +94,11 @@ export default {
pwdNums
:
4
,
pwdNums
:
4
,
valid
:
false
,
valid
:
false
,
form
:
{},
form
:
{},
defaultForm
:
{
enablePwd
:
false
,
pwd
:
null
,
uri
:
null
},
defaultForm
:
{
enablePwd
:
false
,
pwd
:
null
,
uri
:
null
},
pickerOptions
:
{
pickerOptions
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
return
time
.
getTime
()
<
(
Date
.
now
()
-
8.64e7
)
return
time
.
getTime
()
<
(
Date
.
now
()
-
8.64e7
)
...
@@ -103,9 +126,11 @@ export default {
...
@@ -103,9 +126,11 @@ export default {
minTime
:
'15:51'
minTime
:
'15:51'
},
},
rules
:
{
rules
:
{
overTime
:
[
overTime
:
[{
{
required
:
false
,
validator
:
this
.
validateMin
,
trigger
:
'blur'
}
required
:
false
,
]
validator
:
this
.
validateMin
,
trigger
:
'blur'
}]
}
}
}
}
},
},
...
@@ -122,7 +147,13 @@ export default {
...
@@ -122,7 +147,13 @@ export default {
currentGenerate
()
{
currentGenerate
()
{
loadGenerate
(
this
.
resourceId
).
then
(
res
=>
{
loadGenerate
(
this
.
resourceId
).
then
(
res
=>
{
const
{
valid
,
enablePwd
,
pwd
,
uri
,
overTime
}
=
res
.
data
const
{
valid
,
enablePwd
,
pwd
,
uri
,
overTime
}
=
res
.
data
this
.
valid
=
valid
this
.
valid
=
valid
this
.
form
.
enablePwd
=
enablePwd
this
.
form
.
enablePwd
=
enablePwd
this
.
form
.
uri
=
uri
?
(
this
.
origin
+
uri
)
:
uri
this
.
form
.
uri
=
uri
?
(
this
.
origin
+
uri
)
:
uri
...
@@ -183,7 +214,7 @@ export default {
...
@@ -183,7 +214,7 @@ export default {
overTime
:
value
overTime
:
value
}
}
setOverTime
(
param
).
then
(
res
=>
{
setOverTime
(
param
).
then
(
res
=>
{
// this.form.overTime = value
// this.form.overTime = value
this
.
$forceUpdate
()
this
.
$forceUpdate
()
})
})
})
})
...
@@ -192,8 +223,7 @@ export default {
...
@@ -192,8 +223,7 @@ export default {
onCopy
(
e
)
{
onCopy
(
e
)
{
this
.
$success
(
this
.
$t
(
'commons.copy_success'
))
this
.
$success
(
this
.
$t
(
'commons.copy_success'
))
},
},
onError
(
e
)
{
onError
(
e
)
{},
},
onChange
(
value
)
{
onChange
(
value
)
{
const
param
=
{
const
param
=
{
resourceId
:
this
.
resourceId
,
resourceId
:
this
.
resourceId
,
...
@@ -207,7 +237,9 @@ export default {
...
@@ -207,7 +237,9 @@ export default {
const
url
=
this
.
form
.
uri
const
url
=
this
.
form
.
uri
if
(
!
url
)
return
if
(
!
url
)
return
shortUrl
({
resourceId
:
this
.
resourceId
}).
then
(
res
=>
{
shortUrl
({
resourceId
:
this
.
resourceId
}).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
form
.
uri
=
this
.
origin
+
res
.
data
this
.
form
.
uri
=
this
.
origin
+
res
.
data
}
}
...
@@ -228,15 +260,19 @@ export default {
...
@@ -228,15 +260,19 @@ export default {
return
new
Date
(
tom
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
)
return
new
Date
(
tom
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
)
}
}
if
(
type
===
'month'
)
{
if
(
type
===
'month'
)
{
const
result
=
new
Date
()
const
nowMonth
=
now
.
getMonth
()
const
curMonth
=
now
.
getMonth
()
+
1
const
nowYear
=
now
.
getFullYear
()
if
(
curMonth
===
12
)
{
let
nowDate
=
now
.
getDate
()
result
.
setYear
(
now
.
getYear
()
+
1
)
result
.
setMonth
(
0
)
const
tarYear
=
nowYear
}
else
{
const
deffMonth
=
nowMonth
+
1
result
.
setMonth
(
curMonth
)
const
diffYear
=
deffMonth
/
12
}
return
new
Date
(
result
.
format
(
'yyyy-MM-dd'
)
+
' 23:59:59'
)
const
targetMonth
=
deffMonth
%
12
const
days
=
this
.
getMonthDays
(
targetMonth
)
nowDate
=
nowDate
>
days
?
days
:
nowDate
return
new
Date
(
tarYear
+
diffYear
,
deffMonth
%
12
,
nowDate
,
23
,
59
,
59
)
}
}
return
null
return
null
},
},
...
@@ -247,21 +283,32 @@ export default {
...
@@ -247,21 +283,32 @@ export default {
return
callback
(
new
Error
(
'不能小于当前时间'
))
return
callback
(
new
Error
(
'不能小于当前时间'
))
}
}
return
callback
()
return
callback
()
},
getMonthDays
(
nowMonth
)
{
var
now
=
new
Date
()
var
monthStartDate
=
new
Date
(
now
.
getFullYear
(),
nowMonth
,
1
)
var
monthEndDate
=
new
Date
(
now
.
getFullYear
(),
nowMonth
+
1
,
1
)
var
days
=
(
monthEndDate
-
monthStartDate
)
/
(
1000
*
60
*
60
*
24
)
return
days
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.de-link
{
.de-link
{
justify-content
:
left
!
important
;
justify-content
:
left
!
important
;
}
}
.de-span
{
margin
:
0
15px
;
.de-span
{
}
margin
:
0
15px
;
.auth-root-class
{
}
margin
:
15px
0px
5px
;
text-align
:
right
;
.auth-root-class
{
}
margin
:
15px
0px
5px
;
text-align
:
right
;
}
</
style
>
</
style
>
frontend/src/views/panel/edit/ComponentWaitItem.vue
浏览文件 @
7ffe5514
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
:style=
"getComponentStyleDefault(config.style)"
:style=
"getComponentStyleDefault(config.style)"
:is-edit=
"false"
:is-edit=
"false"
:element=
"config"
:element=
"config"
:h=
"
i
temHeight"
:h=
"
outI
temHeight"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -53,6 +53,9 @@ export default {
...
@@ -53,6 +53,9 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
outItemHeight
()
{
return
this
.
itemHeight
-
(
4
*
this
.
componentGap
)
},
// 移动端编辑组件选择按钮显示
// 移动端编辑组件选择按钮显示
mobileCheckBarShow
()
{
mobileCheckBarShow
()
{
// 显示条件:1.当前是移动端画布编辑状态
// 显示条件:1.当前是移动端画布编辑状态
...
@@ -74,7 +77,8 @@ export default {
...
@@ -74,7 +77,8 @@ export default {
},
},
...
mapState
([
...
mapState
([
'mobileLayoutStatus'
,
'mobileLayoutStatus'
,
'componentData'
'componentData'
,
'componentGap'
])
])
},
},
methods
:
{
methods
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论