解决方案基本功能

main
mhsnet 1 year ago
parent 41b55872f7
commit f6f72ea7b2

@ -40,7 +40,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
/** /**
* @Description: * @Description:
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-05-23 * @Date: 2023-05-24
* @Version: V1.0 * @Version: V1.0
*/ */
@Api(tags="资讯动态") @Api(tags="资讯动态")

@ -21,7 +21,7 @@ import lombok.experimental.Accessors;
/** /**
* @Description: * @Description:
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-05-23 * @Date: 2023-05-24
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ -63,16 +63,20 @@ public class YxgwNews implements Serializable {
@Excel(name = "类型", width = 15) @Excel(name = "类型", width = 15)
@ApiModelProperty(value = "类型") @ApiModelProperty(value = "类型")
private java.lang.String type; private java.lang.String type;
/**图片*/
@Excel(name = "图片", width = 15)
@ApiModelProperty(value = "图片")
private java.lang.String img;
/**日期*/ /**日期*/
@Excel(name = "日期", width = 15, format = "yyyy-MM-dd") @Excel(name = "日期", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "日期") @ApiModelProperty(value = "日期")
private java.util.Date date; private java.util.Date date;
/**图片*/ /**是否发布*/
@Excel(name = "图片", width = 15) @Excel(name = "是否发布", width = 15)
@ApiModelProperty(value = "图片") @ApiModelProperty(value = "是否发布")
private java.lang.String img; private java.lang.String isshow;
/**描述*/ /**描述*/
@Excel(name = "描述", width = 15) @Excel(name = "描述", width = 15)
@ApiModelProperty(value = "描述") @ApiModelProperty(value = "描述")

@ -55,24 +55,37 @@ public class YxgwSolution implements Serializable {
/**所属部门*/ /**所属部门*/
@ApiModelProperty(value = "所属部门") @ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode; private java.lang.String sysOrgCode;
/**所属行业|方案名称*/ /**标题*/
@Excel(name = "所属行业|方案名称", width = 15) @Excel(name = "标题", width = 15)
@ApiModelProperty(value = "所属行业|方案名称") @ApiModelProperty(value = "标题")
private java.lang.String name; private java.lang.String title;
/**方案描述*/ /**所属行业*/
@Excel(name = "方案描述", width = 15) @Excel(name = "所属行业", width = 15)
@ApiModelProperty(value = "方案描述") @ApiModelProperty(value = "所属行业")
private java.lang.String des; private java.lang.String industry;
/**方案图片*/ /**方案图片*/
@Excel(name = "方案图片", width = 15) @Excel(name = "方案图片", width = 15)
@ApiModelProperty(value = "方案图片") @ApiModelProperty(value = "方案图片")
private java.lang.String img; private java.lang.String img;
/**案例列表*/
@Excel(name = "案例列表", width = 15, dictTable = "yxgw_case", dicText = "customer", dicCode = "id")
@Dict(dictTable = "yxgw_case", dicText = "customer", dicCode = "id")
@ApiModelProperty(value = "案例列表")
private java.lang.String cases;
/**发布日期*/ /**发布日期*/
@Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd") @Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "发布日期") @ApiModelProperty(value = "发布日期")
private java.util.Date date; private java.util.Date date;
/**是否发布*/
@Excel(name = "是否发布", width = 15)
@ApiModelProperty(value = "是否发布")
private java.lang.String isshow;
/**方案描述*/
@Excel(name = "方案描述", width = 15)
@ApiModelProperty(value = "方案描述")
private java.lang.String des;
/**方案内容*/ /**方案内容*/
@Excel(name = "方案内容", width = 15) @Excel(name = "方案内容", width = 15)
@ApiModelProperty(value = "方案内容") @ApiModelProperty(value = "方案内容")

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/** /**
* @Description: * @Description:
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-05-23 * @Date: 2023-05-24
* @Version: V1.0 * @Version: V1.0
*/ */
public interface YxgwNewsMapper extends BaseMapper<YxgwNews> { public interface YxgwNewsMapper extends BaseMapper<YxgwNews> {

@ -6,7 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
/** /**
* @Description: * @Description:
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-05-23 * @Date: 2023-05-24
* @Version: V1.0 * @Version: V1.0
*/ */
public interface IYxgwNewsService extends IService<YxgwNews> { public interface IYxgwNewsService extends IService<YxgwNews> {

@ -10,7 +10,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/** /**
* @Description: * @Description:
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-05-23 * @Date: 2023-05-24
* @Version: V1.0 * @Version: V1.0
*/ */
@Service @Service

@ -3,24 +3,24 @@
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023052410192170020', NULL, '客户案例', '/yxgw/yxgwCaseList', 'yxgw/YxgwCaseList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0); VALUES ('2023052401568400450', NULL, '客户案例', '/yxgw/yxgwCaseList', 'yxgw/YxgwCaseList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0);
-- 权限控制sql -- 权限控制sql
-- 新增 -- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170021', '2023052410192170020', '添加客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400451', '2023052401568400450', '添加客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 编辑 -- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170022', '2023052410192170020', '编辑客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400452', '2023052401568400450', '编辑客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 删除 -- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170023', '2023052410192170020', '删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400453', '2023052401568400450', '删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 批量删除 -- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170024', '2023052410192170020', '批量删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400454', '2023052401568400450', '批量删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 导出excel -- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170025', '2023052410192170020', '导出excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400455', '2023052401568400450', '导出excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 导入excel -- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170026', '2023052410192170020', '导入excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400456', '2023052401568400450', '导入excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);

@ -17,6 +17,12 @@ export const columns: BasicColumn[] = [
return render.renderCategoryTree(text,'C03A01') return render.renderCategoryTree(text,'C03A01')
}, },
}, },
{
title: '图片',
align:"center",
dataIndex: 'img',
customRender:render.renderImage,
},
{ {
title: '日期', title: '日期',
align:"center", align:"center",
@ -26,10 +32,12 @@ export const columns: BasicColumn[] = [
}, },
}, },
{ {
title: '图片', title: '是否发布',
align:"center", align:"center",
dataIndex: 'img', dataIndex: 'isshow',
customRender:render.renderImage, customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}])
},
}, },
{ {
title: '描述', title: '描述',
@ -55,15 +63,22 @@ export const formSchema: FormSchema[] = [
pcode:"C03A01", //TODO back和事件未添加暂时有问题 pcode:"C03A01", //TODO back和事件未添加暂时有问题
}, },
}, },
{
label: '图片',
field: 'img',
component: 'JImageUpload',
componentProps:{
},
},
{ {
label: '日期', label: '日期',
field: 'date', field: 'date',
component: 'DatePicker', component: 'DatePicker',
}, },
{ {
label: '图片', label: '是否发布',
field: 'img', field: 'isshow',
component: 'JImageUpload', component: 'JSwitch',
componentProps:{ componentProps:{
}, },
}, },

@ -3,24 +3,24 @@
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023052301573510160', NULL, '资讯动态', '/yxgw/yxgwNewsList', 'yxgw/YxgwNewsList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0); VALUES ('2023052401562420100', NULL, '资讯动态', '/yxgw/yxgwNewsList', 'yxgw/YxgwNewsList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0);
-- 权限控制sql -- 权限控制sql
-- 新增 -- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510161', '2023052301573510160', '添加资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430101', '2023052401562420100', '添加资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 编辑 -- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510162', '2023052301573510160', '编辑资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430102', '2023052401562420100', '编辑资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 删除 -- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510163', '2023052301573510160', '删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430103', '2023052401562420100', '删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 批量删除 -- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510164', '2023052301573510160', '批量删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430104', '2023052401562420100', '批量删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 导出excel -- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510165', '2023052301573510160', '导出excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430105', '2023052401562420100', '导出excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 导入excel -- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510166', '2023052301573510160', '导入excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430106', '2023052401562420100', '导入excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);

@ -5,14 +5,17 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据 //列表数据
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '所属行业|方案名称', title: '标题',
align:"center", align:"center",
dataIndex: 'name' dataIndex: 'title'
}, },
{ {
title: '方案描述', title: '所属行业',
align:"center", align:"center",
dataIndex: 'des' dataIndex: 'industry',
customRender:({text}) => {
return render.renderCategoryTree(text,'C03A02')
},
}, },
{ {
title: '方案图片', title: '方案图片',
@ -20,6 +23,11 @@ export const columns: BasicColumn[] = [
dataIndex: 'img', dataIndex: 'img',
customRender:render.renderImage, customRender:render.renderImage,
}, },
{
title: '案例列表',
align:"center",
dataIndex: 'cases_dictText'
},
{ {
title: '发布日期', title: '发布日期',
align:"center", align:"center",
@ -29,10 +37,17 @@ export const columns: BasicColumn[] = [
}, },
}, },
{ {
title: '方案内容', title: '是否发布',
align:"center", align:"center",
dataIndex: 'article', dataIndex: 'isshow',
slots: { customRender: 'htmlSlot' }, customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}])
},
},
{
title: '方案描述',
align:"center",
dataIndex: 'des'
}, },
]; ];
//查询数据 //查询数据
@ -41,14 +56,17 @@ export const searchFormSchema: FormSchema[] = [
//表单数据 //表单数据
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
{ {
label: '所属行业|方案名称', label: '标题',
field: 'name', field: 'title',
component: 'Input', component: 'Input',
}, },
{ {
label: '方案描述', label: '所属行业',
field: 'des', field: 'industry',
component: 'InputTextArea', component: 'JCategorySelect',
componentProps:{
pcode:"C03A02", //TODO back和事件未添加暂时有问题
},
}, },
{ {
label: '方案图片', label: '方案图片',
@ -57,11 +75,31 @@ export const formSchema: FormSchema[] = [
componentProps:{ componentProps:{
}, },
}, },
{
label: '案例列表',
field: 'cases',
component: 'JSelectMultiple',
componentProps:{
dictCode:"yxgw_case,customer,id"
},
},
{ {
label: '发布日期', label: '发布日期',
field: 'date', field: 'date',
component: 'DatePicker', component: 'DatePicker',
}, },
{
label: '是否发布',
field: 'isshow',
component: 'JSwitch',
componentProps:{
},
},
{
label: '方案描述',
field: 'des',
component: 'InputTextArea',
},
{ {
label: '方案内容', label: '方案内容',
field: 'article', field: 'article',

@ -52,6 +52,9 @@
import {columns, searchFormSchema} from './YxgwSolution.data'; import {columns, searchFormSchema} from './YxgwSolution.data';
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './YxgwSolution.api'; import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './YxgwSolution.api';
import { downloadFile } from '/@/utils/common/renderUtils'; import { downloadFile } from '/@/utils/common/renderUtils';
import { loadCategoryData } from '/@/api/common/api'
import { getAuthCache, setAuthCache } from '/@/utils/auth';
import { DB_DICT_DATA_KEY } from '/@/enums/cacheEnum';
const checkedKeys = ref<Array<string | number>>([]); const checkedKeys = ref<Array<string | number>>([]);
//model //model
const [registerModal, {openModal}] = useModal(); const [registerModal, {openModal}] = useModal();
@ -166,6 +169,21 @@
} }
/**
* 初始化字典配置
*/
function initDictConfig(){
loadCategoryData({code:'C03A02'}).then((res) => {
if (res) {
let allDictDate = getAuthCache(DB_DICT_DATA_KEY);
if(!allDictDate['C03A02']){
Object.assign(allDictDate,{'C03A02':res})
}
setAuthCache(DB_DICT_DATA_KEY,allDictDate)
}
})
}
initDictConfig();
</script> </script>
<style scoped> <style scoped>

@ -3,24 +3,24 @@
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023052409069160060', NULL, '解决方案', '/yxgw/yxgwSolutionList', 'yxgw/YxgwSolutionList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0); VALUES ('2023052401564230250', NULL, '解决方案', '/yxgw/yxgwSolutionList', 'yxgw/YxgwSolutionList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0);
-- 权限控制sql -- 权限控制sql
-- 新增 -- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170061', '2023052409069160060', '添加解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230251', '2023052401564230250', '添加解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 编辑 -- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170062', '2023052409069160060', '编辑解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230252', '2023052401564230250', '编辑解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 删除 -- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170063', '2023052409069160060', '删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230253', '2023052401564230250', '删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 批量删除 -- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170064', '2023052409069160060', '批量删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230254', '2023052401564230250', '批量删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 导出excel -- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170065', '2023052409069160060', '导出excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230255', '2023052401564230250', '导出excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 导入excel -- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170066', '2023052409069160060', '导入excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230256', '2023052401564230250', '导入excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);

@ -22,7 +22,7 @@ public class NewsController {
@ApiOperation(value="资讯列表", notes="资讯列表") @ApiOperation(value="资讯列表", notes="资讯列表")
@GetMapping("/list") @GetMapping("/list")
public Result<?> getStr() { public Result<?> getStr() {
return Result.OK(this.newsService.query().select("id","title","type","des","img","date").list()); return Result.OK(this.newsService.query().select("id","title","type","des","img","date").eq("isshow","Y").list());
} }
@ApiOperation(value="资讯详情", notes="资讯详情") @ApiOperation(value="资讯详情", notes="资讯详情")

@ -25,13 +25,13 @@ public class SolutionController {
@Autowired @Autowired
private ISolutionService solutionService; private ISolutionService solutionService;
@ApiOperation(value="行业列表", notes="行业列表") @ApiOperation(value="解决方案列表", notes="解决方案列表")
@GetMapping("/name-list") @GetMapping("/list")
public Result<?> getStr() { public Result<?> getStr() {
return Result.OK(this.solutionService.query().select("id","name").list()); return Result.OK(this.solutionService.query().select("id","title","des","img","date","cases").eq("isshow","Y").list());
} }
@ApiOperation(value="行业解决方案详情", notes="行业解决方案详情") @ApiOperation(value="解决方案详情", notes="解决方案详情")
@GetMapping("/info") @GetMapping("/info")
public Result<?> getInfo(@RequestParam(name="id",required=true) String id) { public Result<?> getInfo(@RequestParam(name="id",required=true) String id) {
return Result.OK(this.solutionService.query().eq("id",id).one()); return Result.OK(this.solutionService.query().eq("id",id).one());

@ -1,19 +1,22 @@
package org.jeecg.modules.demo.yxgwf.entity; package org.jeecg.modules.demo.yxgwf.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/** /**
* @Description: * @Description:
@ -32,58 +35,58 @@ public class Case implements Serializable {
/**id*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id") @ApiModelProperty(value = "id")
private String id; private java.lang.String id;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @ApiModelProperty(value = "创建人")
private String createBy; private java.lang.String createBy;
/**创建日期*/ /**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建日期") @ApiModelProperty(value = "创建日期")
private Date createTime; private java.util.Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
private String updateBy; private java.lang.String updateBy;
/**更新日期*/ /**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新日期") @ApiModelProperty(value = "更新日期")
private Date updateTime; private java.util.Date updateTime;
/**所属部门*/ /**所属部门*/
@ApiModelProperty(value = "所属部门") @ApiModelProperty(value = "所属部门")
private String sysOrgCode; private java.lang.String sysOrgCode;
/**客户名*/ /**客户名*/
@Excel(name = "客户名", width = 15) @Excel(name = "客户名", width = 15)
@ApiModelProperty(value = "客户名") @ApiModelProperty(value = "客户名")
private String customer; private java.lang.String customer;
/**案例副标题*/ /**案例副标题*/
@Excel(name = "案例副标题", width = 15) @Excel(name = "案例副标题", width = 15)
@ApiModelProperty(value = "案例副标题") @ApiModelProperty(value = "案例副标题")
private String title; private java.lang.String title;
/**所属行业*/ /**所属行业*/
@Excel(name = "所属行业", width = 15) @Excel(name = "所属行业", width = 15)
@ApiModelProperty(value = "所属行业") @ApiModelProperty(value = "所属行业")
private String industry; private java.lang.String industry;
/**案例图片*/ /**案例图片*/
@Excel(name = "案例图片", width = 15) @Excel(name = "案例图片", width = 15)
@ApiModelProperty(value = "案例图片") @ApiModelProperty(value = "案例图片")
private String img; private java.lang.String img;
/**发布日期*/ /**发布日期*/
@Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd") @Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "发布日期") @ApiModelProperty(value = "发布日期")
private Date date; private java.util.Date date;
/**是否发布*/ /**是否发布*/
@Excel(name = "是否发布", width = 15) @Excel(name = "是否发布", width = 15)
@ApiModelProperty(value = "是否发布") @ApiModelProperty(value = "是否发布")
private String isshow; private java.lang.String isshow;
/**案例描述*/ /**案例描述*/
@Excel(name = "案例描述", width = 15) @Excel(name = "案例描述", width = 15)
@ApiModelProperty(value = "案例描述") @ApiModelProperty(value = "案例描述")
private String des; private java.lang.String des;
/**案例内容*/ /**案例内容*/
@Excel(name = "案例内容", width = 15) @Excel(name = "案例内容", width = 15)
@ApiModelProperty(value = "案例内容") @ApiModelProperty(value = "案例内容")
private String article; private java.lang.String article;
} }

@ -1,24 +1,27 @@
package org.jeecg.modules.demo.yxgwf.entity; package org.jeecg.modules.demo.yxgwf.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/** /**
* @Description: * @Description:
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-05-23 * @Date: 2023-05-24
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@ -32,50 +35,54 @@ public class News implements Serializable {
/**主键*/ /**主键*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键") @ApiModelProperty(value = "主键")
private String id; private java.lang.String id;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @ApiModelProperty(value = "创建人")
private String createBy; private java.lang.String createBy;
/**创建日期*/ /**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期") @ApiModelProperty(value = "创建日期")
private Date createTime; private java.util.Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
private String updateBy; private java.lang.String updateBy;
/**更新日期*/ /**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期") @ApiModelProperty(value = "更新日期")
private Date updateTime; private java.util.Date updateTime;
/**所属部门*/ /**所属部门*/
@ApiModelProperty(value = "所属部门") @ApiModelProperty(value = "所属部门")
private String sysOrgCode; private java.lang.String sysOrgCode;
/**标题*/ /**标题*/
@Excel(name = "标题", width = 15) @Excel(name = "标题", width = 15)
@ApiModelProperty(value = "标题") @ApiModelProperty(value = "标题")
private String title; private java.lang.String title;
/**类型*/ /**类型*/
@Excel(name = "类型", width = 15) @Excel(name = "类型", width = 15)
@ApiModelProperty(value = "类型") @ApiModelProperty(value = "类型")
private String type; private java.lang.String type;
/**图片*/
@Excel(name = "图片", width = 15)
@ApiModelProperty(value = "图片")
private java.lang.String img;
/**日期*/ /**日期*/
@Excel(name = "日期", width = 15, format = "yyyy-MM-dd") @Excel(name = "日期", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "日期") @ApiModelProperty(value = "日期")
private Date date; private java.util.Date date;
/**图片*/ /**是否发布*/
@Excel(name = "图片", width = 15) @Excel(name = "是否发布", width = 15)
@ApiModelProperty(value = "图片") @ApiModelProperty(value = "是否发布")
private String img; private java.lang.String isshow;
/**描述*/ /**描述*/
@Excel(name = "描述", width = 15) @Excel(name = "描述", width = 15)
@ApiModelProperty(value = "描述") @ApiModelProperty(value = "描述")
private String des; private java.lang.String des;
/**详情*/ /**详情*/
@Excel(name = "详情", width = 15) @Excel(name = "详情", width = 15)
@ApiModelProperty(value = "详情") @ApiModelProperty(value = "详情")
private String info; private java.lang.String info;
} }

@ -1,59 +1,91 @@
package org.jeecg.modules.demo.yxgwf.entity; package org.jeecg.modules.demo.yxgwf.entity;
import java.io.Serializable; import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data; import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel; import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
/** /**
* @Description: * @Description:
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2023-05-17 * @Date: 2023-05-24
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data
@TableName("yxgw_solution") @TableName("yxgw_solution")
@Accessors(chain = true) @Accessors(chain = true)
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@ApiModel(value="yxgw_solution对象", description="行业解决方案") @ApiModel(value="yxgw_solution对象", description="解决方案")
public class Solution implements Serializable { public class Solution implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**主键*/ /**id*/
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键") @ApiModelProperty(value = "id")
private java.lang.String id; private java.lang.String id;
/**创建人*/ /**创建人*/
@ApiModelProperty(value = "创建人") @ApiModelProperty(value = "创建人")
private java.lang.String createBy; private java.lang.String createBy;
/**创建日期*/ /**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建日期") @ApiModelProperty(value = "创建日期")
private java.util.Date createTime; private java.util.Date createTime;
/**更新人*/ /**更新人*/
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
private java.lang.String updateBy; private java.lang.String updateBy;
/**更新日期*/ /**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新日期") @ApiModelProperty(value = "更新日期")
private java.util.Date updateTime; private java.util.Date updateTime;
/**所属部门*/ /**所属部门*/
@ApiModelProperty(value = "所属部门") @ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode; private java.lang.String sysOrgCode;
/**标题*/
@Excel(name = "标题", width = 15)
@ApiModelProperty(value = "标题")
private java.lang.String title;
/**所属行业*/ /**所属行业*/
@Excel(name = "所属行业", width = 15) @Excel(name = "所属行业", width = 15)
@ApiModelProperty(value = "所属行业") @ApiModelProperty(value = "所属行业")
private java.lang.String name; private java.lang.String industry;
/**方案图片*/
@Excel(name = "方案图片", width = 15)
@ApiModelProperty(value = "方案图片")
private java.lang.String img;
/**案例列表*/
@Excel(name = "案例列表", width = 15, dictTable = "yxgw_case", dicText = "customer", dicCode = "id")
@Dict(dictTable = "yxgw_case", dicText = "customer", dicCode = "id")
@ApiModelProperty(value = "案例列表")
private java.lang.String cases;
/**发布日期*/
@Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "发布日期")
private java.util.Date date;
/**是否发布*/
@Excel(name = "是否发布", width = 15)
@ApiModelProperty(value = "是否发布")
private java.lang.String isshow;
/**方案描述*/
@Excel(name = "方案描述", width = 15)
@ApiModelProperty(value = "方案描述")
private java.lang.String des;
/**方案内容*/ /**方案内容*/
@Excel(name = "方案内容", width = 15) @Excel(name = "方案内容", width = 15)
@ApiModelProperty(value = "方案内容") @ApiModelProperty(value = "方案内容")

@ -3,24 +3,24 @@
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023052410192170020', NULL, '客户案例', '/yxgw/yxgwCaseList', 'yxgw/YxgwCaseList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0); VALUES ('2023052401568400450', NULL, '客户案例', '/yxgw/yxgwCaseList', 'yxgw/YxgwCaseList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0);
-- 权限控制sql -- 权限控制sql
-- 新增 -- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170021', '2023052410192170020', '添加客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400451', '2023052401568400450', '添加客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 编辑 -- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170022', '2023052410192170020', '编辑客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400452', '2023052401568400450', '编辑客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 删除 -- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170023', '2023052410192170020', '删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400453', '2023052401568400450', '删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 批量删除 -- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170024', '2023052410192170020', '批量删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400454', '2023052401568400450', '批量删除客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 导出excel -- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170025', '2023052410192170020', '导出excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400455', '2023052401568400450', '导出excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);
-- 导入excel -- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052410192170026', '2023052410192170020', '导入excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 10:19:02', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401568400456', '2023052401568400450', '导入excel_客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:45', NULL, NULL, 0, 0, '1', 0);

@ -17,6 +17,12 @@ export const columns: BasicColumn[] = [
return render.renderCategoryTree(text,'C03A01') return render.renderCategoryTree(text,'C03A01')
}, },
}, },
{
title: '图片',
align:"center",
dataIndex: 'img',
customRender:render.renderImage,
},
{ {
title: '日期', title: '日期',
align:"center", align:"center",
@ -26,10 +32,12 @@ export const columns: BasicColumn[] = [
}, },
}, },
{ {
title: '图片', title: '是否发布',
align:"center", align:"center",
dataIndex: 'img', dataIndex: 'isshow',
customRender:render.renderImage, customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}])
},
}, },
{ {
title: '描述', title: '描述',
@ -55,15 +63,22 @@ export const formSchema: FormSchema[] = [
pcode:"C03A01", //TODO back和事件未添加暂时有问题 pcode:"C03A01", //TODO back和事件未添加暂时有问题
}, },
}, },
{
label: '图片',
field: 'img',
component: 'JImageUpload',
componentProps:{
},
},
{ {
label: '日期', label: '日期',
field: 'date', field: 'date',
component: 'DatePicker', component: 'DatePicker',
}, },
{ {
label: '图片', label: '是否发布',
field: 'img', field: 'isshow',
component: 'JImageUpload', component: 'JSwitch',
componentProps:{ componentProps:{
}, },
}, },

@ -3,24 +3,24 @@
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023052301573510160', NULL, '资讯动态', '/yxgw/yxgwNewsList', 'yxgw/YxgwNewsList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0); VALUES ('2023052401562420100', NULL, '资讯动态', '/yxgw/yxgwNewsList', 'yxgw/YxgwNewsList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0);
-- 权限控制sql -- 权限控制sql
-- 新增 -- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510161', '2023052301573510160', '添加资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430101', '2023052401562420100', '添加资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 编辑 -- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510162', '2023052301573510160', '编辑资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430102', '2023052401562420100', '编辑资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 删除 -- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510163', '2023052301573510160', '删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430103', '2023052401562420100', '删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 批量删除 -- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510164', '2023052301573510160', '批量删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430104', '2023052401562420100', '批量删除资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 导出excel -- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510165', '2023052301573510160', '导出excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430105', '2023052401562420100', '导出excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);
-- 导入excel -- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052301573510166', '2023052301573510160', '导入excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-23 13:57:16', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401562430106', '2023052401562420100', '导入excel_资讯动态', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_news:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:10', NULL, NULL, 0, 0, '1', 0);

@ -5,14 +5,17 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据 //列表数据
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '所属行业|方案名称', title: '标题',
align:"center", align:"center",
dataIndex: 'name' dataIndex: 'title'
}, },
{ {
title: '方案描述', title: '所属行业',
align:"center", align:"center",
dataIndex: 'des' dataIndex: 'industry',
customRender:({text}) => {
return render.renderCategoryTree(text,'C03A02')
},
}, },
{ {
title: '方案图片', title: '方案图片',
@ -20,6 +23,11 @@ export const columns: BasicColumn[] = [
dataIndex: 'img', dataIndex: 'img',
customRender:render.renderImage, customRender:render.renderImage,
}, },
{
title: '案例列表',
align:"center",
dataIndex: 'cases_dictText'
},
{ {
title: '发布日期', title: '发布日期',
align:"center", align:"center",
@ -29,10 +37,17 @@ export const columns: BasicColumn[] = [
}, },
}, },
{ {
title: '方案内容', title: '是否发布',
align:"center", align:"center",
dataIndex: 'article', dataIndex: 'isshow',
slots: { customRender: 'htmlSlot' }, customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}])
},
},
{
title: '方案描述',
align:"center",
dataIndex: 'des'
}, },
]; ];
//查询数据 //查询数据
@ -41,14 +56,17 @@ export const searchFormSchema: FormSchema[] = [
//表单数据 //表单数据
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
{ {
label: '所属行业|方案名称', label: '标题',
field: 'name', field: 'title',
component: 'Input', component: 'Input',
}, },
{ {
label: '方案描述', label: '所属行业',
field: 'des', field: 'industry',
component: 'InputTextArea', component: 'JCategorySelect',
componentProps:{
pcode:"C03A02", //TODO back和事件未添加暂时有问题
},
}, },
{ {
label: '方案图片', label: '方案图片',
@ -57,11 +75,31 @@ export const formSchema: FormSchema[] = [
componentProps:{ componentProps:{
}, },
}, },
{
label: '案例列表',
field: 'cases',
component: 'JSelectMultiple',
componentProps:{
dictCode:"yxgw_case,customer,id"
},
},
{ {
label: '发布日期', label: '发布日期',
field: 'date', field: 'date',
component: 'DatePicker', component: 'DatePicker',
}, },
{
label: '是否发布',
field: 'isshow',
component: 'JSwitch',
componentProps:{
},
},
{
label: '方案描述',
field: 'des',
component: 'InputTextArea',
},
{ {
label: '方案内容', label: '方案内容',
field: 'article', field: 'article',

@ -52,6 +52,9 @@
import {columns, searchFormSchema} from './YxgwSolution.data'; import {columns, searchFormSchema} from './YxgwSolution.data';
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './YxgwSolution.api'; import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './YxgwSolution.api';
import { downloadFile } from '/@/utils/common/renderUtils'; import { downloadFile } from '/@/utils/common/renderUtils';
import { loadCategoryData } from '/@/api/common/api'
import { getAuthCache, setAuthCache } from '/@/utils/auth';
import { DB_DICT_DATA_KEY } from '/@/enums/cacheEnum';
const checkedKeys = ref<Array<string | number>>([]); const checkedKeys = ref<Array<string | number>>([]);
//model //model
const [registerModal, {openModal}] = useModal(); const [registerModal, {openModal}] = useModal();
@ -166,6 +169,21 @@
} }
/**
* 初始化字典配置
*/
function initDictConfig(){
loadCategoryData({code:'C03A02'}).then((res) => {
if (res) {
let allDictDate = getAuthCache(DB_DICT_DATA_KEY);
if(!allDictDate['C03A02']){
Object.assign(allDictDate,{'C03A02':res})
}
setAuthCache(DB_DICT_DATA_KEY,allDictDate)
}
})
}
initDictConfig();
</script> </script>
<style scoped> <style scoped>

@ -3,24 +3,24 @@
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2023052409069160060', NULL, '解决方案', '/yxgw/yxgwSolutionList', 'yxgw/YxgwSolutionList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0); VALUES ('2023052401564230250', NULL, '解决方案', '/yxgw/yxgwSolutionList', 'yxgw/YxgwSolutionList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0);
-- 权限控制sql -- 权限控制sql
-- 新增 -- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170061', '2023052409069160060', '添加解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230251', '2023052401564230250', '添加解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 编辑 -- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170062', '2023052409069160060', '编辑解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230252', '2023052401564230250', '编辑解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 删除 -- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170063', '2023052409069160060', '删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230253', '2023052401564230250', '删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 批量删除 -- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170064', '2023052409069160060', '批量删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230254', '2023052401564230250', '批量删除解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 导出excel -- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170065', '2023052409069160060', '导出excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230255', '2023052401564230250', '导出excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
-- 导入excel -- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2023052409069170066', '2023052409069160060', '导入excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 09:06:06', NULL, NULL, 0, 0, '1', 0); VALUES ('2023052401564230256', '2023052401564230250', '导入excel_解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-24 13:56:25', NULL, NULL, 0, 0, '1', 0);
Loading…
Cancel
Save