Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
6a883eb6
提交
6a883eb6
authored
3月 22, 2022
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' into pr@dev@cluster
上级
1fa8fae2
e0d33947
隐藏空白字符变更
内嵌
并排
正在显示
24 个修改的文件
包含
183 行增加
和
88 行删除
+183
-88
HomeMapper.java
...src/main/java/io/dataease/base/mapper/ext/HomeMapper.java
+3
-2
HomeMapper.xml
.../src/main/java/io/dataease/base/mapper/ext/HomeMapper.xml
+5
-2
ParamConstants.java
...in/java/io/dataease/commons/constants/ParamConstants.java
+6
-4
BasicInfo.java
...n/java/io/dataease/controller/sys/response/BasicInfo.java
+4
-2
HomeApi.java
backend/src/main/java/io/dataease/mobile/api/HomeApi.java
+3
-0
HomeItemShareDTO.java
...rc/main/java/io/dataease/mobile/dto/HomeItemShareDTO.java
+11
-0
HomeServer.java
...d/src/main/java/io/dataease/mobile/server/HomeServer.java
+6
-2
HomeService.java
...src/main/java/io/dataease/mobile/service/HomeService.java
+20
-18
SystemParameterService.java
...va/io/dataease/service/system/SystemParameterService.java
+18
-8
V33__1.9.sql
backend/src/main/resources/db/migration/V33__1.9.sql
+2
-2
shareProxy.js
frontend/src/api/panel/shareProxy.js
+1
-1
PreviewEject.vue
.../src/components/canvas/components/Editor/PreviewEject.vue
+50
-28
en.js
frontend/src/lang/en.js
+3
-3
tw.js
frontend/src/lang/tw.js
+1
-1
zh.js
frontend/src/lang/zh.js
+1
-1
shareTree.vue
frontend/src/views/panel/GrantAuth/shareTree.vue
+1
-0
PanelViewShow.vue
frontend/src/views/panel/list/PanelViewShow.vue
+14
-4
BasicSetting.vue
frontend/src/views/system/SysParam/BasicSetting.vue
+11
-1
panel.js
mobile/src/api/panel.js
+5
-1
folder.vue
mobile/src/pages/tabBar/dir/folder.vue
+2
-1
index.vue
mobile/src/pages/tabBar/dir/index.vue
+2
-1
search.vue
mobile/src/pages/tabBar/dir/search.vue
+2
-1
detail.nvue
mobile/src/pages/tabBar/home/detail.nvue
+6
-4
index.nvue
mobile/src/pages/tabBar/home/index.nvue
+6
-1
没有找到文件。
backend/src/main/java/io/dataease/base/mapper/ext/HomeMapper.java
浏览文件 @
6a883eb6
package
io
.
dataease
.
base
.
mapper
.
ext
;
package
io
.
dataease
.
base
.
mapper
.
ext
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemShareDTO
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
public
interface
HomeMapper
{
public
interface
HomeMapper
{
List
<
HomeItemDTO
>
queryStore
(
Map
<
String
,
Object
>
param
);
List
<
HomeItemDTO
>
queryStore
(
Map
<
String
,
Object
>
param
);
List
<
HomeItemDTO
>
queryHistory
();
List
<
HomeItemDTO
>
queryHistory
();
List
<
HomeItemDTO
>
queryShare
(
Map
<
String
,
Object
>
param
);
List
<
HomeItem
Share
DTO
>
queryShare
(
Map
<
String
,
Object
>
param
);
}
}
backend/src/main/java/io/dataease/base/mapper/ext/HomeMapper.xml
浏览文件 @
6a883eb6
...
@@ -18,14 +18,17 @@
...
@@ -18,14 +18,17 @@
order by s.create_time desc
order by s.create_time desc
</select>
</select>
<select
id=
"queryShare"
resultType=
"io.dataease.mobile.dto.HomeItemDTO"
>
<select
id=
"queryShare"
resultType=
"io.dataease.mobile.dto.HomeItem
Share
DTO"
>
select
select
distinct(s.panel_group_id) as id,
distinct(s.panel_group_id) as id,
g.name as title,
g.name as title,
s.create_time as `time`
s.create_time as `time`,
u.nick_name,
u.user_id
from panel_share s
from panel_share s
inner join panel_group g
inner join panel_group g
on s.panel_group_id = g.id
on s.panel_group_id = g.id
left join sys_user u on u.username = IFNULL(s.granter,g.create_by)
where
where
g.mobile_layout = 1 and (
g.mobile_layout = 1 and (
( s.target_id = #{userId} and s.type = 0 ) or
( s.target_id = #{userId} and s.type = 0 ) or
...
...
backend/src/main/java/io/dataease/commons/constants/ParamConstants.java
浏览文件 @
6a883eb6
package
io
.
dataease
.
commons
.
constants
;
package
io
.
dataease
.
commons
.
constants
;
public
interface
ParamConstants
{
public
interface
ParamConstants
{
String
getValue
();
String
getValue
();
...
@@ -50,7 +49,6 @@ public interface ParamConstants {
...
@@ -50,7 +49,6 @@ public interface ParamConstants {
}
}
}
}
enum
Registry
implements
ParamConstants
{
enum
Registry
implements
ParamConstants
{
URL
(
"registry.url"
),
URL
(
"registry.url"
),
REPO
(
"registry.repo"
),
REPO
(
"registry.repo"
),
...
@@ -89,7 +87,7 @@ public interface ParamConstants {
...
@@ -89,7 +87,7 @@ public interface ParamConstants {
}
}
}
}
enum
MAIL
implements
ParamConstants
{
enum
MAIL
implements
ParamConstants
{
SERVER
(
"smtp.host"
),
SERVER
(
"smtp.host"
),
PORT
(
"smtp.port"
),
PORT
(
"smtp.port"
),
ACCOUNT
(
"smtp.account"
),
ACCOUNT
(
"smtp.account"
),
...
@@ -111,11 +109,15 @@ public interface ParamConstants {
...
@@ -111,11 +109,15 @@ public interface ParamConstants {
enum
BASIC
implements
ParamConstants
{
enum
BASIC
implements
ParamConstants
{
FRONT_TIME_OUT
(
"basic.frontTimeOut"
),
FRONT_TIME_OUT
(
"basic.frontTimeOut"
),
MSG_TIME_OUT
(
"basic.msgTimeOut"
);
MSG_TIME_OUT
(
"basic.msgTimeOut"
),
OPEN_HOME_PAGE
(
"ui.openHomePage"
);
private
String
value
;
private
String
value
;
public
String
getValue
()
{
public
String
getValue
()
{
return
this
.
value
;
return
this
.
value
;
}
}
private
BASIC
(
String
value
)
{
private
BASIC
(
String
value
)
{
this
.
value
=
value
;
this
.
value
=
value
;
}
}
...
...
backend/src/main/java/io/dataease/controller/sys/response/BasicInfo.java
浏览文件 @
6a883eb6
...
@@ -6,11 +6,13 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -6,11 +6,13 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
@Data
@Data
public
class
BasicInfo
implements
Serializable
{
public
class
BasicInfo
implements
Serializable
{
@ApiModelProperty
(
"请求超时时间"
)
@ApiModelProperty
(
"请求超时时间"
)
private
String
frontTimeOut
;
private
String
frontTimeOut
;
@ApiModelProperty
(
"消息保留时间"
)
@ApiModelProperty
(
"消息保留时间"
)
private
String
msgTimeOut
;
private
String
msgTimeOut
;
@ApiModelProperty
(
"显示首页"
)
private
String
openHomePage
;
}
}
backend/src/main/java/io/dataease/mobile/api/HomeApi.java
浏览文件 @
6a883eb6
...
@@ -2,6 +2,7 @@ package io.dataease.mobile.api;
...
@@ -2,6 +2,7 @@ package io.dataease.mobile.api;
import
io.dataease.commons.utils.Pager
;
import
io.dataease.commons.utils.Pager
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemShareDTO
;
import
io.dataease.mobile.dto.HomeRequest
;
import
io.dataease.mobile.dto.HomeRequest
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -15,6 +16,8 @@ public interface HomeApi {
...
@@ -15,6 +16,8 @@ public interface HomeApi {
@PostMapping
(
"/query"
)
@PostMapping
(
"/query"
)
Pager
<
List
<
HomeItemDTO
>>
query
(
@RequestBody
HomeRequest
request
);
Pager
<
List
<
HomeItemDTO
>>
query
(
@RequestBody
HomeRequest
request
);
@PostMapping
(
"/queryShares"
)
Pager
<
List
<
HomeItemShareDTO
>>
queryShares
(
@RequestBody
HomeRequest
request
);
@PostMapping
(
"/detail/{id}"
)
@PostMapping
(
"/detail/{id}"
)
Object
detail
(
@PathVariable
String
id
);
Object
detail
(
@PathVariable
String
id
);
...
...
backend/src/main/java/io/dataease/mobile/dto/HomeItemShareDTO.java
0 → 100644
浏览文件 @
6a883eb6
package
io
.
dataease
.
mobile
.
dto
;
import
lombok.Data
;
@Data
public
class
HomeItemShareDTO
extends
HomeItemDTO
{
private
String
nickName
;
private
Long
userId
;
}
backend/src/main/java/io/dataease/mobile/server/HomeServer.java
浏览文件 @
6a883eb6
...
@@ -3,6 +3,7 @@ package io.dataease.mobile.server;
...
@@ -3,6 +3,7 @@ package io.dataease.mobile.server;
import
io.dataease.commons.utils.Pager
;
import
io.dataease.commons.utils.Pager
;
import
io.dataease.mobile.api.HomeApi
;
import
io.dataease.mobile.api.HomeApi
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemShareDTO
;
import
io.dataease.mobile.dto.HomeRequest
;
import
io.dataease.mobile.dto.HomeRequest
;
import
io.dataease.mobile.service.HomeService
;
import
io.dataease.mobile.service.HomeService
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -15,8 +16,6 @@ public class HomeServer implements HomeApi {
...
@@ -15,8 +16,6 @@ public class HomeServer implements HomeApi {
@Resource
@Resource
private
HomeService
homeService
;
private
HomeService
homeService
;
@Override
@Override
public
Pager
<
List
<
HomeItemDTO
>>
query
(
HomeRequest
request
)
{
public
Pager
<
List
<
HomeItemDTO
>>
query
(
HomeRequest
request
)
{
return
homeService
.
query
(
request
);
return
homeService
.
query
(
request
);
...
@@ -27,5 +26,10 @@ public class HomeServer implements HomeApi {
...
@@ -27,5 +26,10 @@ public class HomeServer implements HomeApi {
return
null
;
return
null
;
}
}
@Override
public
Pager
<
List
<
HomeItemShareDTO
>>
queryShares
(
HomeRequest
request
)
{
return
homeService
.
queryShares
(
request
);
}
}
}
backend/src/main/java/io/dataease/mobile/service/HomeService.java
浏览文件 @
6a883eb6
...
@@ -8,6 +8,7 @@ import io.dataease.commons.utils.AuthUtils;
...
@@ -8,6 +8,7 @@ import io.dataease.commons.utils.AuthUtils;
import
io.dataease.commons.utils.PageUtils
;
import
io.dataease.commons.utils.PageUtils
;
import
io.dataease.commons.utils.Pager
;
import
io.dataease.commons.utils.Pager
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemDTO
;
import
io.dataease.mobile.dto.HomeItemShareDTO
;
import
io.dataease.base.mapper.ext.HomeMapper
;
import
io.dataease.base.mapper.ext.HomeMapper
;
import
io.dataease.mobile.dto.HomeRequest
;
import
io.dataease.mobile.dto.HomeRequest
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -29,27 +30,28 @@ public class HomeService {
...
@@ -29,27 +30,28 @@ public class HomeService {
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"userId"
,
user
.
getUserId
());
param
.
put
(
"userId"
,
user
.
getUserId
());
switch
(
request
.
getType
()){
param
.
put
(
"userId"
,
user
.
getUserId
());
if
(
null
!=
request
.
getLastTime
())
{
param
.
put
(
"lastTime"
,
request
.
getLastTime
());
case
2
:
}
return
PageUtils
.
setPageInfo
(
page
,
homeMapper
.
queryStore
(
param
));
}
Long
deptId
=
user
.
getDeptId
();
public
Pager
<
List
<
HomeItemShareDTO
>>
queryShares
(
HomeRequest
request
)
{
List
<
Long
>
roleIds
=
user
.
getRoles
().
stream
().
map
(
CurrentRoleDto:
:
getId
).
collect
(
Collectors
.
toList
());
CurrentUserDto
user
=
AuthUtils
.
getUser
();
Page
<
Object
>
page
=
PageHelper
.
startPage
(
1
,
13
,
true
);
param
.
put
(
"deptId"
,
deptId
);
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"roleIds"
,
roleIds
);
param
.
put
(
"userId"
,
user
.
getUserId
());
if
(
null
!=
request
.
getLastTime
())
{
Long
deptId
=
user
.
getDeptId
();
param
.
put
(
"lastTime"
,
request
.
getLastTime
());
List
<
Long
>
roleIds
=
user
.
getRoles
().
stream
().
map
(
CurrentRoleDto:
:
getId
).
collect
(
Collectors
.
toList
());
}
return
PageUtils
.
setPageInfo
(
page
,
homeMapper
.
queryShare
(
param
));
param
.
put
(
"deptId"
,
deptId
);
default
:
param
.
put
(
"roleIds"
,
roleIds
);
param
.
put
(
"userId"
,
user
.
getUserId
());
if
(
null
!=
request
.
getLastTime
())
{
if
(
null
!=
request
.
getLastTime
())
{
param
.
put
(
"lastTime"
,
request
.
getLastTime
());
param
.
put
(
"lastTime"
,
request
.
getLastTime
());
}
return
PageUtils
.
setPageInfo
(
page
,
homeMapper
.
queryStore
(
param
));
}
}
return
PageUtils
.
setPageInfo
(
page
,
homeMapper
.
queryShare
(
param
));
}
}
}
}
backend/src/main/java/io/dataease/service/system/SystemParameterService.java
浏览文件 @
6a883eb6
...
@@ -41,7 +41,10 @@ public class SystemParameterService {
...
@@ -41,7 +41,10 @@ public class SystemParameterService {
public
BasicInfo
basicInfo
()
{
public
BasicInfo
basicInfo
()
{
List
<
SystemParameter
>
paramList
=
this
.
getParamList
(
"basic"
);
List
<
SystemParameter
>
paramList
=
this
.
getParamList
(
"basic"
);
List
<
SystemParameter
>
homePageList
=
this
.
getParamList
(
"ui.openHomePage"
);
paramList
.
addAll
(
homePageList
);
BasicInfo
result
=
new
BasicInfo
();
BasicInfo
result
=
new
BasicInfo
();
result
.
setOpenHomePage
(
"true"
);
if
(!
CollectionUtils
.
isEmpty
(
paramList
))
{
if
(!
CollectionUtils
.
isEmpty
(
paramList
))
{
for
(
SystemParameter
param
:
paramList
)
{
for
(
SystemParameter
param
:
paramList
)
{
if
(
StringUtils
.
equals
(
param
.
getParamKey
(),
ParamConstants
.
BASIC
.
FRONT_TIME_OUT
.
getValue
()))
{
if
(
StringUtils
.
equals
(
param
.
getParamKey
(),
ParamConstants
.
BASIC
.
FRONT_TIME_OUT
.
getValue
()))
{
...
@@ -50,6 +53,10 @@ public class SystemParameterService {
...
@@ -50,6 +53,10 @@ public class SystemParameterService {
if
(
StringUtils
.
equals
(
param
.
getParamKey
(),
ParamConstants
.
BASIC
.
MSG_TIME_OUT
.
getValue
()))
{
if
(
StringUtils
.
equals
(
param
.
getParamKey
(),
ParamConstants
.
BASIC
.
MSG_TIME_OUT
.
getValue
()))
{
result
.
setMsgTimeOut
(
param
.
getParamValue
());
result
.
setMsgTimeOut
(
param
.
getParamValue
());
}
}
if
(
StringUtils
.
equals
(
param
.
getParamKey
(),
ParamConstants
.
BASIC
.
OPEN_HOME_PAGE
.
getValue
()))
{
boolean
open
=
StringUtils
.
equals
(
"true"
,
param
.
getParamValue
());
result
.
setOpenHomePage
(
open
?
"true"
:
"false"
);
}
}
}
}
}
return
result
;
return
result
;
...
@@ -137,12 +144,13 @@ public class SystemParameterService {
...
@@ -137,12 +144,13 @@ public class SystemParameterService {
return
dtoList
;
return
dtoList
;
}
}
public
void
saveUIInfo
(
Map
<
String
,
List
<
SystemParameterDTO
>>
request
,
List
<
MultipartFile
>
bodyFiles
)
throws
IOException
{
public
void
saveUIInfo
(
Map
<
String
,
List
<
SystemParameterDTO
>>
request
,
List
<
MultipartFile
>
bodyFiles
)
throws
IOException
{
List
<
SystemParameterDTO
>
parameters
=
request
.
get
(
"systemParams"
);
List
<
SystemParameterDTO
>
parameters
=
request
.
get
(
"systemParams"
);
if
(
null
!=
bodyFiles
)
if
(
null
!=
bodyFiles
)
for
(
MultipartFile
multipartFile
:
bodyFiles
)
{
for
(
MultipartFile
multipartFile
:
bodyFiles
)
{
if
(!
multipartFile
.
isEmpty
())
{
if
(!
multipartFile
.
isEmpty
())
{
//防止添加非图片文件
//
防止添加非图片文件
try
(
InputStream
input
=
multipartFile
.
getInputStream
())
{
try
(
InputStream
input
=
multipartFile
.
getInputStream
())
{
try
{
try
{
// It's an image (only BMP, GIF, JPG and PNG are recognized).
// It's an image (only BMP, GIF, JPG and PNG are recognized).
...
@@ -154,10 +162,12 @@ public class SystemParameterService {
...
@@ -154,10 +162,12 @@ public class SystemParameterService {
}
}
String
multipartFileName
=
multipartFile
.
getOriginalFilename
();
String
multipartFileName
=
multipartFile
.
getOriginalFilename
();
String
[]
split
=
Objects
.
requireNonNull
(
multipartFileName
).
split
(
","
);
String
[]
split
=
Objects
.
requireNonNull
(
multipartFileName
).
split
(
","
);
parameters
.
stream
().
filter
(
systemParameterDTO
->
systemParameterDTO
.
getParamKey
().
equalsIgnoreCase
(
split
[
1
])).
forEach
(
systemParameterDTO
->
{
parameters
.
stream
()
systemParameterDTO
.
setFileName
(
split
[
0
]);
.
filter
(
systemParameterDTO
->
systemParameterDTO
.
getParamKey
().
equalsIgnoreCase
(
split
[
1
]))
systemParameterDTO
.
setFile
(
multipartFile
);
.
forEach
(
systemParameterDTO
->
{
});
systemParameterDTO
.
setFileName
(
split
[
0
]);
systemParameterDTO
.
setFile
(
multipartFile
);
});
}
}
}
}
for
(
SystemParameterDTO
systemParameter
:
parameters
)
{
for
(
SystemParameterDTO
systemParameter
:
parameters
)
{
...
@@ -168,7 +178,8 @@ public class SystemParameterService {
...
@@ -168,7 +178,8 @@ public class SystemParameterService {
}
}
if
(
file
!=
null
)
{
if
(
file
!=
null
)
{
fileService
.
deleteFileById
(
systemParameter
.
getParamValue
());
fileService
.
deleteFileById
(
systemParameter
.
getParamValue
());
FileMetadata
fileMetadata
=
fileService
.
saveFile
(
systemParameter
.
getFile
(),
systemParameter
.
getFileName
());
FileMetadata
fileMetadata
=
fileService
.
saveFile
(
systemParameter
.
getFile
(),
systemParameter
.
getFileName
());
systemParameter
.
setParamValue
(
fileMetadata
.
getId
());
systemParameter
.
setParamValue
(
fileMetadata
.
getId
());
}
}
if
(
file
==
null
&&
systemParameter
.
getFileName
()
==
null
)
{
if
(
file
==
null
&&
systemParameter
.
getFileName
()
==
null
)
{
...
@@ -181,5 +192,4 @@ public class SystemParameterService {
...
@@ -181,5 +192,4 @@ public class SystemParameterService {
}
}
}
}
backend/src/main/resources/db/migration/V33__1.9.sql
浏览文件 @
6a883eb6
...
@@ -85,7 +85,7 @@ CREATE TABLE `de_engine` (
...
@@ -85,7 +85,7 @@ CREATE TABLE `de_engine` (
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
INSERT
INTO
`system_parameter`
(
`param_key`
,
`param_value`
,
`type`
,
`sort`
)
VALUES
(
'ui.mobileBG'
,
NULL
,
'file'
,
14
);
INSERT
INTO
`system_parameter`
(
`param_key`
,
`param_value`
,
`type`
,
`sort`
)
VALUES
(
'ui.mobileBG'
,
NULL
,
'file'
,
0
);
UPDATE
`demo_gdp_district_top100`
set
`province`
=
'新疆维吾尔自治区'
WHERE
`province`
=
'新疆维吾尔族自治区'
;
UPDATE
`demo_gdp_district_top100`
set
`province`
=
'新疆维吾尔自治区'
WHERE
`province`
=
'新疆维吾尔族自治区'
;
frontend/src/api/panel/shareProxy.js
浏览文件 @
6a883eb6
...
@@ -22,7 +22,7 @@ export function proxyInitPanelData(panelId, proxy, callback) {
...
@@ -22,7 +22,7 @@ export function proxyInitPanelData(panelId, proxy, callback) {
queryPanelJumpInfo
(
panelId
,
proxy
).
then
(
rsp
=>
{
queryPanelJumpInfo
(
panelId
,
proxy
).
then
(
rsp
=>
{
store
.
commit
(
'setNowPanelJumpInfo'
,
rsp
.
data
)
store
.
commit
(
'setNowPanelJumpInfo'
,
rsp
.
data
)
})
})
callback
(
response
)
callback
&&
callback
(
response
)
})
})
}
}
...
...
frontend/src/components/canvas/components/Editor/PreviewEject.vue
浏览文件 @
6a883eb6
...
@@ -8,6 +8,7 @@ import Preview from './Preview'
...
@@ -8,6 +8,7 @@ import Preview from './Preview'
import
{
uuid
}
from
'vue-uuid'
import
{
uuid
}
from
'vue-uuid'
import
{
initPanelData
}
from
'@/api/panel/panel'
import
{
initPanelData
}
from
'@/api/panel/panel'
import
{
queryTargetPanelJumpInfo
}
from
'@/api/panel/linkJump'
import
{
queryTargetPanelJumpInfo
}
from
'@/api/panel/linkJump'
import
{
proxyInitPanelData
}
from
'@/api/panel/shareProxy'
export
default
{
export
default
{
components
:
{
Preview
},
components
:
{
Preview
},
...
@@ -15,12 +16,8 @@ export default {
...
@@ -15,12 +16,8 @@ export default {
return
{
return
{
dataLoading
:
false
,
dataLoading
:
false
,
backScreenShot
:
false
,
backScreenShot
:
false
,
mainHeight
:
'100vh!important'
mainHeight
:
'100vh!important'
,
}
shareUserId
:
null
},
watch
:
{
'$route.params.reportId'
:
function
()
{
this
.
restore
()
}
}
},
},
computed
:
{
computed
:
{
...
@@ -37,6 +34,7 @@ export default {
...
@@ -37,6 +34,7 @@ export default {
this
.
restore
()
this
.
restore
()
}
}
},
},
mounted
()
{
mounted
()
{
this
.
restore
()
this
.
restore
()
},
},
...
@@ -45,35 +43,59 @@ export default {
...
@@ -45,35 +43,59 @@ export default {
this
.
mainHeight
=
mainHeight
this
.
mainHeight
=
mainHeight
},
},
restore
()
{
restore
()
{
debugger
const
_this
=
this
const
_this
=
this
_this
.
dataLoading
=
true
_this
.
dataLoading
=
true
_this
.
panelId
=
this
.
$route
.
params
.
reportId
if
(
!
this
.
$route
.
params
.
reportId
)
{
return
}
const
arr
=
this
.
$route
.
params
.
reportId
.
split
(
'|'
)
if
(
!
arr
||
arr
.
length
===
0
)
{
return
}
_this
.
panelId
=
arr
[
0
]
if
(
arr
.
length
>
1
)
{
this
.
shareUserId
=
arr
[
1
]
}
if
(
_this
.
$route
.
params
.
backScreenShot
!==
undefined
)
{
if
(
_this
.
$route
.
params
.
backScreenShot
!==
undefined
)
{
_this
.
backScreenShot
=
_this
.
$route
.
params
.
backScreenShot
_this
.
backScreenShot
=
_this
.
$route
.
params
.
backScreenShot
}
}
// 加载视图数据
// 加载视图数据
initPanelData
(
this
.
panelId
,
function
()
{
if
(
this
.
shareUserId
!==
null
)
{
_this
.
dataLoading
=
false
const
param
=
{
userId
:
this
.
shareUserId
}
// 如果含有跳转参数 进行触发
proxyInitPanelData
(
this
.
panelId
,
param
,
()
=>
{
const
tempParam
=
localStorage
.
getItem
(
'jumpInfoParam'
)
this
.
initCallBack
()
if
(
tempParam
)
{
})
localStorage
.
removeItem
(
'jumpInfoParam'
)
}
else
{
const
jumpParam
=
JSON
.
parse
(
tempParam
)
initPanelData
(
this
.
panelId
,
()
=>
{
const
jumpRequestParam
=
{
this
.
initCallBack
()
sourcePanelId
:
jumpParam
.
sourcePanelId
,
})
sourceViewId
:
jumpParam
.
sourceViewId
,
}
sourceFieldId
:
jumpParam
.
sourceFieldId
,
},
targetPanelId
:
_this
.
panelId
}
initCallBack
()
{
_this
.
dataLoading
=
true
this
.
dataLoading
=
false
// 刷新跳转目标仪表板联动信息
// 如果含有跳转参数 进行触发
queryTargetPanelJumpInfo
(
jumpRequestParam
).
then
(
rsp
=>
{
const
tempParam
=
localStorage
.
getItem
(
'jumpInfoParam'
)
_this
.
dataLoading
=
false
if
(
tempParam
)
{
_this
.
$store
.
commit
(
'setNowTargetPanelJumpInfo'
,
rsp
.
data
)
localStorage
.
removeItem
(
'jumpInfoParam'
)
_this
.
$store
.
commit
(
'addViewTrackFilter'
,
jumpParam
)
const
jumpParam
=
JSON
.
parse
(
tempParam
)
})
const
jumpRequestParam
=
{
sourcePanelId
:
jumpParam
.
sourcePanelId
,
sourceViewId
:
jumpParam
.
sourceViewId
,
sourceFieldId
:
jumpParam
.
sourceFieldId
,
targetPanelId
:
this
.
panelId
}
}
})
this
.
dataLoading
=
true
// 刷新跳转目标仪表板联动信息
queryTargetPanelJumpInfo
(
jumpRequestParam
).
then
(
rsp
=>
{
this
.
dataLoading
=
false
this
.
$store
.
commit
(
'setNowTargetPanelJumpInfo'
,
rsp
.
data
)
this
.
$store
.
commit
(
'addViewTrackFilter'
,
jumpParam
)
})
}
},
},
resetID
(
data
)
{
resetID
(
data
)
{
if
(
data
)
{
if
(
data
)
{
...
...
frontend/src/lang/en.js
浏览文件 @
6a883eb6
...
@@ -1632,7 +1632,8 @@ export default {
...
@@ -1632,7 +1632,8 @@ export default {
themeLight
:
'Light'
,
themeLight
:
'Light'
,
themeDark
:
'Dark'
,
themeDark
:
'Dark'
,
themeCustom
:
'Custom'
,
themeCustom
:
'Custom'
,
openHomePage
:
'Show Home Page'
openHomePage
:
'Show Home Page'
,
mobileBG
:
'Mobile Login page BG'
},
},
auth
:
{
auth
:
{
...
@@ -1888,8 +1889,7 @@ export default {
...
@@ -1888,8 +1889,7 @@ export default {
cmonth
:
'This Month'
,
cmonth
:
'This Month'
,
cquarter
:
'This Quarter'
,
cquarter
:
'This Quarter'
,
cyear
:
'This Year'
,
cyear
:
'This Year'
,
openHomePage
:
'Show Home Page'
,
openHomePage
:
'Show Home Page'
mobileBG
:
'Mobile BG'
},
},
dynamic_year
:
{
dynamic_year
:
{
fix
:
'Fixed Year'
,
fix
:
'Fixed Year'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
6a883eb6
...
@@ -1643,7 +1643,7 @@ export default {
...
@@ -1643,7 +1643,7 @@ export default {
themeCustom
:
'自定義'
,
themeCustom
:
'自定義'
,
openHomePage
:
'顯示首頁'
,
openHomePage
:
'顯示首頁'
,
mobileBG
:
'移動端背景'
mobileBG
:
'移動端
登錄頁
背景'
},
},
auth
:
{
auth
:
{
...
...
frontend/src/lang/zh.js
浏览文件 @
6a883eb6
...
@@ -1656,7 +1656,7 @@ export default {
...
@@ -1656,7 +1656,7 @@ export default {
themeDark
:
'深色'
,
themeDark
:
'深色'
,
themeCustom
:
'自定义'
,
themeCustom
:
'自定义'
,
openHomePage
:
'显示首页'
,
openHomePage
:
'显示首页'
,
mobileBG
:
'移动端背景'
mobileBG
:
'移动端
登录页
背景'
},
},
auth
:
{
auth
:
{
...
...
frontend/src/views/panel/GrantAuth/shareTree.vue
浏览文件 @
6a883eb6
...
@@ -110,6 +110,7 @@ export default {
...
@@ -110,6 +110,7 @@ export default {
const
param
=
{
userId
:
data
.
userId
}
const
param
=
{
userId
:
data
.
userId
}
proxyInitPanelData
(
data
.
id
,
param
,
function
()
{
proxyInitPanelData
(
data
.
id
,
param
,
function
()
{
bus
.
$emit
(
'set-panel-show-type'
,
1
)
bus
.
$emit
(
'set-panel-show-type'
,
1
)
bus
.
$emit
(
'set-panel-share-user'
,
data
.
userId
)
})
})
this
.
$refs
[
'botTree'
].
setCurrentKey
(
null
)
this
.
$refs
[
'botTree'
].
setCurrentKey
(
null
)
},
},
...
...
frontend/src/views/panel/list/PanelViewShow.vue
浏览文件 @
6a883eb6
...
@@ -137,7 +137,7 @@ import bus from '@/utils/bus'
...
@@ -137,7 +137,7 @@ import bus from '@/utils/bus'
import
{
queryAll
}
from
'@/api/panel/pdfTemplate'
import
{
queryAll
}
from
'@/api/panel/pdfTemplate'
import
ShareHead
from
'@/views/panel/GrantAuth/ShareHead'
import
ShareHead
from
'@/views/panel/GrantAuth/ShareHead'
import
{
initPanelData
}
from
'@/api/panel/panel'
import
{
initPanelData
}
from
'@/api/panel/panel'
import
{
proxyInitPanelData
}
from
'@/api/panel/shareProxy'
export
default
{
export
default
{
name
:
'PanelViewShow'
,
name
:
'PanelViewShow'
,
components
:
{
Preview
,
SaveToTemplate
,
PDFPreExport
,
ShareHead
},
components
:
{
Preview
,
SaveToTemplate
,
PDFPreExport
,
ShareHead
},
...
@@ -162,7 +162,8 @@ export default {
...
@@ -162,7 +162,8 @@ export default {
snapshotInfo
:
''
,
snapshotInfo
:
''
,
showType
:
0
,
showType
:
0
,
dataLoading
:
false
,
dataLoading
:
false
,
exporting
:
false
exporting
:
false
,
shareUserId
:
null
}
}
},
},
computed
:
{
computed
:
{
...
@@ -214,6 +215,9 @@ export default {
...
@@ -214,6 +215,9 @@ export default {
bus
.
$on
(
'set-panel-show-type'
,
type
=>
{
bus
.
$on
(
'set-panel-show-type'
,
type
=>
{
this
.
showType
=
type
||
0
this
.
showType
=
type
||
0
})
})
bus
.
$on
(
'set-panel-share-user'
,
userId
=>
{
this
.
shareUserId
=
userId
})
this
.
initPdfTemplate
()
this
.
initPdfTemplate
()
},
},
methods
:
{
methods
:
{
...
@@ -227,7 +231,10 @@ export default {
...
@@ -227,7 +231,10 @@ export default {
this
.
fullscreen
=
true
this
.
fullscreen
=
true
},
},
newTab
()
{
newTab
()
{
const
url
=
'#/preview/'
+
this
.
$store
.
state
.
panel
.
panelInfo
.
id
let
url
=
'#/preview/'
+
this
.
$store
.
state
.
panel
.
panelInfo
.
id
if
(
this
.
showType
===
1
&&
this
.
shareUserId
!==
null
)
{
url
+=
(
'|'
+
this
.
shareUserId
)
}
window
.
open
(
url
,
'_blank'
)
window
.
open
(
url
,
'_blank'
)
},
},
saveToTemplate
()
{
saveToTemplate
()
{
...
@@ -344,7 +351,10 @@ export default {
...
@@ -344,7 +351,10 @@ export default {
this
.
$emit
(
'editPanel'
)
this
.
$emit
(
'editPanel'
)
},
},
refreshPanel
()
{
refreshPanel
()
{
initPanelData
(
this
.
panelInfo
.
id
)
if
(
this
.
showType
===
1
&&
this
.
shareUserId
!==
null
)
{
const
param
=
{
userId
:
this
.
shareUserId
}
proxyInitPanelData
(
this
.
panelInfo
.
id
,
param
,
null
)
}
else
{
initPanelData
(
this
.
panelInfo
.
id
)
}
}
}
}
}
}
}
...
...
frontend/src/views/system/SysParam/BasicSetting.vue
浏览文件 @
6a883eb6
...
@@ -31,7 +31,16 @@
...
@@ -31,7 +31,16 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-col>
<el-form-item
:label=
"$t('display.openHomePage')"
>
<el-checkbox
v-model=
"formInline.openHomePage"
true-label=
"true"
false-label=
"false"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-form>
<div>
<div>
<el-button
v-if=
"showEdit"
size=
"small"
@
click=
"edit"
>
{{
$t
(
'commons.edit'
)
}}
</el-button>
<el-button
v-if=
"showEdit"
size=
"small"
@
click=
"edit"
>
{{
$t
(
'commons.edit'
)
}}
</el-button>
...
@@ -103,7 +112,8 @@ export default {
...
@@ -103,7 +112,8 @@ export default {
save
(
formInline
)
{
save
(
formInline
)
{
const
param
=
[
const
param
=
[
{
paramKey
:
'basic.frontTimeOut'
,
paramValue
:
this
.
formInline
.
frontTimeOut
,
type
:
'text'
,
sort
:
1
},
{
paramKey
:
'basic.frontTimeOut'
,
paramValue
:
this
.
formInline
.
frontTimeOut
,
type
:
'text'
,
sort
:
1
},
{
paramKey
:
'basic.msgTimeOut'
,
paramValue
:
this
.
formInline
.
msgTimeOut
,
type
:
'text'
,
sort
:
2
}
{
paramKey
:
'basic.msgTimeOut'
,
paramValue
:
this
.
formInline
.
msgTimeOut
,
type
:
'text'
,
sort
:
2
},
{
paramKey
:
'ui.openHomePage'
,
paramValue
:
this
.
formInline
.
openHomePage
,
type
:
'text'
,
sort
:
13
}
]
]
...
...
mobile/src/api/panel.js
浏览文件 @
6a883eb6
import
request
from
'@/common/js/request'
import
request
from
'@/common/js/request'
export
function
requestHome
(
data
)
{
export
function
requestHome
(
data
)
{
let
url
=
'/mobile/home/query'
if
(
data
&&
data
.
type
===
2
)
{
url
=
'mobile/home/queryShares'
}
return
request
({
return
request
({
url
:
'/mobile/home/query'
,
url
:
url
,
method
:
'post'
,
method
:
'post'
,
loading
:
true
,
loading
:
true
,
data
data
...
...
mobile/src/pages/tabBar/dir/folder.vue
浏览文件 @
6a883eb6
...
@@ -75,7 +75,8 @@ export default {
...
@@ -75,7 +75,8 @@ export default {
const
param
=
{
const
param
=
{
id
:
node
.
id
,
id
:
node
.
id
,
title
:
node
.
text
,
title
:
node
.
text
,
index
:
4
index
:
4
,
userId
:
node
.
userId
}
}
if
(
node
.
type
===
'panel'
)
{
if
(
node
.
type
===
'panel'
)
{
...
...
mobile/src/pages/tabBar/dir/index.vue
浏览文件 @
6a883eb6
...
@@ -72,7 +72,8 @@ export default {
...
@@ -72,7 +72,8 @@ export default {
const
param
=
{
const
param
=
{
id
:
node
.
id
,
id
:
node
.
id
,
title
:
node
.
text
,
title
:
node
.
text
,
index
:
4
index
:
4
,
userId
:
node
.
userId
}
}
if
(
node
.
type
===
'panel'
)
{
if
(
node
.
type
===
'panel'
)
{
...
...
mobile/src/pages/tabBar/dir/search.vue
浏览文件 @
6a883eb6
...
@@ -101,7 +101,8 @@ export default {
...
@@ -101,7 +101,8 @@ export default {
const
param
=
{
const
param
=
{
id
:
node
.
id
,
id
:
node
.
id
,
title
:
node
.
text
,
title
:
node
.
text
,
index
:
4
index
:
4
,
userId
:
node
.
userId
}
}
if
(
node
.
type
===
'panel'
)
{
if
(
node
.
type
===
'panel'
)
{
...
...
mobile/src/pages/tabBar/home/detail.nvue
浏览文件 @
6a883eb6
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
methods: {
methods: {
addRecent() {
addRecent() {
const item = {id: this.banner.id, title: this.banner.title, index: this.banner.index}
const item = {id: this.banner.id, title: this.banner.title, index: this.banner.index
, userId: this.banner.userId
}
addRecent(item)
addRecent(item)
},
},
enshrine() {
enshrine() {
...
@@ -167,9 +167,11 @@
...
@@ -167,9 +167,11 @@
})
})
},
},
loadLinkUrl() {
loadLinkUrl() {
this.url = process.env.VUE_APP_BASE_API + 'tempMobileLink/' + this.banner.id + "/" + getToken()
if (this.banner.index && this.banner.index === 2 && this.banner.userId) {
this.url = process.env.VUE_APP_BASE_API + 'tempMobileLink/' + this.banner.id + "/" + getToken()
this.url = process.env.VUE_APP_BASE_API + 'tempMobileLink/' + this.banner.id + '|' + this.banner.userId + "/" + getToken()
}
const url = this.url
const url = this.url
/* uni.hideLoading() */
/* uni.hideLoading() */
setTimeout(() => {
setTimeout(() => {
...
...
mobile/src/pages/tabBar/home/index.nvue
浏览文件 @
6a883eb6
...
@@ -118,6 +118,9 @@
...
@@ -118,6 +118,9 @@
datas.forEach(item => {
datas.forEach(item => {
item.article_type = 1
item.article_type = 1
item.image_url = '../../../static/yibiaobans.png'
item.image_url = '../../../static/yibiaobans.png'
if(item.nickName) {
item.title += ('(' + item.nickName + ')')
}
if(item.time)
if(item.time)
item.rightText = formatHistoryDate(item.time)
item.rightText = formatHistoryDate(item.time)
})
})
...
@@ -151,10 +154,12 @@
...
@@ -151,10 +154,12 @@
const param = {
const param = {
id: node.id,
id: node.id,
title: node.title,
title: node.title,
index: this.tabIndex
index: this.tabIndex,
userId: node.userId
}
}
if(this.tabIndex === 1) {
if(this.tabIndex === 1) {
param.index = node.index
param.index = node.index
param.userId = node.userId
}
}
uni.navigateTo({
uni.navigateTo({
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论