客户案例接口及后台

main
mhsnet 1 year ago
parent 8a718bcb61
commit 41b55872f7

@ -38,12 +38,12 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
@Api(tags="解决方案客户案例")
@Api(tags="客户案例")
@RestController
@RequestMapping("/yxgw/yxgwCase")
@Slf4j
@ -60,8 +60,8 @@ public class YxgwCaseController extends JeecgController<YxgwCase, IYxgwCaseServi
* @param req
* @return
*/
//@AutoLog(value = "解决方案客户案例-分页列表查询")
@ApiOperation(value="解决方案客户案例-分页列表查询", notes="解决方案客户案例-分页列表查询")
//@AutoLog(value = "客户案例-分页列表查询")
@ApiOperation(value="客户案例-分页列表查询", notes="客户案例-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<YxgwCase>> queryPageList(YxgwCase yxgwCase,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -79,8 +79,8 @@ public class YxgwCaseController extends JeecgController<YxgwCase, IYxgwCaseServi
* @param yxgwCase
* @return
*/
@AutoLog(value = "解决方案客户案例-添加")
@ApiOperation(value="解决方案客户案例-添加", notes="解决方案客户案例-添加")
@AutoLog(value = "客户案例-添加")
@ApiOperation(value="客户案例-添加", notes="客户案例-添加")
@RequiresPermissions("yxgw:yxgw_case:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody YxgwCase yxgwCase) {
@ -94,8 +94,8 @@ public class YxgwCaseController extends JeecgController<YxgwCase, IYxgwCaseServi
* @param yxgwCase
* @return
*/
@AutoLog(value = "解决方案客户案例-编辑")
@ApiOperation(value="解决方案客户案例-编辑", notes="解决方案客户案例-编辑")
@AutoLog(value = "客户案例-编辑")
@ApiOperation(value="客户案例-编辑", notes="客户案例-编辑")
@RequiresPermissions("yxgw:yxgw_case:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody YxgwCase yxgwCase) {
@ -109,8 +109,8 @@ public class YxgwCaseController extends JeecgController<YxgwCase, IYxgwCaseServi
* @param id
* @return
*/
@AutoLog(value = "解决方案客户案例-通过id删除")
@ApiOperation(value="解决方案客户案例-通过id删除", notes="解决方案客户案例-通过id删除")
@AutoLog(value = "客户案例-通过id删除")
@ApiOperation(value="客户案例-通过id删除", notes="客户案例-通过id删除")
@RequiresPermissions("yxgw:yxgw_case:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
@ -124,8 +124,8 @@ public class YxgwCaseController extends JeecgController<YxgwCase, IYxgwCaseServi
* @param ids
* @return
*/
@AutoLog(value = "解决方案客户案例-批量删除")
@ApiOperation(value="解决方案客户案例-批量删除", notes="解决方案客户案例-批量删除")
@AutoLog(value = "客户案例-批量删除")
@ApiOperation(value="客户案例-批量删除", notes="客户案例-批量删除")
@RequiresPermissions("yxgw:yxgw_case:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
@ -139,8 +139,8 @@ public class YxgwCaseController extends JeecgController<YxgwCase, IYxgwCaseServi
* @param id
* @return
*/
//@AutoLog(value = "解决方案客户案例-通过id查询")
@ApiOperation(value="解决方案客户案例-通过id查询", notes="解决方案客户案例-通过id查询")
//@AutoLog(value = "客户案例-通过id查询")
@ApiOperation(value="客户案例-通过id查询", notes="客户案例-通过id查询")
@GetMapping(value = "/queryById")
public Result<YxgwCase> queryById(@RequestParam(name="id",required=true) String id) {
YxgwCase yxgwCase = yxgwCaseService.getById(id);
@ -159,7 +159,7 @@ public class YxgwCaseController extends JeecgController<YxgwCase, IYxgwCaseServi
@RequiresPermissions("yxgw:yxgw_case:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, YxgwCase yxgwCase) {
return super.exportXls(request, yxgwCase, YxgwCase.class, "解决方案客户案例");
return super.exportXls(request, yxgwCase, YxgwCase.class, "客户案例");
}
/**

@ -38,12 +38,12 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
@Api(tags="行业解决方案")
@Api(tags="解决方案")
@RestController
@RequestMapping("/yxgw/yxgwSolution")
@Slf4j
@ -60,8 +60,8 @@ public class YxgwSolutionController extends JeecgController<YxgwSolution, IYxgwS
* @param req
* @return
*/
//@AutoLog(value = "行业解决方案-分页列表查询")
@ApiOperation(value="行业解决方案-分页列表查询", notes="行业解决方案-分页列表查询")
//@AutoLog(value = "解决方案-分页列表查询")
@ApiOperation(value="解决方案-分页列表查询", notes="解决方案-分页列表查询")
@GetMapping(value = "/list")
public Result<IPage<YxgwSolution>> queryPageList(YxgwSolution yxgwSolution,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@ -79,8 +79,8 @@ public class YxgwSolutionController extends JeecgController<YxgwSolution, IYxgwS
* @param yxgwSolution
* @return
*/
@AutoLog(value = "行业解决方案-添加")
@ApiOperation(value="行业解决方案-添加", notes="行业解决方案-添加")
@AutoLog(value = "解决方案-添加")
@ApiOperation(value="解决方案-添加", notes="解决方案-添加")
@RequiresPermissions("yxgw:yxgw_solution:add")
@PostMapping(value = "/add")
public Result<String> add(@RequestBody YxgwSolution yxgwSolution) {
@ -94,8 +94,8 @@ public class YxgwSolutionController extends JeecgController<YxgwSolution, IYxgwS
* @param yxgwSolution
* @return
*/
@AutoLog(value = "行业解决方案-编辑")
@ApiOperation(value="行业解决方案-编辑", notes="行业解决方案-编辑")
@AutoLog(value = "解决方案-编辑")
@ApiOperation(value="解决方案-编辑", notes="解决方案-编辑")
@RequiresPermissions("yxgw:yxgw_solution:edit")
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit(@RequestBody YxgwSolution yxgwSolution) {
@ -109,8 +109,8 @@ public class YxgwSolutionController extends JeecgController<YxgwSolution, IYxgwS
* @param id
* @return
*/
@AutoLog(value = "行业解决方案-通过id删除")
@ApiOperation(value="行业解决方案-通过id删除", notes="行业解决方案-通过id删除")
@AutoLog(value = "解决方案-通过id删除")
@ApiOperation(value="解决方案-通过id删除", notes="解决方案-通过id删除")
@RequiresPermissions("yxgw:yxgw_solution:delete")
@DeleteMapping(value = "/delete")
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
@ -124,8 +124,8 @@ public class YxgwSolutionController extends JeecgController<YxgwSolution, IYxgwS
* @param ids
* @return
*/
@AutoLog(value = "行业解决方案-批量删除")
@ApiOperation(value="行业解决方案-批量删除", notes="行业解决方案-批量删除")
@AutoLog(value = "解决方案-批量删除")
@ApiOperation(value="解决方案-批量删除", notes="解决方案-批量删除")
@RequiresPermissions("yxgw:yxgw_solution:deleteBatch")
@DeleteMapping(value = "/deleteBatch")
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
@ -139,8 +139,8 @@ public class YxgwSolutionController extends JeecgController<YxgwSolution, IYxgwS
* @param id
* @return
*/
//@AutoLog(value = "行业解决方案-通过id查询")
@ApiOperation(value="行业解决方案-通过id查询", notes="行业解决方案-通过id查询")
//@AutoLog(value = "解决方案-通过id查询")
@ApiOperation(value="解决方案-通过id查询", notes="解决方案-通过id查询")
@GetMapping(value = "/queryById")
public Result<YxgwSolution> queryById(@RequestParam(name="id",required=true) String id) {
YxgwSolution yxgwSolution = yxgwSolutionService.getById(id);
@ -159,7 +159,7 @@ public class YxgwSolutionController extends JeecgController<YxgwSolution, IYxgwS
@RequiresPermissions("yxgw:yxgw_solution:exportXls")
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, YxgwSolution yxgwSolution) {
return super.exportXls(request, yxgwSolution, YxgwSolution.class, "行业解决方案");
return super.exportXls(request, yxgwSolution, YxgwSolution.class, "解决方案");
}
/**

@ -19,55 +19,68 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
@Data
@TableName("yxgw_case")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yxgw_case对象", description="解决方案客户案例")
@ApiModel(value="yxgw_case对象", description="客户案例")
public class YxgwCase implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
/**id*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
@ApiModelProperty(value = "id")
private java.lang.String id;
/**创建人*/
@ApiModelProperty(value = "创建人")
private java.lang.String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建日期")
private java.util.Date createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
private java.lang.String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新日期")
private java.util.Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode;
/**行业ID*/
@Excel(name = "行业ID", width = 15, dictTable = "yxgw_solution", dicText = "name", dicCode = "id")
@Dict(dictTable = "yxgw_solution", dicText = "name", dicCode = "id")
@ApiModelProperty(value = "行业ID")
private java.lang.String industryId;
/**客户*/
@Excel(name = "客户", width = 15)
@ApiModelProperty(value = "客户")
/**客户名*/
@Excel(name = "客户名", width = 15)
@ApiModelProperty(value = "客户名")
private java.lang.String customer;
/**标题*/
@Excel(name = "标题", width = 15)
@ApiModelProperty(value = "标题")
/**案例副标题*/
@Excel(name = "案例副标题", width = 15)
@ApiModelProperty(value = "案例副标题")
private java.lang.String title;
/**所属行业*/
@Excel(name = "所属行业", width = 15)
@ApiModelProperty(value = "所属行业")
private java.lang.String industry;
/**案例图片*/
@Excel(name = "案例图片", width = 15)
@ApiModelProperty(value = "案例图片")
private java.lang.String img;
/**发布日期*/
@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 = "案例描述")

@ -19,46 +19,60 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
@Data
@TableName("yxgw_solution")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yxgw_solution对象", description="行业解决方案")
@ApiModel(value="yxgw_solution对象", description="解决方案")
public class YxgwSolution implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
/**id*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
@ApiModelProperty(value = "id")
private java.lang.String id;
/**创建人*/
@ApiModelProperty(value = "创建人")
private java.lang.String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建日期")
private java.util.Date createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
private java.lang.String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新日期")
private java.util.Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode;
/**所属行业*/
@Excel(name = "所属行业", width = 15)
@ApiModelProperty(value = "所属行业")
/**所属行业|方案名称*/
@Excel(name = "所属行业|方案名称", width = 15)
@ApiModelProperty(value = "所属行业|方案名称")
private java.lang.String name;
/**方案描述*/
@Excel(name = "方案描述", width = 15)
@ApiModelProperty(value = "方案描述")
private java.lang.String des;
/**方案图片*/
@Excel(name = "方案图片", width = 15)
@ApiModelProperty(value = "方案图片")
private java.lang.String img;
/**发布日期*/
@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 = "方案内容")

@ -7,9 +7,9 @@ import org.jeecg.modules.demo.yxgw.entity.YxgwCase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
public interface YxgwCaseMapper extends BaseMapper<YxgwCase> {

@ -7,9 +7,9 @@ import org.jeecg.modules.demo.yxgw.entity.YxgwSolution;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
public interface YxgwSolutionMapper extends BaseMapper<YxgwSolution> {

@ -4,9 +4,9 @@ import org.jeecg.modules.demo.yxgw.entity.YxgwCase;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
public interface IYxgwCaseService extends IService<YxgwCase> {

@ -4,9 +4,9 @@ import org.jeecg.modules.demo.yxgw.entity.YxgwSolution;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
public interface IYxgwSolutionService extends IService<YxgwSolution> {

@ -8,9 +8,9 @@ import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
@Service

@ -8,9 +8,9 @@ import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description:
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-17
* @Date: 2023-05-24
* @Version: V1.0
*/
@Service

@ -5,30 +5,49 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '行业ID',
title: '客户名',
align:"center",
dataIndex: 'industryId_dictText'
dataIndex: 'customer'
},
{
title: '客户',
title: '案例副标题',
align:"center",
dataIndex: 'customer'
dataIndex: 'title'
},
{
title: '标题',
title: '所属行业',
align:"center",
dataIndex: 'title'
dataIndex: 'industry',
customRender:({text}) => {
return render.renderCategoryTree(text,'C03A02')
},
},
{
title: '案例描述',
title: '案例图片',
align:"center",
dataIndex: 'des'
dataIndex: 'img',
customRender:render.renderImage,
},
{
title: '案例内容',
title: '发布日期',
align:"center",
dataIndex: 'date',
customRender:({text}) =>{
return !text?"":(text.length>10?text.substr(0,10):text)
},
},
{
title: '是否发布',
align:"center",
dataIndex: 'isshow',
customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}])
},
},
{
title: '案例描述',
align:"center",
dataIndex: 'article',
slots: { customRender: 'htmlSlot' },
dataIndex: 'des'
},
];
//查询数据
@ -37,23 +56,42 @@ export const searchFormSchema: FormSchema[] = [
//表单数据
export const formSchema: FormSchema[] = [
{
label: '行业ID',
field: 'industryId',
component: 'JDictSelectTag',
componentProps:{
dictCode:"yxgw_solution,name,id"
},
},
{
label: '客户',
label: '客户名',
field: 'customer',
component: 'Input',
},
{
label: '标题',
label: '案例副标题',
field: 'title',
component: 'Input',
},
{
label: '所属行业',
field: 'industry',
component: 'JCategorySelect',
componentProps:{
pcode:"C03A02", //TODO back和事件未添加暂时有问题
},
},
{
label: '案例图片',
field: 'img',
component: 'JImageUpload',
componentProps:{
},
},
{
label: '发布日期',
field: 'date',
component: 'DatePicker',
},
{
label: '是否发布',
field: 'isshow',
component: 'JSwitch',
componentProps:{
},
},
{
label: '案例描述',
field: 'des',

@ -52,13 +52,16 @@
import {columns, searchFormSchema} from './YxgwCase.data';
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './YxgwCase.api';
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>>([]);
//model
const [registerModal, {openModal}] = useModal();
//table
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
tableProps:{
title: '解决方案客户案例',
title: '客户案例',
api: list,
columns,
canResize:false,
@ -78,7 +81,7 @@
},
},
exportConfig: {
name:"解决方案客户案例",
name:"客户案例",
url: getExportUrl,
},
importConfig: {
@ -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>
<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)
VALUES ('2023051702063600160', 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-17 14:06:16', NULL, NULL, 0);
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);
-- 权限控制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)
VALUES ('2023051702063600161', '2023051702063600160', '添加解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 编辑
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 ('2023051702063600162', '2023051702063600160', '编辑解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 删除
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 ('2023051702063600163', '2023051702063600160', '删除解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 批量删除
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 ('2023051702063600164', '2023051702063600160', '批量删除解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 导出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)
VALUES ('2023051702063600165', '2023051702063600160', '导出excel_解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 导入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)
VALUES ('2023051702063600166', '2023051702063600160', '导入excel_解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);

@ -5,10 +5,29 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '所属行业',
title: '所属行业|方案名称',
align:"center",
dataIndex: 'name'
},
{
title: '方案描述',
align:"center",
dataIndex: 'des'
},
{
title: '方案图片',
align:"center",
dataIndex: 'img',
customRender:render.renderImage,
},
{
title: '发布日期',
align:"center",
dataIndex: 'date',
customRender:({text}) =>{
return !text?"":(text.length>10?text.substr(0,10):text)
},
},
{
title: '方案内容',
align:"center",
@ -18,20 +37,31 @@ export const columns: BasicColumn[] = [
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "所属行业",
field: 'name',
component: 'Input',
colProps: {span: 6},
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '所属行业',
label: '所属行业|方案名称',
field: 'name',
component: 'Input',
},
{
label: '方案描述',
field: 'des',
component: 'InputTextArea',
},
{
label: '方案图片',
field: 'img',
component: 'JImageUpload',
componentProps:{
},
},
{
label: '发布日期',
field: 'date',
component: 'DatePicker',
},
{
label: '方案内容',
field: 'article',

@ -58,7 +58,7 @@
//table
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
tableProps:{
title: '行业解决方案',
title: '解决方案',
api: list,
columns,
canResize:false,
@ -78,7 +78,7 @@
},
},
exportConfig: {
name:"行业解决方案",
name:"解决方案",
url: getExportUrl,
},
importConfig: {

@ -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)
VALUES ('2023051709004970340', 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-17 09:00:34', NULL, NULL, 0);
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);
-- 权限控制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)
VALUES ('2023051709004980341', '2023051709004970340', '添加行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 编辑
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 ('2023051709004980342', '2023051709004970340', '编辑行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 删除
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 ('2023051709004980343', '2023051709004970340', '删除行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 批量删除
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 ('2023051709004980344', '2023051709004970340', '批量删除行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 导出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)
VALUES ('2023051709004980345', '2023051709004970340', '导出excel_行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 导入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)
VALUES ('2023051709004980346', '2023051709004970340', '导入excel_行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);

@ -1,15 +1,34 @@
package org.jeecg.modules.demo.yxgwf.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo.yxgwf.service.ICaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@Api(tags="云息官网Web-客户案例")
@RestController
@RequestMapping("/yxgwf/case")
@Slf4j
public class CaseController {
@GetMapping("/test")
public String getStr() {
return "cs";
@Autowired
private ICaseService caseService;
@ApiOperation(value="案例列表", notes="案例列表")
@GetMapping("/list")
public Result<?> getStr() {
return Result.OK(this.caseService.query().select("id","customer","title","industry","des","img","date").eq("isshow","Y").list());
}
@ApiOperation(value="案例详情", notes="案例详情")
@GetMapping("/info")
public Result<?> getInfo(@RequestParam(name="id",required=true) String id) {
return Result.OK(this.caseService.query().eq("id",id).one());
}
}

@ -0,0 +1,89 @@
package org.jeecg.modules.demo.yxgwf.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
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:
* @Author: jeecg-boot
* @Date: 2023-05-24
* @Version: V1.0
*/
@Data
@TableName("yxgw_case")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yxgw_case对象", description="客户案例")
public class Case implements Serializable {
private static final long serialVersionUID = 1L;
/**id*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "id")
private String id;
/**创建人*/
@ApiModelProperty(value = "创建人")
private String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "创建日期")
private Date createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
private String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "更新日期")
private Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private String sysOrgCode;
/**客户名*/
@Excel(name = "客户名", width = 15)
@ApiModelProperty(value = "客户名")
private String customer;
/**案例副标题*/
@Excel(name = "案例副标题", width = 15)
@ApiModelProperty(value = "案例副标题")
private String title;
/**所属行业*/
@Excel(name = "所属行业", width = 15)
@ApiModelProperty(value = "所属行业")
private String industry;
/**案例图片*/
@Excel(name = "案例图片", width = 15)
@ApiModelProperty(value = "案例图片")
private String img;
/**发布日期*/
@Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "发布日期")
private Date date;
/**是否发布*/
@Excel(name = "是否发布", width = 15)
@ApiModelProperty(value = "是否发布")
private String isshow;
/**案例描述*/
@Excel(name = "案例描述", width = 15)
@ApiModelProperty(value = "案例描述")
private String des;
/**案例内容*/
@Excel(name = "案例内容", width = 15)
@ApiModelProperty(value = "案例内容")
private String article;
}

@ -0,0 +1,14 @@
package org.jeecg.modules.demo.yxgwf.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.demo.yxgwf.entity.Case;
/**
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-24
* @Version: V1.0
*/
public interface CaseMapper extends BaseMapper<Case> {
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.demo.yxgwf.mapper.CaseMapper">
</mapper>

@ -0,0 +1,14 @@
package org.jeecg.modules.demo.yxgwf.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.yxgwf.entity.Case;
/**
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-24
* @Version: V1.0
*/
public interface ICaseService extends IService<Case> {
}

@ -0,0 +1,18 @@
package org.jeecg.modules.demo.yxgwf.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.yxgwf.entity.Case;
import org.jeecg.modules.demo.yxgwf.mapper.CaseMapper;
import org.jeecg.modules.demo.yxgwf.service.ICaseService;
import org.springframework.stereotype.Service;
/**
* @Description:
* @Author: jeecg-boot
* @Date: 2023-05-24
* @Version: V1.0
*/
@Service
public class CaseServiceImpl extends ServiceImpl<CaseMapper, Case> implements ICaseService {
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.demo.yxgwf.mapper.CaseMapper">
</mapper>

@ -5,30 +5,49 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '行业ID',
title: '客户名',
align:"center",
dataIndex: 'industryId_dictText'
dataIndex: 'customer'
},
{
title: '客户',
title: '案例副标题',
align:"center",
dataIndex: 'customer'
dataIndex: 'title'
},
{
title: '标题',
title: '所属行业',
align:"center",
dataIndex: 'title'
dataIndex: 'industry',
customRender:({text}) => {
return render.renderCategoryTree(text,'C03A02')
},
},
{
title: '案例描述',
title: '案例图片',
align:"center",
dataIndex: 'des'
dataIndex: 'img',
customRender:render.renderImage,
},
{
title: '案例内容',
title: '发布日期',
align:"center",
dataIndex: 'date',
customRender:({text}) =>{
return !text?"":(text.length>10?text.substr(0,10):text)
},
},
{
title: '是否发布',
align:"center",
dataIndex: 'isshow',
customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}])
},
},
{
title: '案例描述',
align:"center",
dataIndex: 'article',
slots: { customRender: 'htmlSlot' },
dataIndex: 'des'
},
];
//查询数据
@ -37,23 +56,42 @@ export const searchFormSchema: FormSchema[] = [
//表单数据
export const formSchema: FormSchema[] = [
{
label: '行业ID',
field: 'industryId',
component: 'JDictSelectTag',
componentProps:{
dictCode:"yxgw_solution,name,id"
},
},
{
label: '客户',
label: '客户名',
field: 'customer',
component: 'Input',
},
{
label: '标题',
label: '案例副标题',
field: 'title',
component: 'Input',
},
{
label: '所属行业',
field: 'industry',
component: 'JCategorySelect',
componentProps:{
pcode:"C03A02", //TODO back和事件未添加暂时有问题
},
},
{
label: '案例图片',
field: 'img',
component: 'JImageUpload',
componentProps:{
},
},
{
label: '发布日期',
field: 'date',
component: 'DatePicker',
},
{
label: '是否发布',
field: 'isshow',
component: 'JSwitch',
componentProps:{
},
},
{
label: '案例描述',
field: 'des',

@ -52,13 +52,16 @@
import {columns, searchFormSchema} from './YxgwCase.data';
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './YxgwCase.api';
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>>([]);
//model
const [registerModal, {openModal}] = useModal();
//table
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
tableProps:{
title: '解决方案客户案例',
title: '客户案例',
api: list,
columns,
canResize:false,
@ -78,7 +81,7 @@
},
},
exportConfig: {
name:"解决方案客户案例",
name:"客户案例",
url: getExportUrl,
},
importConfig: {
@ -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>
<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)
VALUES ('2023051702063600160', 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-17 14:06:16', NULL, NULL, 0);
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);
-- 权限控制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)
VALUES ('2023051702063600161', '2023051702063600160', '添加解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 编辑
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 ('2023051702063600162', '2023051702063600160', '编辑解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 删除
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 ('2023051702063600163', '2023051702063600160', '删除解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 批量删除
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 ('2023051702063600164', '2023051702063600160', '批量删除解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 导出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)
VALUES ('2023051702063600165', '2023051702063600160', '导出excel_解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);
-- 导入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)
VALUES ('2023051702063600166', '2023051702063600160', '导入excel_解决方案客户案例', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_case:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 14:06:16', NULL, NULL, 0, 0, '1', 0);
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);

@ -5,10 +5,29 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '所属行业',
title: '所属行业|方案名称',
align:"center",
dataIndex: 'name'
},
{
title: '方案描述',
align:"center",
dataIndex: 'des'
},
{
title: '方案图片',
align:"center",
dataIndex: 'img',
customRender:render.renderImage,
},
{
title: '发布日期',
align:"center",
dataIndex: 'date',
customRender:({text}) =>{
return !text?"":(text.length>10?text.substr(0,10):text)
},
},
{
title: '方案内容',
align:"center",
@ -18,20 +37,31 @@ export const columns: BasicColumn[] = [
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "所属行业",
field: 'name',
component: 'Input',
colProps: {span: 6},
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '所属行业',
label: '所属行业|方案名称',
field: 'name',
component: 'Input',
},
{
label: '方案描述',
field: 'des',
component: 'InputTextArea',
},
{
label: '方案图片',
field: 'img',
component: 'JImageUpload',
componentProps:{
},
},
{
label: '发布日期',
field: 'date',
component: 'DatePicker',
},
{
label: '方案内容',
field: 'article',

@ -58,7 +58,7 @@
//table
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
tableProps:{
title: '行业解决方案',
title: '解决方案',
api: list,
columns,
canResize:false,
@ -78,7 +78,7 @@
},
},
exportConfig: {
name:"行业解决方案",
name:"解决方案",
url: getExportUrl,
},
importConfig: {

@ -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)
VALUES ('2023051709004970340', 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-17 09:00:34', NULL, NULL, 0);
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);
-- 权限控制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)
VALUES ('2023051709004980341', '2023051709004970340', '添加行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 编辑
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 ('2023051709004980342', '2023051709004970340', '编辑行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 删除
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 ('2023051709004980343', '2023051709004970340', '删除行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 批量删除
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 ('2023051709004980344', '2023051709004970340', '批量删除行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 导出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)
VALUES ('2023051709004980345', '2023051709004970340', '导出excel_行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
-- 导入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)
VALUES ('2023051709004980346', '2023051709004970340', '导入excel_行业解决方案', NULL, NULL, 0, NULL, NULL, 2, 'yxgw:yxgw_solution:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-17 09:00:34', NULL, NULL, 0, 0, '1', 0);
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);
Loading…
Cancel
Save