更新--报表分享功能

qianming 2 years ago
parent db091f00b7
commit 0a08f0557f

@ -23,4 +23,8 @@ public class ReportShareParam extends PageParam implements Serializable {
/** 报表编码 */ /** 报表编码 */
@Query(value = QueryEnum.LIKE) @Query(value = QueryEnum.LIKE)
private String reportCode; private String reportCode;
/** 分享有效期类型 */
@Query(value = QueryEnum.EQ)
private String shareValidType;
} }

@ -40,7 +40,6 @@ public class ReportShare extends GaeaBaseEntity {
private Integer deleteFlag; private Integer deleteFlag;
/** 分享码 */ /** 分享码 */
@TableField(exist = false)
private String sharePassword; private String sharePassword;
@TableField(exist = false) @TableField(exist = false)

@ -6,3 +6,5 @@ INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`)
INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`) VALUES ('root', 'reportShareManage', 'detail'); INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`) VALUES ('root', 'reportShareManage', 'detail');
INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`) VALUES ('root', 'reportShareManage', 'shareDelay'); INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`) VALUES ('root', 'reportShareManage', 'shareDelay');
INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`) VALUES ('root', 'reportShareManage', 'delete'); INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`) VALUES ('root', 'reportShareManage', 'delete');
ALTER TABLE `aj_report`.`gaea_report_share` ADD COLUMN share_password varchar(10) DEFAULT NULL COMMENT '分享码' AFTER share_url;

@ -182,7 +182,7 @@ export const constantRouterMap = [
component: () => import('@/views/reportShare/index'), component: () => import('@/views/reportShare/index'),
meta: { meta: {
title: '报表分享', title: '报表分享',
icon: 'iconliebiao', icon: 'iconfenxiang1',
keepAlive: true, keepAlive: true,
requireAuth: true, requireAuth: true,
permission: 'reportShareManage' permission: 'reportShareManage'

@ -180,8 +180,8 @@ export default {
}, },
openDesign(val) { openDesign(val) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
path: "/screenDesigner", //path: "/screenDesigner",
// path: "/bigscreen/designer", path: "/bigscreen/designer",
query: { query: {
reportCode: val.reportCode reportCode: val.reportCode
} }

@ -36,6 +36,14 @@ export default {
label: "报表编码", label: "报表编码",
field: "reportCode" field: "reportCode"
}, },
{
inputType: "anji-select",
anjiSelectOption: {
dictCode: "SHARE_VAILD"
},
label: "分享类型",
field: "shareValidType"
},
], ],
// //
tableButtons: [ tableButtons: [
@ -83,7 +91,9 @@ export default {
buttons: { buttons: {
query: { query: {
api: reportShareList, api: reportShareList,
permission: 'ReportShare:query' permission: 'ReportShare:query',
sort: "create_time",
order: "DESC"
}, },
queryByPrimarykey: { queryByPrimarykey: {
api: reportShareDetail, api: reportShareDetail,
@ -127,7 +137,7 @@ export default {
disabled: false, disabled: false,
}, },
{ {
label: '分享有效期类型',//DIC_NAME=SHARE_VAILD label: '分享类型',//DIC_NAME=SHARE_VAILD
placeholder: '', placeholder: '',
field: 'shareValidType', field: 'shareValidType',
fieldTableRowRenderer: row => { fieldTableRowRenderer: row => {
@ -140,7 +150,7 @@ export default {
disabled: false, disabled: false,
}, },
{ {
label: '分享有效期',// label: '分享过期时间',//
placeholder: '', placeholder: '',
field: 'shareValidTime', field: 'shareValidTime',
editField: 'shareValidTime', editField: 'shareValidTime',
@ -154,6 +164,7 @@ export default {
placeholder: '', placeholder: '',
field: 'shareToken', field: 'shareToken',
editField: 'shareToken', editField: 'shareToken',
tableHide: true,
inputType: 'input', inputType: 'input',
rules: [ rules: [
{ min: 1, max: 255, message: '不超过255个字符', trigger: 'blur' } { min: 1, max: 255, message: '不超过255个字符', trigger: 'blur' }
@ -171,6 +182,16 @@ export default {
], ],
disabled: false, disabled: false,
}, },
{
label: '分享码',
placeholder: '',
field: 'sharePassword',
editField: 'sharePassword',
inputType: 'input',
rules: [
],
disabled: false,
},
], ],
// //
// formData fieldName, fieldVal, fieldExtend // formData fieldName, fieldVal, fieldExtend

Loading…
Cancel
Save